Geo

Search / Autocomplete Locations

Returns matching cities and towns as an array of Location objects. Useful for building autocomplete location pickers.

get/search.json

Request

  • Base URL
    https://api.weatherapi.com/v1
  • Auth
    API key in query parameter key

Query parameters

keystring required
Example:YOUR_API_KEY

Your WeatherAPI.com API key.

qstring required
Example:lond

Partial city name, postcode, or coordinates to search.

Response

List of matching locations

idinteger
namestring
regionstring
countrystring
latnumber
lonnumber
urlstring

URL-safe location slug

Changes

No recorded changes to this operation across all 4 revisions of this API.