Handy reference card with common endpoints and parameters for quick lookup
A one‑page cheat sheet of the most commonly used Weather API endpoints and parameters. For the full walkthrough, see Getting Started. For auth details, see Authentication.
All requests require your API key as the appid
query parameter.
Group | Endpoint | Purpose | Minimal Example |
---|---|---|---|
Current Weather | /weather |
Current conditions by city/coords | /weather?q=London,UK&appid=API_KEY |
5‑Day Forecast | /forecast |
5‑day / 3‑hour forecast | /forecast?q=Paris,FR&appid=API_KEY |
Air Pollution | /air_pollution |
Air Quality Index and pollutant components | /air_pollution?lat=37.77&lon=-122.41&appid=API_KEY |
Add &units=metric
for °C or &units=imperial
for °F.
You can use q=City,CountryCode
or lat
+ lon
for location.
Name | Type | Values / Format | Notes |
---|---|---|---|
q |
string | City,CountryCode (e.g., Paris,FR ) |
URL‑encode spaces (e.g., San%20Francisco ). |
lat |
float | Latitude | Alternative to q . |
lon |
float | Longitude | Alternative to q . |
units |
string | standard (K, default), metric , imperial |
Temperature units. |
lang |
string | ISO code (e.g., en , es , fr ) |
Localizes condition text. |
appid |
string | Your API key | Required on every request. |
Typical success code: 200 OK.
Common errors: 401 (invalid key), 404 (not found), 429 (rate limit).
See Status and Error Codes and Rate Limiting for details.
lat
/lon
for ambiguous city names.appid
to version control.