Weather API
FreemiumCurrent weather, 9-day forecasts, hourly forecasts, and sunrise/sunset/moon phase for any city or coordinates worldwide.
Documentation
Current weather, 9-day forecasts, hourly forecasts, and sunrise/sunset/moon phase for any city or coordinates worldwide.
What you get
- Current conditions — temperature, humidity, wind, pressure, cloud cover
- Daily forecast up to 9 days, hourly up to 48 hours
- Sunrise, sunset, moonrise, moonset and moon phase
- Look up by city name or coordinates, metric or imperial units
Great for travel and event apps, agriculture, delivery planning, smart-home and dashboards.
Quick start
Subscribe to a plan (the Basic plan is free), then call the API at https://weather.p.apihiver.com with your key in the X-API-Key header:
curl "https://weather.p.apihiver.com/v1/current?city=Mumbai" \
-H "X-API-Key: YOUR_API_KEY"Endpoints
| Method | Path | What it does |
|---|---|---|
GET | /v1/current | Current weather for a city or coordinates |
GET | /v1/forecast | Daily forecast (up to 9 days) |
GET | /v1/hourly | Hour-by-hour forecast (next 48 hours) |
GET | /v1/sun-moon | Sunrise, sunset, solar noon, moonrise, moonset and moon phase |
Open the Endpoints tab to see every parameter, example request and example response, and to try the API live.
Errors
Every error is JSON with the same shape:
{"error": {"code": "INVALID_INPUT", "message": "Pass 'city' (e.g. Mumbai) or 'coords' (lat,lon)."}}| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | A parameter is missing or has the wrong format — the message says which |
| 401 | UNAUTHORIZED | Missing or invalid X-API-Key |
| 429 | — | Plan quota or rate limit reached (see the X-RateLimit-* headers) |
| 502 / 503 / 504 | — | A data source or the API server is temporarily unavailable — retry after a few seconds |
Data & privacy
Data comes from MET Norway (the Norwegian Meteorological Institute), CC BY 4.0, with GeoNames city lookup.
Weather API FAQ
- Is the Weather API free?
- Yes. The Basic plan is free and includes 500 requests per month — no card needed. Paid plans start at ₹299 per month for 10,000 requests.
- How much does the Weather API cost?
- Basic: free for 500 requests; Pro: ₹299/month for 10,000 requests; Ultra: ₹999/month for 50,000 requests; Mega: ₹2,499/month for 2,00,000 requests. Billing is monthly and you can cancel any time.
- How do I use the Weather API?
- Subscribe to a plan on APIHiver, create an API key in the Console, then send requests to https://weather.p.apihiver.com with your key in the X-API-Key header. You can also try every endpoint in the browser playground first.
- What endpoints does the Weather API have?
- It has 4 endpoints: Current weather for a city or coordinates (GET /v1/current); Daily forecast (up to 9 days) (GET /v1/forecast); Hour-by-hour forecast (next 48 hours) (GET /v1/hourly); Sunrise, sunset, solar noon, moonrise, moonset and moon phase (GET /v1/sun-moon).
- What are the Weather API rate limits?
- Basic: 2 requests per second; Pro: 5 requests per second; Ultra: 10 requests per second; Mega: 20 requests per second. Monthly quotas depend on the plan; every response includes X-RateLimit headers showing what's left.
- Can I use one API key for the Weather API and other APIs?
- Yes. One APIHiver key works for every API you subscribe to, so you don't need a separate account or key per provider.
Related APIs
Earthquake API
WeatherBy APIHiver · Updated 1w ago
Real-time earthquakes worldwide from the USGS: recent quakes, quakes near a location, historical search and event details.
Math Solver API
EducationBy APIHiver · Updated 1w ago
Evaluate expressions, solve equations, and compute derivatives, integrals and simplifications — with exact and decimal answers.
Drug Information API
HealthcareBy APIHiver · Updated 1w ago
Medicine information from the US FDA: uses, dosage, warnings, side effects, reported adverse events and recalls.
Health & Fitness Calculators API
HealthcareBy APIHiver · Updated 1w ago
BMI, daily calories (BMR/TDEE), ideal weight, body-fat percentage and water intake — using standard medical formulas.
Food Nutrition API
HealthcareBy APIHiver · Updated 1w ago
Nutrition facts, ingredients, Nutri-Score and allergens for millions of packaged foods — by barcode or name.
Endpoints
4 endpoints — full list is in the sidebar on larger screens.