Openweathermap Api »
| Plan | Rate Limit | Features | |-------------|----------------------------|-------------------------------------------| | Free | 60 calls/min | Current weather, 5-day forecast, air pollution | | Startup | 60 calls/min | + hourly forecast, 40+ years history | | Developer | 600 calls/min (or higher) | + daily forecast, weather maps, bulk download | | Professional| Custom | + unlimited API calls, enterprise SLAs |
"weather": ["main": "Clear", "description": "clear sky"], "main": "temp": 22.5, "feels_like": 21.8, "humidity": 65, "pressure": 1012 , "wind": "speed": 3.1, "deg": 200, "name": "Tokyo"
| Code | Meaning | |------|-----------------------------| | 200 | Success | | 400 | Bad request (invalid params)| | 401 | Invalid API key | | 404 | City/location not found | | 429 | Too many requests (rate limit exceeded)| | 500 | Server error | openweathermap api
Pricing and limits subject to change – refer to OpenWeatherMap Pricing for current details. Below is a simple Python script to fetch current weather for a city.
Endpoint: /forecast
"cod": "401", "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."
import requests API_KEY = "your_api_key_here" CITY = "New York" URL = f"https://api.openweathermap.org/data/2.5/weather?q=CITY&units=metric&appid=API_KEY" | Plan | Rate Limit | Features |
Here’s a technical write-up on the , covering its features, usage, endpoints, and practical integration. Technical Write-Up: OpenWeatherMap API 1. Overview OpenWeatherMap is a popular online service that provides weather data, forecasts, and historical information via a RESTful API. It is widely used by developers, researchers, and businesses to integrate real-time and forecasted weather conditions into applications, dashboards, IoT devices, and automation systems.