> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Tomorrow.io

> Tomorrow.io's Weather API: current conditions, hourly and daily forecasts, the last 24 hours of history, and custom timelines of chosen weather fields for a location.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/tomorrow-io.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=1312c532a76edd0ae486cdf8fb6b46da)

[Web Catalog · Environment](https://docs.webrouter.net/data-apis.md?category=environment)

Needs&#x20;

`TOMORROW_IO_API_KEY`

Endpoints

4

Auth

Key in query

[Vendor docs](https://docs.tomorrow.io/reference/welcome)

&#x20;·&#x20;

[Pricing](https://www.tomorrow.io/weather-api/)

## Setup

| Variable | | What it is |
| - | - | - |
| `TOMORROW_IO_API_KEY` | required | A Tomorrow\.io API key (app.tomorrow\.io > Development > API keys), sent as the apikey query parameter. Keys carry full account privileges. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* location takes 'latitude, longitude' (latitude first, e.g. 42.3478, -71.0466), a city name, a US zip with country (10001 US) or a UK postcode.
* Requests per second, hour and day are capped by plan; over the cap answers 429. Remaining-quota headers are sent to Enterprise accounts only.
* units is metric (default) or imperial; field meanings and units are in the Weather Data Layers reference.

## Endpoints

GET

Get the weather forecast for a location

Hourly forecasts for the next 120 hours and daily forecasts for the next 5 days (minutely on premium plans).

[Open](#tomorrow-io-weather-forecast)

GET

Get current weather for a location

Current conditions (temperature, wind, precipitation, cloud cover, weather code...) at a location.

[Open](#tomorrow-io-weather-realtime)

GET

Get the last day of weather history

Hourly weather for the last 24 hours and daily weather for the last day at a location.

[Open](#tomorrow-io-weather-recent-history)

POST

Get a timeline of chosen weather fields

Values of the fields you pick (temperature, precipitationIntensity, windSpeed...) at the timesteps and time window you pick, for a point, a saved location or a GeoJSON geometry.

[Open](#tomorrow-io-timelines)

### Get the weather forecast for a location

GET

`/v4/weather/forecast`

`tomorrow-io.weather.forecast`

Hourly forecasts for the next 120 hours and daily forecasts for the next 5 days (minutely on premium plans).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`location` required</td><td>string</td><td>query</td><td>lat, lon (latitude first), a city name, a US zip with country, or a UK postcode. Example `42.3478, -71.0466`</td></tr>
    <tr><td>`timesteps`</td><td>string</td><td>query</td><td>1h for hourly, 1d for daily. Example `1d`</td></tr>
    <tr><td>`units`</td><td>string</td><td>query</td><td>Default metric. One of `metric`, `imperial`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomorrow.io/reference/weather-forecast) · Same job: [US National Weather Service](https://docs.webrouter.net/data-apis/nws.md#nws-forecast-get), [Open-Meteo](https://docs.webrouter.net/data-apis/openmeteo.md#openmeteo-forecast-get), [OpenWeather](https://docs.webrouter.net/data-apis/openweather.md#openweather-forecast-get), [Precip](https://docs.webrouter.net/data-apis/precip.md#precip-forecast), [WeatherAPI.com](https://docs.webrouter.net/data-apis/weatherapi.md#weatherapi-forecast)

```python Python theme={null}
router.call_data_api("tomorrow-io.weather.forecast", {'location': '42.3478, -71.0466', 'timesteps': '1d'})
```

```text MCP theme={null}
call_data_api(endpoint="tomorrow-io.weather.forecast", params={"location": "42.3478, -71.0466", "timesteps": "1d"})
```

### Get current weather for a location

GET

`/v4/weather/realtime`

`tomorrow-io.weather.realtime`

Current conditions (temperature, wind, precipitation, cloud cover, weather code...) at a location.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`location` required</td><td>string</td><td>query</td><td>lat, lon (latitude first), a city name, a US zip with country, or a UK postcode. Example `toronto`</td></tr>
    <tr><td>`units`</td><td>string</td><td>query</td><td>Default metric. One of `metric`, `imperial`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomorrow.io/reference/realtime-weather) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-weather), [FlightAware AeroAPI](https://docs.webrouter.net/data-apis/flightaware.md#flightaware-airports-weather), [US National Weather Service](https://docs.webrouter.net/data-apis/nws.md#nws-observations-latest), [OpenWeather](https://docs.webrouter.net/data-apis/openweather.md#openweather-weather-current), [WeatherAPI.com](https://docs.webrouter.net/data-apis/weatherapi.md#weatherapi-current)

```python Python theme={null}
router.call_data_api("tomorrow-io.weather.realtime", {'location': 'toronto'})
```

```text MCP theme={null}
call_data_api(endpoint="tomorrow-io.weather.realtime", params={"location": "toronto"})
```

### Get the last day of weather history

GET

`/v4/weather/history/recent`

`tomorrow-io.weather.recent_history`

Hourly weather for the last 24 hours and daily weather for the last day at a location.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`location` required</td><td>string</td><td>query</td><td>lat, lon (latitude first), a city name, a US zip with country, or a UK postcode. Example `austin`</td></tr>
    <tr><td>`timesteps`</td><td>string</td><td>query</td><td>1h for hourly, 1d for daily. Example `1h`</td></tr>
    <tr><td>`units`</td><td>string</td><td>query</td><td>Default metric. One of `metric`, `imperial`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomorrow.io/reference/weather-recent-history) · Same job: [Environment and Climate Change Canada (GeoMet-OGC-API)](https://docs.webrouter.net/data-apis/eccc-geomet.md#eccc-geomet-climate-daily), [NASA POWER](https://docs.webrouter.net/data-apis/nasapower.md#nasapower-daily-point), [US National Weather Service](https://docs.webrouter.net/data-apis/nws.md#nws-observations-list), [Open-Meteo](https://docs.webrouter.net/data-apis/openmeteo.md#openmeteo-archive-get), [OpenWeather](https://docs.webrouter.net/data-apis/openweather.md#openweather-onecall-timemachine), [ACIS (NOAA Regional Climate Centers)](https://docs.webrouter.net/data-apis/rcc-acis.md#rcc-acis-station-data)

```python Python theme={null}
router.call_data_api("tomorrow-io.weather.recent_history", {'location': 'austin', 'timesteps': '1h'})
```

```text MCP theme={null}
call_data_api(endpoint="tomorrow-io.weather.recent_history", params={"location": "austin", "timesteps": "1h"})
```

> [!NOTE]
>
> * Only the last 24 hours; older history is a separate, token-billed historical API not covered here.

### Get a timeline of chosen weather fields

POST

`/v4/timelines`

`tomorrow-io.timelines`

Values of the fields you pick (temperature, precipitationIntensity, windSpeed...) at the timesteps and time window you pick, for a point, a saved location or a GeoJSON geometry.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`location` required</td><td>string</td><td>body</td><td>lat, lon (latitude first), a saved location id, or a GeoJSON geometry. Example `42.3478, -71.0466`</td></tr>
    <tr><td>`fields` required</td><td>array</td><td>body</td><td>Data-layer field names, e.g. \["temperature", "windSpeed"]. Example `["temperature"]`</td></tr>
    <tr><td>`timesteps`</td><td>array</td><td>body</td><td>Any of 1m, 5m, 15m, 30m, 1h, 1d, current; default \["1h"]. Example `["1h"]`</td></tr>

    <tr>
      <td>
        `startTime`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        now (default), nowPlusXh / nowMinusXh (m, h, d), or ISO 8601.
      </td>
    </tr>

    <tr><td>`endTime`</td><td>string</td><td>body</td><td>Same forms as startTime, e.g. nowPlus6h. Example `nowPlus6h`</td></tr>
    <tr><td>`units`</td><td>string</td><td>body</td><td>Default metric. One of `metric`, `imperial`</td></tr>

    <tr>
      <td>
        `timezone`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Time zone the returned times are shown in; it does not shift startTime and endTime.
      </td>
    </tr>

    <tr>
      <td>
        `dailyStartHour`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Hour 0-23 at which daily (1d) aggregation starts; default 6.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.tomorrow.io/reference/post-timelines) · Same job: [US National Weather Service](https://docs.webrouter.net/data-apis/nws.md#nws-forecast-get), [Open-Meteo](https://docs.webrouter.net/data-apis/openmeteo.md#openmeteo-forecast-get), [OpenWeather](https://docs.webrouter.net/data-apis/openweather.md#openweather-forecast-get), [Precip](https://docs.webrouter.net/data-apis/precip.md#precip-forecast), [WeatherAPI.com](https://docs.webrouter.net/data-apis/weatherapi.md#weatherapi-forecast)

```python Python theme={null}
router.call_data_api("tomorrow-io.timelines", {'location': '42.3478, -71.0466', 'fields': ['temperature'], 'timesteps': ['1h'], 'endTime': 'nowPlus6h'})
```

```text MCP theme={null}
call_data_api(endpoint="tomorrow-io.timelines", params={"location": "42.3478, -71.0466", "fields": ["temperature"], "timesteps": ["1h"], "endTime": "nowPlus6h"})
```

> [!NOTE]
>
> * A read over POST: the body only carries the query (location, fields, window); nothing is saved.
> * For a polygon or line location, a field without a suffix is the maximum over the area.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.