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

From MusicBrainz Wiki
(Search Fields)
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
====Search Fields====
 
====Search Fields====
The 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 ID
+
| area || (part of) the area's name (diacritics are ignored)
 
|-
 
|-
| alias  || the aliases/misspellings for this area  
+
| areaaccent || (part of) the area's name (with the specified diacritics)
 
|-
 
|-
| area  || area name
+
| begin || the area's begin date (e.g. "1980-01-22")
 
|-
 
|-
| begin  || area begin date
+
| comment || (part of) the area's disambiguation comment
 
|-
 
|-
| comment || disambugation comment
+
| end || the area's end date (e.g. "1980-01-22")
 
|-
 
|-
| end  || area end date
+
| ended || a boolean flag (true/false) indicating whether or not the area has ended (is no longer current)
 
|-
 
|-
| ended  || area ended
+
| iso || an [[wikipedia:ISO_3166|ISO 3166-1, 3166-2 or 3166-3]] code attached to the area
 
|-
 
|-
| sortname  || area sort name
+
| iso1 || an [[wikipedia:ISO_3166|ISO 3166-1]] code attached to the area
 
|-
 
|-
| iso  || area iso1, iso2 or iso3 codes
+
| iso2 || an [[wikipedia:ISO_3166|ISO 3166-2]] code attached to the area
 
|-
 
|-
| iso1  || area iso1 codes
+
| iso3 || an [[wikipedia:ISO_3166|ISO 3166-3]] code attached to the area
 
|-
 
|-
| iso2  || area iso3 codes
+
| sortname || equivalent to name (areas no longer have separate sort names)
 
|-
 
|-
| iso3  || area iso3 codes
+
| tag || (part of) a tag attached to the area
 
|-
 
|-
| type || the aliases/misspellings for this label
+
| 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.