Geo

Search / Autocomplete Locations

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

get/search.json

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 endpoint across all 1 revision of this API.