AerisWeather API
Comprehensive weather data API with forecasts, alerts and many advanced datasets.
What it does
AerisWeather (now branded Xweather) is a commercial weather API covering observations, forecasts, severe alerts, lightning, tropical-cyclone tracks, air quality, indices and map layers, with a free developer tier for evaluation and small projects.
Base URL
Authentication
Create an app to get a client_id and client_secret pair, passed as query parameters on every request. Requests are /{endpoint}/{location}?client_id=&client_secret=. Newer accounts may use the data.api.xweather.com host.
Code examples
curl -s "https://api.aerisapi.com/observations/Seattle,WA?client_id=$AERIS_ID&client_secret=$AERIS_SECRET"
import requests
r = requests.get("https://api.aerisapi.com/forecasts/minneapolis,mn",
params={"client_id": CID, "client_secret": CSECRET, "limit": 3}, timeout=10)
body = r.json()
if not body["success"]:
raise SystemExit(body["error"])
for period in body["response"][0]["periods"]:
print(period["validTime"], period["maxTempC"], period["weather"])Rate limits & quotas
The free developer tier allows roughly 1,000 requests/day at a modest per-minute rate, with access to the core endpoints. Every response has a success boolean and, on failure, an error object with a code (invalid_client, plan_limit_exceeded…) — the HTTP status may still be 200.
Key response fields
| success | true/false — check this first |
| response[0].ob | Current observation block (temp, wind, humidity, weather) |
| response[0].periods[] | Forecast periods with min/max temp and conditions |
| error.code / error.description | Present when success is false |
Common errors
| error invalid_client | Wrong or missing client_id/client_secret. |
| error plan_limit_exceeded | Daily request allowance used up. |
| error unauthorized_action | Endpoint not included in your (free) plan. |
| error warn_no_data | No data for that location/endpoint combination. |
When to use it (and alternatives)
Consider it if you need Xweather-specific layers (lightning, tropical tracks, map tiles) and 1,000/day is enough to evaluate. For general-purpose free weather with far fewer restrictions, Open-Meteo or WeatherAPI.com are simpler starting points.
FAQ
Is it AerisWeather or Xweather now?
Same company — AerisWeather rebranded to Xweather. Existing api.aerisapi.com endpoints still work; new documentation and some accounts point at data.api.xweather.com.
Why is success false with a 200 status?
Aeris signals errors in the JSON body. Always branch on response['success'] and read error.code when it is false.
How is a location specified?
Very flexibly — City,ST, lat,lon, ZIP code, airport code, or a place ID, all in the URL path after the endpoint name.
New to APIs?
Short guides for working with this API — and any other.