freeapis

WeatherAPI

Weather API with other stuff like Astronomy and Geolocation API

Authentication
API Key
HTTPS
Yes
CORS
Yes
Category
Weather
Documentation / URL
https://www.weatherapi.com/

Overview

WeatherAPI.com bundles weather with extras: current conditions, forecasts, history, marine weather, astronomy (sun/moon), and a geolocation API — all behind one simple key. CORS-enabled, with a free tier that covers light apps.

Quick Start

Current weather (replace YOUR_KEY):

curl "https://api.weatherapi.com/v1/current.json?key=YOUR_KEY&q=London"

Forecast (up to 14 days on higher tiers):

curl "https://api.weatherapi.com/v1/forecast.json?key=YOUR_KEY&q=Paris&days=3"

Astronomy (sunrise/sunset, moon phase):

curl "https://api.weatherapi.com/v1/astronomy.json?key=YOUR_KEY&q=Tokyo"

Search/lookup locations:

curl "https://api.weatherapi.com/v1/search.json?key=YOUR_KEY&q=berlin"

Authentication

  • Register at weatherapi.com for a free key (instant).
  • Send it as the key query parameter.
  • q accepts city, lat,lon, US ZIP, or UK postcode.

Rate Limits & Notes

  • Free tier: 100 requests/day (verify on the pricing page — it’s small, paid tiers scale up to 1M+/month).
  • The free tier covers current + forecast (up to 3 days) + astronomy + timezone; history and higher forecast days are paid.
  • aqi=yes / alerts=yes add air quality and weather alerts (tier-dependent).
  • CORS is enabled — browser calls work (good for client-side widgets).

FAQ

Is WeatherAPI free? There’s a small free tier (about 100 requests/day); higher limits and history are paid.

What’s included? Current weather, forecasts, astronomy (sun/moon), timezone, marine data, and a geolocation API.

Can I call it from the browser? Yes — CORS is enabled.

More in Weather

APIAuthHTTPSCORS
7Timer!

Weather, especially for Astroweather

No authNoUnknown
AccuWeather

Weather and forecast data

API KeyNoUnknown
Aemet

Weather and forecast data from Spain

API KeyYesUnknown
APIXU

Weather

API KeyYesUnknown
AQICN

Air Quality Index Data for over 1000 cities

API KeyYesUnknown