Real-time, forecast, and historical weather data with timezone info.

🔑 apiKey🔒 HTTPS🌐 ✓ CORS Enabled
API Details
API NameWeatherAPI
CategoryWeather
AuthenticationapiKey
HTTPS Support✅ Yes — secured
CORS Policy✅ Enabled — browser-safe
DocumentationOpen Docs ↗
⚡ Quick Start

Copy this JavaScript snippet to start using the API immediately.

const res = await fetch("https://www.weatherapi.com/docs", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);
More Weather APIs
See all →
Open-Meteo

Free weather forecast API with no API key required. Hourly and daily data.

No AuthHTTPS
Get API →
OpenWeatherMap

Current weather, forecasts, and historical data for any location.

apiKeyHTTPS
Get API →
Tomorrow.io

Weather data with high-resolution forecasting and air quality.

apiKeyHTTPS
Get API →
🚀 Access This API

View endpoints, request formats, rate limits, and full response schemas in the official docs.

Open Documentation →← Browse All APIs
🔐 Authentication Guide
API Key Required

Register on the provider site to get a free key, then pass it in your request:

Authorization: Bearer YOUR_KEY
// or as query param:
?api_key=YOUR_KEY
⚙️ Compatibility
Browser (Frontend)✓ Supported
Server (Node / Python)✓ Always works
HTTPS / SSL✓ Secured
💡 Developer Tips
  • Store keys in .env — never expose them in client-side code.
  • Direct browser fetch calls work — no proxy needed.
  • Handle rate limits with retry logic and exponential backoff.
  • Cache responses locally to minimize calls and stay on free tier.
📂 Weather Category

Explore all free APIs in the Weather category.

Browse Weather
👋 Need help with code?