Autocomplete search

GET

Autocomplete search

Returns basic information about locations matching an autocomplete of the search text.

Resource URL

http://dataservice.accuweather.com /locations/v1/cities/autocomplete

Query Parameters


Name Values Description
apikey
(required)

Provided API Key.

q
(required)

Text to use for Autocomplete search.

language

String indicating the language in which to return the resource.


Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

  • HTTP Code
    Error Code
    Description
  • 400

    Request had bad syntax or the parameters supplied were invalid.

  • 401

    Unauthorized. API authorization failed.

  • 403

    Unauthorized. You do not have permission to access this endpoint.

  • 404

    Server has not found a route matching the given URI.

  • 500

    Server encountered an unexpected condition which prevented it from fulfilling the request.

Working...

General Locations Information | Regions and Countries | Administrative Areas | AutoComplete Information

 

Response Parameters

Parameter Type Description
Version int32 Version of the api.
Key string Location key.
Type string Location type such as City, PostalCode, POI, or LatLong.
Rank int32 Number applied to Locations, set by factors such as population, political importance, and geographic size.
LocalizedName string Display name in local dialect set with language code in URL. Default is US English (en-us).
Country.ID string Unique ISO or Microsoft Localization Code for the country.
Country.LocalizedName string Country name as displayed in the local dialect set with language code in the URL. Default is US English (en-us).
AdministrativeArea.ID string Unique Administrative Area ID for the location.
AdministrativeArea.LocalizedName string Administrative Area name displayed in the local dialect set with the language code in the URL. Default is US English (en-us).