Difference between revisions of "MusicBrainz API/Search/AreaSearch"

From MusicBrainz Wiki
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)
 
|-
 
|-
| alias    || an alias attached to the area
+
| areaaccent || (part of) the area's name (with the specified diacritics)
 
|-
 
|-
| 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")
 
|-
 
|-
| end      || the area's end date
+
| ended || a boolean flag (true/false) indicating whether or not the area has ended (is no longer current)
 
|-
 
|-
| 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
 
|-
 
|-
| iso3    || an ISO 3166-3 code attached to the area
+
| sortname || equivalent to name (areas no longer have separate sort names)
 
|-
 
|-
| sortname || the area's sort name
+
| tag || (part of) a tag attached to the area
 
|-
 
|-
| 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 term will be searched for in the area and name fields.

Revision as of 11:09, 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 term will be searched for in the area and name fields.