MusicBrainz API/Search/AreaSearch: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
====Search Fields====
====Search Fields====
The [[Area|area]] index contains the following fields you can search:
The [[Area]] index contains the following fields you can search
{| border="1" class="wikitable sortable"
{| border="1" class="wikitable sortable"
|-
|-
! Field !! Description
! Field !! Description

|-
| aid || the area's MBID
|-
| alias || (part of) any [[Aliases|alias]] attached to the artist (diacritics are ignored)
|-
|-
| aid || the area's MBID
| area || (part of) the area's name (diacritics are ignored)
|-
|-
| areaaccent || (part of) the area's name (with the specified diacritics)
| alias || an alias attached to the area
|-
|-
| area || the area's name
| begin || the area's begin date (e.g. "1980-01-22")
|-
|-
| begin || the area's begin date
| comment || (part of) the area's disambiguation comment
|-
|-
| comment || the area's disambiguation comment
| end || the area's end date (e.g. "1980-01-22")
|-
|-
| ended || a boolean flag (true/false) indicating whether or not the area has ended (is no longer current)
| end || the area's end date
|-
|-
| ended || a flag indicating whether or not the area has ended
| iso || an [[wikipedia:ISO_3166|ISO 3166-1, 3166-2 or 3166-3]] code attached to the area
|-
|-
| iso || an ISO 3166-1/2/3 code attached to the area
| iso1 || an [[wikipedia:ISO_3166|ISO 3166-1]] code attached to the area
|-
|-
| iso1 || an ISO 3166-1 code attached to the area
| iso2 || an [[wikipedia:ISO_3166|ISO 3166-2]] code attached to the area
|-
|-
| iso2 || an ISO 3166-2 code attached to the area
| iso3 || an [[wikipedia:ISO_3166|ISO 3166-3]] code attached to the area
|-
|-
| sortname || equivalent to name (areas no longer have separate sort names)
| iso3 || an ISO 3166-3 code attached to the area
|-
|-
| tag || (part of) a tag attached to the area
| sortname || the area's sort name
|-
|-
| type || the area's type
| type || the area's [[Area#Type|type]]
|}
|}


Area search terms with no fields specified search the ''area'' and ''sortname'' fields.
If you don't specify a field, the terms will be searched for in the ''area'' field.

Latest revision as of 12:19, 22 January 2021

Search Fields

The Area index contains the following fields you can search

Field Description
aid the area's MBID
alias (part of) any alias attached to the artist (diacritics are ignored)
area (part of) the area's name (diacritics are ignored)
areaaccent (part of) the area's name (with the specified diacritics)
begin the area's begin date (e.g. "1980-01-22")
comment (part of) the area's disambiguation comment
end the area's end date (e.g. "1980-01-22")
ended a boolean flag (true/false) indicating whether or not the area has ended (is no longer current)
iso an ISO 3166-1, 3166-2 or 3166-3 code attached to the area
iso1 an ISO 3166-1 code attached to the area
iso2 an ISO 3166-2 code attached to the area
iso3 an ISO 3166-3 code attached to the area
sortname equivalent to name (areas no longer have separate sort names)
tag (part of) a tag attached to the area
type the area's type

If you don't specify a field, the terms will be searched for in the area field.