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
qstring · requiredA string that indicates a city name to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1aliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
qstring · requiredA string that indicates a city name to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1adminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYaliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a city name to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYaliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a city name or point of interest to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1aliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
qstring · requiredA string that indicates a city name or point of interest to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1adminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYaliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a city name or point of interest to search by.
Example: New YorklanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonoffsetinteger · 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: -1countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYaliasA 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
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
qstring · requiredA string that indicates a postal code to search by.
Example: 07008languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a postal code to search by.
Example: 07008countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USlanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a point of interest to search by.
Example: New YorktypestringA string that indicates the type of POIs to include.
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonallLanguagesbooleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
qstring · requiredA string that indicates a point of interest to search by.
Example: New YorkadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYtypestringA string that indicates the type of POIs to include.
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonallLanguagesbooleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
qstring · requiredA string that indicates a point of interest to search by.
Example: New YorkcountryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYtypestringA string that indicates the type of POIs to include.
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usdetailsbooleanA boolean value that specifies whether or not to include extended information.
Default: falseformatstringA string value that specifies what type of format to provide the response.
Default: jsonallLanguagesbooleanA boolean value that specifies whether or not to search translated locations.
Default: false
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
PrimaryPostalCodestring · minLength: 1 · requiredOfficial postal code provided by our main location data provider for the requested location
RegionrequiredThe object containing the region details
TimeZonerequiredThe object containing the timezone details
GeoPositionrequiredThe object containing the geoposition details
IsAliasboolean · required“True” or “false” verification of whether a location is an “alias” or an alternative name or spelling for a requested location
SupplementalAdminAreasobject[] · requiredThe object containing a list of administrative area details
DataSetsstring[] · 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.
EnglishNamestring · minLength: 1 · requiredLocation name as displayed in English
Versioninteger · int32 · requiredCurrent version of the API
Keystring · minLength: 1 · requiredUnique ID to search a location
Typestring · minLength: 1 · requiredLocation type such as City, PostalCode, POI or LatLong
Rankinteger · int32 · requiredNumber applied to locations set by factors such as population, political importance, and geographic size
LocalizedNamestring · minLength: 1 · requiredDisplay name in local dialect set with language code in URL. Default is US English (us-en)
CountryrequiredTHe object containing the country details
AdministrativeArearequiredThe 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
regionCodestringA unique ID that designates a specific region. More information can be found here.
Example: NAM
query Parameters
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
IDstring · minLength: 1 · requiredUnique administrative area ID
LocalizedNamestring · 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
EnglishNamestring · 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
countryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: US
query Parameters
qstringA string that indicates a free-form query to search.
Example: New YorkadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYlanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usoffsetinteger · 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: -1formatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
Levelinteger · 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
CountryIDstring · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
IDstring · minLength: 1 · requiredUnique administrative area ID
LocalizedNamestring · 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
EnglishNamestring · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedTypestring | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishTypestring | 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
qstringA string that indicates a free-form query to search.
Example: New YorkcountryCodestringA unique ISO or Microsoft Localization Code for a specific country. More information can be found here.
Example: USadminCodestringA unique ID that designates a specific administrative area. More information can be found here.
Example: NYlanguagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usoffsetinteger · 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: -1formatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
Levelinteger · 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
CountryIDstring · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
IDstring · minLength: 1 · requiredUnique administrative area ID
LocalizedNamestring · 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
EnglishNamestring · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedTypestring | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishTypestring | 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
languagestringA string that indicates the language in which to return the response. More information can be found here.
Default: en-usformatstringA string value that specifies what type of format to provide the response.
Default: json
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate using your API key. Format isBearer YOUR_API_KEY.
Responses
OK
Levelinteger · 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
CountryIDstring · minLength: 1 · requiredUnique ISO or Microsoft Localization Code for the country that contains the AdministrativeArea.
IDstring · minLength: 1 · requiredUnique administrative area ID
LocalizedNamestring · 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
EnglishNamestring · minLength: 1 · requiredAdministrative area name displayed in English
LocalizedTypestring | nullAdministrative Area type displayed in the local dialect set with the language code in the URL. Default is US English (en-us).
EnglishTypestring | nullAdministrative Area type displayed in English.