Request URL
Request to WeatherAPI.com API consists of base url and API method. You can make both
HTTP or HTTPS request to our API.
Base URL: http://api.weatherapi.com/v1
| API |
API Method |
| Current weather |
/current.json or /current.xml |
| Forecast |
/forecast.json or /forecast.xml |
| Search or Autocomplete |
/search.json or /search.xml |
| History |
/history.json or /history.xml |
| Alerts |
/alerts.json or /alerts.xml |
| Marine |
/marine.json or /marine.xml |
| Future |
/future.json or /future.xml |
| Solar PV Energy |
/solar.json or /solar.xml |
| Agriculture |
/agriculture.json or /agriculture.xml |
| Time Zone |
/timezone.json or /timezone.xml |
| Sports |
/sports.json or /sports.xml |
| Astronomy |
/astronomy.json or /astronomy.xml |
| IP Lookup |
/ip.json or /ip.xml |