---
title: "Previous Runs API"
description: "Compare forecasts made 1 to 7 days ahead against what actually happened, and measure how forecast skill changes with lead time."
url: "https://portal.oxide.bitshft.dev/previous-runs-api"
image: "https://portal.oxide.bitshft.dev/_og/d/c_Ocean.takumi,title_Previous+Runs+API,description_~Q29tcGFyZSBmb3JlY2FzdHMgbWFkZSAxIHRvIDcgZGF5cyBhaGVhZCBhZ2FpbnN0IHdoYXQgYWN0dWFsbHkgaGFwcGVuZWQsIGFuZCBtZWFzdXJlIGhvdyBmb3JlY2FzdCBza2lsbCBjaGFuZ2VzIHdpdGggbGVhZCB0aW1lLg,props_eyJ0aGVtZSI6eyJtb2RlIjoiZGFyayIsImNvbG9ycyI6eyJwcmltYXJ5IjoiIzBENkVGRCJ9fX0,p_Ii9wcmV2aW91cy1ydW5zLWFwaSI,s_1tIrc1IYz1xoIlQv.png"
---

# Previous Runs API

Compare forecasts made 1 to 7 days ahead against what actually happened, and measure how forecast skill changes with lead time.

## [How lead-time offsets work](#how-lead-time-offsets-work)

The Previous Runs API returns forecast data at fixed lead-time offsets of 1–7 days. Add a `_previous_dayN` suffix to a variable name to pick the offset.

-   `_previous_day0` is the current model run.
-   `_previous_day1` is the value predicted 24 hours before valid time.
-   `_previous_day2` is the value predicted 48 hours before, and so on up to day 7.

Compare these offsets with observations or reanalysis to see how forecast skill degrades with lead time. For local models with shorter horizons (2–5 days), only offsets within that horizon are populated.

## [Make a request](#make-a-request)

1. Choose a location and variables

Set `latitude` and `longitude`, then list the hourly variables you want, such as `temperature_2m` and its `_previous_dayN` variants.

2. Set the time range

Use `past_days` and `forecast_days`. Forecasts reach up to 16 days.

3. Send the request

```bash
curl "https://previous-runs-api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m,temperature_2m_previous_day1,temperature_2m_previous_day2&past_days=7&forecast_days=1"
```

## [Data availability](#data-availability)

| Coverage            | Archived from |
| :------------------ | :------------ |
| Most models         | January 2024  |
| GFS 2 m temperature | March 2021    |
| JMA GSM and MSM     | 2018          |

Global models update every 6 hours. Regional models update every 1–3 hours.

Usage limit

The non-commercial licence allows fewer than 10.000 daily API calls.

## [Next steps](#next-steps)

For the complete output of one model run, use the Single Runs API. For the full model and variable list, see the [Docs](https://portal.oxide.bitshft.dev/docs).

Getting started

Make your first request.

<https://portal.oxide.bitshft.dev/getting-started>

Docs

Models and variables.

<https://portal.oxide.bitshft.dev/docs>

Historical Weather API

Past weather data.

<https://portal.oxide.bitshft.dev/historical-weather-api>

Historical Forecast API

Archived forecasts.

<https://portal.oxide.bitshft.dev/historical-forecast-api>