/v1/daily
Daily historical weather
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/weatherhistory-api/v1/daily" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weatherhistory-api/v1/daily", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weatherhistory-api/v1/daily");
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/weatherhistory-api/v1/daily",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"end": "2024-01-07",
"days": [
{
"date": "2024-01-01",
"rain_mm": 1.8,
"temp_max_c": 7.3,
"temp_min_c": 3.4,
"snowfall_cm": 0,
"temp_mean_c": 5.3,
"apparent_max_c": 4,
"apparent_min_c": -0.4,
"precipitation_mm": 1.8,
"windgusts_max_kmh": 36,
"windspeed_max_kmh": 19.7,
"wind_direction_deg": 218
},
{
"date": "2024-01-02",
"rain_mm": 6.8,
"temp_max_c": 6.9,
"temp_min_c": 2.5,
"snowfall_cm": 0.3,
"temp_mean_c": 4.4,
"apparent_max_c": 4.1,
"apparent_min_c": -1.3,
"precipitation_mm": 7.2,
"windgusts_max_kmh": 35.6,
"windspeed_max_kmh": 20.2,
"wind_direction_deg": 167
},
{
"date": "2024-01-03",
"rain_mm": 12.1,
"temp_max_c": 10.6,
"temp_min_c": 7.2,
"snowfall_cm": 0,
"temp_mean_c": 8.7,
"apparent_max_c": 6.2,
"apparent_min_c": 3.3,
"precipitation_mm": 12.1,
"windgusts_max_kmh": 47.9,
"windspeed_max_kmh": 27.8,
"wind_direction_deg": 227
},
{
"date": "2024-01-04",
"rain_mm": 2.9,
"temp_max_c": 7.2,
"temp_min_c": -2.2,
"snowfall_cm": 0,
"temp_mean_c": 4.1,
"apparent_max_c": 3.5,
"apparent_min_c": -6,
"precipitation_mm": 2.9,
"windgusts_max_kmh": 61.9,
"windspeed_max_kmh": 33.1,
"wind_direction_deg": 269
},
{
"date": "2024-01-05",
"rain_mm": 1.3,
"temp_max_c": 0.9,
"temp_min_c": -0.7,
"snowfall_cm": 2.8,
"temp_mean_c": 0.3,
"apparent_max_c": -2.9,
"apparent_min_c": -5.2,
"precipitation_mm": 5.3,
"windgusts_max_kmh": 36.7,
"windspeed_max_kmh": 21.3,
"wind_direction_deg": 96
},
{
"date": "2024-01-06",
"rain_mm": 0.1,
"temp_max_c": 0.9,
"temp_min_c": -1.8,
"snowfall_cm": 0.9,
"temp_mean_c": -0.4,
"apparent_max_c": -3.4,
"apparent_min_c": -6.9,
"precipitation_mm": 1.3,
"windgusts_max_kmh": 32.4,
"windspeed_max_kmh": 18.4,
"wind_direction_deg": 70
},
…