/v1/history
Historical weather
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/weather-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weather-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weather-api/v1/history");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/weather-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"days": [
{
"date": "2024-01-01",
"sunset": "2024-01-01T17:02",
"sunrise": "2024-01-01T09:17",
"condition": {
"code": 53,
"text": "Moderate drizzle"
},
"avg_temp_c": 5.3,
"max_temp_c": 7.3,
"min_temp_c": 3.4,
"rain_sum_mm": 1.8,
"max_wind_kmh": 19.7,
"precip_sum_mm": 1.8,
"snowfall_sum_cm": 0
},
{
"date": "2024-01-02",
"sunset": "2024-01-02T17:03",
"sunrise": "2024-01-02T09:17",
"condition": {
"code": 73,
"text": "Moderate snow fall"
},
"avg_temp_c": 4.4,
"max_temp_c": 6.9,
"min_temp_c": 2.5,
"rain_sum_mm": 6.8,
"max_wind_kmh": 20.2,
"precip_sum_mm": 7.2,
"snowfall_sum_cm": 0.28
},
{
"date": "2024-01-03",
"sunset": "2024-01-03T17:04",
"sunrise": "2024-01-03T09:16",
"condition": {
"code": 63,
"text": "Moderate rain"
},
"avg_temp_c": 8.7,
"max_temp_c": 10.6,
"min_temp_c": 7.2,
"rain_sum_mm": 12.1,
"max_wind_kmh": 27.8,
"precip_sum_mm": 12.1,
"snowfall_sum_cm": 0
},
{
"date": "2024-01-04",
"sunset": "2024-01-04T17:05",
"sunrise": "2024-01-04T09:16",
"condition": {
"code": 51,
"text": "Light drizzle"
},
"avg_temp_c": 4.1,
"max_temp_c": 7.2,
"min_temp_c": -2.2,
"rain_sum_mm": 2.9,
"max_wind_kmh": 33.1,
"precip_sum_mm": 2.9,
"snowfall_sum_cm": 0
},
{
"date": "2024-01-05",
"sunset": "2024-01-05T17:06",
"sunrise": "2024-01-05T09:16",
"condition": {
"code": 73,
"text": "Moderate snow fall"
},
"avg_temp_c": 0.3,
"max_temp_c": 0.9,
"min_temp_c": -0.7,
"rain_sum_mm": 1.3,
"max_wind_kmh": 21.3,
"precip_sum_mm": 5.3,
"snowfall_sum_cm": 2.8
},
{
"date": "2024-01-06",
"sunset": "2024-01-06T17:07",
"sunrise": "2024-01-06T09:16",
"condition": {
"code": 71,
"text": "Slight
…