API Directory › 🌦 Weather › Tomorrow.io
API KeyHTTPSCORS

Tomorrow.io API

Hyperlocal weather and environmental data, including many specialized data layers.

Category
Auth
API Key
HTTPS
Yes
CORS
Yes
Open Tomorrow.io docs ↗

What it does

Tomorrow.io is a weather-intelligence API with an unusually broad set of data layers: standard temperature/precip/wind plus air quality, pollen, fire index, road risk, cloud ceiling, and hyperlocal minute-by-minute precipitation. The Timelines endpoint lets you request any set of fields over any interval.

Base URL

https://api.tomorrow.io/v4

Authentication

Sign up for a free API key and pass it as ?apikey=YOUR_KEY. Location can be "lat,lon", a place name or a saved location ID.

Code examples

curl
curl -s "https://api.tomorrow.io/v4/weather/realtime?location=42.36,-71.06&apikey=$TIO_KEY"
Python (timelines)
import requests

r = requests.get("https://api.tomorrow.io/v4/timelines", params={
    "location": "42.36,-71.06",
    "fields": "temperature,precipitationProbability",
    "timesteps": "1h", "units": "metric", "apikey": KEY}, timeout=10)
ivals = r.json()["data"]["timelines"][0]["intervals"]
for iv in ivals[:6]:
    print(iv["startTime"], iv["values"]["temperature"])

Rate limits & quotas

Free plan: roughly 500 calls/day, 25/hour and 3/second. Rate-limit headers (X-RateLimit-Remaining-*) report all three windows. Over any of them returns HTTP 429. Some premium fields (certain pollen/road-risk layers, long history) need a paid plan.

Key response fields

data.values.temperatureRealtime endpoint: current temperature
data.values.weatherCodeNumeric code — map via Tomorrow.io’s code table
data.timelines[].intervals[]Timelines: each has startTime + a values object
data.values.precipitationProbability0–100% chance of precip
data.values.epaIndex / treeIndex / grassIndexAir quality and pollen (where available)

Common errors

401 / code 401001Invalid or missing API key.
400 / code 400001Unknown field name or malformed timesteps.
429 / code 429001One of the per-second/hour/day limits exceeded.
403Requested field or range is not in your plan.

When to use it (and alternatives)

The pick when you need data beyond basic weather — pollen, air quality, fire or road risk in one call. For plain forecasts at higher free volume, Open-Meteo and WeatherAPI.com are better value.

FAQ

What is the Timelines endpoint for?

It is the flexible workhorse: you pass a list of fields, a timesteps value (current, 1h, 1d) and a time range, and get back aligned intervals. Realtime and Forecast are convenience wrappers around it.

Why did I hit the rate limit so quickly?

The free tier has a low hourly cap (25) and a 3/second burst limit on top of the daily 500. Check all three X-RateLimit-Remaining headers, not just the daily one.

How do I read the weatherCode?

It is a numeric code (e.g. 1000 = clear, 4001 = rain). Tomorrow.io publishes a lookup table mapping codes to text and icons — bundle it with your app.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Weather Checker

Related Weather APIs

← Back

More Weather APIs · All 196 APIs