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 URLhttps://api.weatherapi.com/v1
- AuthAPI 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
Changes
No recorded changes to this operation across all 4 revisions of this API.