An API key is required to access the ISIMIP climate projection endpoint.
1. Complete the CAPTCHA.
2. Enter your email address below to request an API key.
Retrieve climate projection time series for a geographic location and selected climate model, scenario, and temporal resolution.
POST /api/isimip/timeseries
Production endpoint:
https://climateprojection.apistack.eu/api/isimip/timeseries
Authentication is performed using your API key as the
api_key query parameter.
?api_key=YOUR_API_KEY
The request body must contain the following JSON fields:
| Field | Type | Description |
|---|---|---|
lon |
number | Longitude in decimal degrees. |
lat |
number | Latitude in decimal degrees. |
model |
string |
Climate model, or all to retrieve
all available models.
|
scenario |
string |
ssp126,
ssp370, or
ssp585.
|
resolution |
string |
daily,
monthly, or
yearly.
|
date_start |
string | Start date in YYYY-MM-DD format. |
date_end |
string | End date in YYYY-MM-DD format. |
POST /api/isimip/timeseries?api_key=YOUR_API_KEY
{
"lon": 13.4,
"lat": 52.5,
"model": "MPI-ESM1-2-HR",
"scenario": "ssp585",
"resolution": "daily",
"date_start": "2040-01-01",
"date_end": "2050-12-31"
}
The following example uses http.
import httpx
import requests
API_KEY = ""
url = (
"https://climateprojections.apistack.eu"
"/api/isimip/timeseries"
)
params = {
"api_key": "YOUR_API_KEY",
}
payload = {
"lon": 13.4,
"lat": 52.5,
"model": "MPI-ESM1-2-HR",
"scenario": "ssp585",
"resolution": "daily",
"date_start": "2040-01-01",
"date_end": "2050-12-31",
}
response = requests.post(
url,
params=params,
json=payload,
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)
const API_KEY = "YOUR_API_KEY";
const response = await fetch(
"https://climateprojection.apistack.eu"
+ "/api/isimip/timeseries"
+ "?api_key=" + encodeURIComponent(API_KEY),
{
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
lon: 13.4,
lat: 52.5,
model: "MPI-ESM1-2-HR",
scenario: "ssp585",
resolution: "daily",
date_start: "2040-01-01",
date_end: "2050-12-31"
})
}
);
if (!response.ok) {
throw new Error(
`HTTP ${response.status}: ${await response.text()}`
);
}
const data = await response.json();
console.log(data);
Set model to all to retrieve the
requested time series from every available climate model.
{
"lon": 13.4,
"lat": 52.5,
"model": "all",
"scenario": "ssp585",
"resolution": "daily",
"date_start": "2040-01-01",
"date_end": "2050-12-31"
}
Climate data is available on a regular grid covering Germany and surrounding areas, with 16 latitude points and 18 longitude points (288 grid cells).
The API selects the nearest available grid cell to the requested coordinates and returns its actual latitude and longitude.
{
"shape": [16, 18],
"bbox": {
"lat_min": 47.2,
"lat_max": 55.1,
"lon_min": 5.8,
"lon_max": 15.1
}
}
The response contains the nearest available grid cell and the requested climate variables:
pr — precipitationrsds — surface downwelling shortwave radiationtasmax — maximum temperaturetasmin — minimum temperatureetp — evapotranspirationEach climate variable is returned as an array of values corresponding to the requested date range and resolution.
When a specific model is requested, the response is keyed by
that model. When model is all, the
response contains one entry for each available model.
{
"MPI-ESM1-2-HR": {
"lat": 52.75,
"lon": 13.25,
"pr": [...],
"rsds": [...],
"tasmax": [...],
"tasmin": [...],
"etp": [...]
}
}
FastAPI also provides interactive API documentation: