WeatherAPI.com
Forecasts, history, astronomy and time-zone data in one JSON API.
Authentication
Requests are authenticated with an API key. Keep keys on the server side (for example in a serverless function) and never ship them in front-end code or public repositories.
Pricing model
A free tier is available for getting started, with paid plans for higher limits or commercial features. Confirm whether the free tier allows commercial use. Prices change often, so check the provider's pricing page before you commit, and model your bill at 10× today's volume.
Before you integrate
- Read the terms on caching, storing and displaying data.
- Note the rate limits and the error format so you can retry with backoff.
- Wrap calls behind your own interface so you can switch providers later.
- Pin an API version if the provider offers versioning, and watch its changelog.
Alternatives to WeatherAPI.com
Open-Meteo
Open-source weather forecasts and historical data with no key required for non-commercial use.
OpenWeather
Current weather, forecasts, air pollution and historical data.
National Weather Service API
Official US forecasts, alerts and observations from NOAA.
Tomorrow.io
Hyperlocal weather forecasts and weather-based alerts.