Weather
GET
/v1/weatherMean, high and low temperature, rain, wind and sunshine for every region of a country, by day or by month, keyed by the same region codes as /v1/destinations so a place's nights read beside its weather. Monthly rows average temperatures and wind and add up rain and sunshine.
Developer plan and upKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| isorequired | string path | ISO 3166 two-letter country code e.g. CL |
| placeoptional | string query | A region code or part of its name e.g. DK01 |
| freqoptional | D | M query | D for each day, M for each month (the default) e.g. D |
| fromoptional | period query | First period to return e.g. 2025-01 |
| tooptional | period query | Last period to return e.g. 2026-08 |
| limitoptional | integer query | Rows per page, 1 to 1000 e.g. 100 |
Request
# Weather by region, daily or monthly
curl "https://api.tourismapi.com/v1/weather?iso=DK&place=DK01&freq=D" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/weather?iso=DK&place=DK01&freq=D", {
headers: { "X-API-Key": process.env.TOURISM_API_KEY }
});
if (!res.ok) throw new Error(`Tourism API ${res.status}`);
const { meta, data } = await res.json();
console.log(meta.data_as_of, data);import os, requests
r = requests.get(
"https://api.tourismapi.com/v1/weather?iso=DK&place=DK01&freq=D",
headers={"X-API-Key": os.environ["TOURISM_API_KEY"]},
timeout=10,
)
r.raise_for_status()
body = r.json()
print(body["meta"]["data_as_of"], body["data"])$ch = curl_init("https://api.tourismapi.com/v1/weather?iso=DK&place=DK01&freq=D");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("TOURISM_API_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
print_r($body["data"]);
Example response
{
"meta": {
"request_id": "req_8802a1ae21",
"data_as_of": "2026-11-07T04:51:41Z",
"count": 32,
"freq": "D",
"from": "2026-10-04",
"to": null,
"places": 1,
"more": false,
"note": "Monthly rows average the daily temperatures and wind and add up rain and sunshine; sunshine is published a few days after the other values, so the newest days show it empty."
},
"data": [
{
"place": "Capital Region of Denmark",
"code": "DK01",
"country": "DK",
"level": "region",
"period": "2026-10-04",
"t_mean_c": 13.3,
"t_max_c": 14.9,
"t_min_c": 12.4,
"rain_mm": 0.1,
"wind_ms": 3.6,
"sun_kwh_m2": 2.82,
"days": 1
},
{
"place": "Capital Region of Denmark",
"code": "DK01",
"country": "DK",
"level": "region",
"period": "2026-10-05",
"t_mean_c": 14.9,
"t_max_c": 17.6,
"t_min_c": 12.2,
"rain_mm": 0.4,
"wind_ms": 5.2,
"sun_kwh_m2": 1.57,
"days": 1
},
{
"place": "Capital Region of Denmark",
"code": "DK01",
"country": "DK",
"level": "region",
"period": "2026-10-06",
"t_mean_c": 14,
"t_max_c": 15.3,
"t_min_c": 11.2,
"rain_mm": 0.3,
"wind_ms": 3.9,
"sun_kwh_m2": 2.42,
"days": 1
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| place | string | Capital Region of Denmark |
| code | string | DK01 |
| country | string | DK |
| level | string | region |
| period | string | 2026-10-04 |
| t_mean_c | number | 13.3 |
| t_max_c | number | 14.9 |
| t_min_c | number | 12.4 |
| rain_mm | number | 0.1 |
| wind_ms | number | 3.6 |
| sun_kwh_m2 | number | 2.82 |
| days | number | 1 |