City search by country code and administrative code
Provide a country code, administrative code, and city name to search for a specific city.
path Parameters
query Parameters
q
string · requiredA string that indicates a city name to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1alias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
City search by country code
Provide a country code and city name to return location data
path Parameters
countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
q
string · requiredA string that indicates a city name to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1adminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYalias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
City search
Provide a city name to return location data.
query Parameters
q
string · requiredA string that indicates a city name to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYalias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Location search by country code and administrative code
Filter by country code and administrative code to return location data for a city, postal code or point of interest
path Parameters
query Parameters
q
string · requiredA string that indicates a city name or point of interest to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1alias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Location search by country code
Filter by country code to return location data for a city, postal code or point of interest
path Parameters
countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
q
string · requiredA string that indicates a city name or point of interest to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1adminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYalias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Location search
Specify a city name, postal code or point of interest to return location data.
query Parameters
q
string · requiredA string that indicates a city name or point of interest to search by.
Example: New Yorklanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYalias
A numerical value indicating the mode of alias searching (0=Always, 1=Never, 2=No Official Match). No official match indicates an alias could be returned if no official location could be found.
Default: 2
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Postal code search by country code
Provide a country code and a postal code to search for a specific location.
path Parameters
countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
q
string · requiredA string that indicates a postal code to search by.
Example: 07008language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Postal code search
Specify a postal code to search for a specific location.
query Parameters
q
string · requiredA string that indicates a postal code to search by.
Example: 07008countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USlanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Point of interest by country code and administrative code
Filter by country code and administrative code to return location data for a point of interest.
A point of interest (POI) typically refers to a business location, tourist attraction, or other well-known site. Common examples include:
- Airports
- Stadiums
- Parks
path Parameters
query Parameters
q
string · requiredA string that indicates a point of interest to search by.
Example: New Yorktype
stringA string that indicates the type of POIs to include.
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonallLanguages
booleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Point of interest by country code
Filter by country code to return location data for a point of interest.
A point of interest (POI) typically refers to a business location, tourist attraction, or other well-known site. Common examples include:
- Airports
- Stadiums
- Parks
path Parameters
countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
q
string · requiredA string that indicates a point of interest to search by.
Example: New YorkadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYtype
stringA string that indicates the type of POIs to include.
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonallLanguages
booleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Point of interest search
Specify a point of interest to return location data.
A point of interest (POI) typically refers to a business location, tourist attraction, or other well-known site. Common examples include:
- Airports
- Stadiums
- Parks
query Parameters
q
string · requiredA string that indicates a point of interest to search by.
Example: New YorkcountryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYtype
stringA string that indicates the type of POIs to include.
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetails
booleanA boolean value that specifies whether or not to include extended information.
Default: falseformat
stringA string value that specifies what type of format to provide the response.
Default: jsonallLanguages
booleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
PrimaryPostalCode
string · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
Region
requiredThe object containing the region details
TimeZone
requiredThe object containing the timezone details
GeoPosition
requiredThe object containing the geoposition details
IsAlias
boolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreas
object[] · requiredThe object containing a list of administrative area details
DataSets
string[] · requiredArray of location-specific products that are available for this location. Products include Alerts, PremiumAirQuality, AirQuality, MinuteCast, and ForecastConfidence. If no location-specific products are available, the array will be empty.
EnglishName
string · minLength: 1 · requiredLocation name as displayed in English
Version
integer · int32 · requiredCurrent version of the API
Key
string · minLength: 1 · requiredUnique ID to search a location
Type
string · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rank
integer · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedName
string · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
Country
requiredTHe object containing the country details
AdministrativeArea
requiredThe object containing the amdministrative area details
ParentCity
| nullThe object containing the parentcity details. This object will be displayed only if the location is part of a larger metropolitan area or parent city.
Details
| nullAccuWeather related details about the specific location
Region search
Returns data about a specific region
path Parameters
regionCode
stringA unique ID that designates a specific region. More information can be found here.
Example: NAM
query Parameters
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformat
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
ID
string · minLength: 1 · requiredUnique administrative area ID
LocalizedName
string · minLength: 1 · requiredAdministrative area name as displayed in local dialect set with language code in the URL. If no language code is selected, the default is English
EnglishName
string · minLength: 1 · requiredAdministrative area name displayed in English
Administrative area search by country code and text string
Search by country code and text string to return basic information about administrative areas. Use the q
parameter to search for any administrative name.
path Parameters
countryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
q
stringA string that indicates a free-form query to search.
Example: New YorkadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYlanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1format
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
Level
integer · int64 · requiredAn assigned number to describe the scale of the administrative subdivisions for countries. As the Level number increases, the scale of the subdivision will decrease. Numbers of 10 or greater are reserved for non-political boundaries and should be used independently
CountryID
string · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
ID
string · minLength: 1 · requiredUnique administrative area ID
LocalizedName
string · minLength: 1 · requiredAdministrative area name as displayed in local dialect set with language code in the URL. If no language code is selected, the default is English
EnglishName
string · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedType
string | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishType
string | nullAdministrative Area type displayed in English.
Administrative area search by text string
Search by text string to return basic information about an administrative area. Use the q
parameter to search for any administrative name.
query Parameters
q
stringA string that indicates a free-form query to search.
Example: New YorkcountryCode
stringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCode
stringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYlanguage
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usoffset
integer · int32A numerical value representing the first result to return. Results will be returned in sets of 25. Offset=0 will return the first 25 results, Offset=1 will return the second 25 results, etc.
Default: -1format
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
Level
integer · int64 · requiredAn assigned number to describe the scale of the administrative subdivisions for countries. As the Level number increases, the scale of the subdivision will decrease. Numbers of 10 or greater are reserved for non-political boundaries and should be used independently
CountryID
string · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
ID
string · minLength: 1 · requiredUnique administrative area ID
LocalizedName
string · minLength: 1 · requiredAdministrative area name as displayed in local dialect set with language code in the URL. If no language code is selected, the default is English
EnglishName
string · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedType
string | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishType
string | nullAdministrative Area type displayed in English.
Administrative area search by country code and administrative area code
Search by country code and administrative code to return basic information about administrative areas.
path Parameters
query Parameters
language
stringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformat
stringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate using your API key. Format isBearer YOUR_API_KEY
.
Responses
OK
Level
integer · int64 · requiredAn assigned number to describe the scale of the administrative subdivisions for countries. As the Level number increases, the scale of the subdivision will decrease. Numbers of 10 or greater are reserved for non-political boundaries and should be used independently
CountryID
string · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
ID
string · minLength: 1 · requiredUnique administrative area ID
LocalizedName
string · minLength: 1 · requiredAdministrative area name as displayed in local dialect set with language code in the URL. If no language code is selected, the default is English
EnglishName
string · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedType
string | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishType
string | nullAdministrative Area type displayed in English.