---
title: "Docs"
description: "Build a weather forecast request: choose a location, pick hourly, daily or current variables, select a weather model and read the response."
url: "https://portal.oxide.bitshft.dev/docs"
image: "https://portal.oxide.bitshft.dev/_og/d/c_Ocean.takumi,title_Docs,description_~QnVpbGQgYSB3ZWF0aGVyIGZvcmVjYXN0IHJlcXVlc3Q6IGNob29zZSBhIGxvY2F0aW9uLCBwaWNrIGhvdXJseSwgZGFpbHkgb3IgY3VycmVudCB2YXJpYWJsZXMsIHNlbGVjdCBhIHdlYXRoZXIgbW9kZWwgYW5kIHJlYWQgdGhlIHJlc3BvbnNlLg,props_eyJ0aGVtZSI6eyJtb2RlIjoiZGFyayIsImNvbG9ycyI6eyJwcmltYXJ5IjoiIzBENkVGRCJ9fX0,p_Ii9kb2NzIg,s_tE8N5n6X4FKM4M6V.png"
---

# Docs

Build a weather forecast request: choose a location, pick hourly, daily or current variables, select a weather model and read the response.

## [What the Weather Forecast API offers](#what-the-weather-forecast-api-offers)

The Weather Forecast API gives you high-resolution weather model data for any location. A request needs a location and the weather variables you want. You can then adjust the time range, the weather model and the units.

By default you get forecasts for 7 days, and you can extend that to 16 days. To read archived forecasts, use the Past Days feature. For the full archive of past forecast runs, see the [Historical Forecast API](https://portal.oxide.bitshft.dev/historical-forecast-api). To start from scratch, read [Getting started](https://portal.oxide.bitshft.dev/getting-started).

Usage limits

The free licence is only for non-commercial use and fewer than 10.000 daily API calls. Commercial and self-hosted options are listed under the usage licence setting.

## [Make your first request](#make-your-first-request)

1. Choose a location

Set a latitude and longitude. You can also search for a place, enter a list of locations or use a bounding box.

2. Pick your variables

Add hourly, daily or current variables to the request. The example below asks for `temperature_2m` as an hourly variable.

3. Adjust the time range

Choose how many forecast days and past days you want. For hourly variables, you can refine the range with `&forecast_hours=` and `&past_hours=`.

4. Send the request

Copy the API URL into your application.

The API URL for Berlin looks like this:

```text
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m
```

## [Choose a response format](#choose-a-response-format)

Add a `format` parameter to download the same data as a spreadsheet or CSV file.

Default

CSV

XLSX

```text
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m
```

```text
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m&format=csv
```

```text
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m&format=xlsx
```

## [Weather variables](#weather-variables)

| Group           | What it covers                                                                   |
| :-------------- | :------------------------------------------------------------------------------- |
| Hourly          | Temperature, humidity, precipitation, cloud cover, wind at several heights, soil temperature and soil moisture, and more |
| Solar radiation | Shortwave, direct, diffuse and direct normal irradiance, plus global tilted radiation |
| Pressure level  | Temperature, dewpoint, relative humidity, cloud cover, wind and geopotential height by pressure level |
| 15-minutely     | Short-interval values, adjustable with &forecast_minutely_15= and &past_minutely_15= |
| Daily           | Maximum and minimum temperature, sunrise, sunset, precipitation sums and more    |
| Current         | Conditions right now, based on 15-minutely weather model data                    |

15-minutely availability

15-minutely data is only available in Central Europe and North America. Other regions use interpolated hourly data.

## [Weather models](#weather-models)

The default Best Match provides the best forecast for any given location worldwide. You can also select individual models and compare them. A Seamless option combines all models from a given provider.

| Weather model  | Provider                     | Resolution | Forecast length | Update frequency |
| :------------- | :--------------------------- | :--------- | :-------------- | :--------------- |
| ICON           | Deutscher Wetterdienst (DWD) | 2 - 11 km  | 7.5 days        | Every 3 hours    |
| GFS & RRFS     | NOAA                         | 3 - 25 km  | 16 days         | Every hour       |
| ARPEGE & AROME | Météo-France                 | 1 - 25 km  | 4 days          | Every hour       |

## [Common questions](#common-questions)

How far ahead can I forecast?

The default is 7 days. You can access forecasts for up to 16 days.

How do I get past weather?

Use the Past Days feature to access archived forecasts. For past forecast runs as issued, see the [Historical Forecast API](https://portal.oxide.bitshft.dev/historical-forecast-api).

Which models does the API use?

Best Match is the default. Each model covers different areas at different resolutions and provides different variables.

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

Getting started

Set up and make your first call.

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

Features

See what the API can do.

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

Historical Forecast API

Access past forecast runs.

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

Historical Weather API

Look up past weather data.

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