WeatherAPI
communityWeather and geolocation API with current, forecast, historical, and astronomical data worldwide.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://api.weatherapi.com/v1/current.jsonGet current weather
Parameters
qcity or latrequired— lon (stringaqiinclude air quality yes|no (stringoptionalkeyAPI key (stringrequiredReturns
location with name, country, localtime; current with temp_c, condition.text, wind_kph, humidity, feelslike_c, uv, air_qualityGET
https://api.weatherapi.com/v1/forecast.jsonGet weather forecast
Parameters
qlocation (stringrequiredaqiyes|no (stringoptionalkeyAPI key (stringrequireddays1-14 (integerrequiredReturns
forecast.forecastday[] with date, day.maxtemp_c, day.mintemp_c, day.condition, day.daily_chance_of_rain, hour[] with time, temp_c, conditionGET
https://api.weatherapi.com/v1/search.jsonSearch locations
Parameters
qsearch query (stringrequiredkeyAPI key (stringrequiredReturns
locations[] with id, name, region, country, lat, lon, url