published

WeatherAPI

The WeatherAPI offers developers free access to real-time and forecast weather data, suitable for weather applications, dashboards, and travel tools.

Developed by WeatherAPI.com

99.90%Uptime
200msLatency
120Stars
API KeyAuth
NoCredit Card
RESTStyle
v1Version
API Endpoints

Reference for available routes, request structures, and live examples.

Get current weather data

Full Endpoint URL
https://api.weatherapi.com/v1/current.json
Implementation Example
curl -X GET 'https://api.weatherapi.com/v1/current.json' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Request Payload
{
  "q": "London",
  "key": "API_KEY"
}
Expected Response
{
  "current": {
    "temp_c": 18,
    "condition": {
      "text": "Partly cloudy"
    }
  },
  "location": {
    "name": "London"
  }
}
Version:v1
Limit:1000000 requests/month
Real-World Applications
  • Displaying current weather and forecasts on a mobile appOptimized Capability
  • Injecting weather data into travel itinerary plannersOptimized Capability
  • Triggering HVAC control systems based on outdoor conditionsOptimized Capability
  • Enriching e‑commerce shipping estimates with local weather forecastsOptimized Capability
Advantages
  • Global coverage with reliable real‑time and forecast data
  • Fast average response times (~200 ms)
  • Simple REST endpoints and flexible query parameters
  • Multiple response formats (JSON and XML)
Limitations
  • Requires an API key even for free tier
  • Rate limited at 1000 requests/minute (may be restrictive for large-scale use)
  • No WebSocket or push‑based updates
  • Limited historical data in the free tier

FAQs

API Specifications

v1
Pricing Model
Pay‑as‑you‑go with tiered usage plans
Credit Card
Not Required
Response Formats
JSON, XML
Supported Languages
6 Languages
SDK Support
Python, Node.js, Java, Ruby, PHP, C#
Time to Hello World

Under 5 minutes (sign up, obtain key, test via curl or client SDK).

Rate Limit

1000 requests per minute

Free Tier Usage

Free tier includes up to 1000 requests per month, current weather and 3‑day forecast data, JSON format only.

Use Case: Best For

Developers building weather‑aware applications, dashboards, travel tools, small to medium weather integrations.

Not Recommended For

High‑frequency polling, very large scale commercial deployments requiring historical bulk data.

#climate#forecast#weather

Explore Related APIs

Discover similar APIs to WeatherAPI

View All APIs
FREEMIUM

Open Weather Map API

OpenWeatherMap offers developers a robust API to access real-time weather updates, forecasts, and historical climate data integral for weather applications and services.

OPEN SOURCE

Weather.gov API

The Weather.gov API provides free and reliable access to real-time and forecasted weather data, suitable for applications that require timely weather updates.

OPEN SOURCE

Open-Meteo Historical

Open-Meteo Historical API provides developers with free access to comprehensive historical weather data, suitable for applications focused on climate research and historical analysis.