API údajov o počasí
Prístup a limityPublic, no key needed · Medium▾
Otvorené pre všetkých. Bezplatný kľúč API z vášho profilu zvyšuje limity: pošlite ho v X-API-Key záhlavie, alebo ako api_key= v adrese.
| 5 minút | Hodina | Deň | |
|---|---|---|---|
| Bez kľúča | 10 | 60 | 300 |
| S kľúčom | 30 | 200 | 1,500 |
Prihláste sa, aby ste si vytvorili bezplatný kľúč na svojej profilovej stránke.
Každá odpoveď obsahuje X-RateLimit-Remaining a X-RateLimit-Reset. Ak prekročíte limit, odpoveď je chyba 429 s retry_after v sekundách. Odmietnuté požiadavky sa nepočítajú.
Jeden požiadavok vráti všetko, čo tento server drží o počasí na mieste a v deň: každú hodinu modelu NOAA GFS od zeme až do asi 31 km, rozptyl súboru NOAA GEFS každé 3 hodiny a výšku zeme z nášho vlastného úložiska terénu. Toto sú údaje za kontrolou očakávania LoRa, ponúkané otvorene pre raketovú techniku a všetko ostatné, čomu to pomáha.
lat lon dateParametre
| Parameter | Povinný | Značenie |
|---|---|---|
lat | Áno | Zemepisná šírka v desatinných stupňoch, -90 až 90 |
lon | Áno | Zemepisná dĺžka v stupňoch desatinne, -180 až 180 (lng tiež akceptované) |
date | Áno | Deň v kalendári, kde je to miesto, ako YYYY-MM-DD. The answer covers that day's 24 hours in the place's own time zone. GFS is held from 19 Jun 2026 to 16 days ahead, GEFS from 94 days back to 10 days ahead. |
ensemble | Nie | members (the default) returns every ensemble member and a summary; summary returns only the summary; none vynecháva súbor. Úplná odpoveď je o 800 KB, zhrnutie o 220 KB, žiadne o 180 KB. |
Príklad
https://www.altimetercloud.com/api/weather/?lat=52.64&lon=-1.50&date=2026-09-18&ensemble=summary
Ako je odpoveď rozložená
Odpoveď je jeden objekt JSON pre celý deň. Časť GFS je zoznam hodín v deň, jeden záznam za hodinu od 00:00 do 23:00 miestneho času, každá položka obsahujúca počasie na povrchu v danej hodine a jeho úrovne od zeme nahor. Časť GEFS je zoznam časov ensemblu, jeden zápis každé 3 hodiny (00, 03, 06 ... 21 UTC, tie, ktoré padnú v lokálny deň), každá s opisom a, ak je požadované, všetkými členmi.
{
"success", "date",
"location": { "lat", "lon", "elevation_m", "elevation_ft",
"terrain_has_data", "terrain_tier", "terrain_cell_m",
"timezone", "utc_offset_seconds" },
"gfs": {
"available", "model", "ground_height_used_m",
"hours": [ 24 entries: hours[0] is 00:00 local, hours[23] is 23:00
{
"time_local", "time_utc", "unixtime",
"surface": {
"temperature_c", "relative_humidity_pct", "dew_point_c",
"pressure_msl_hpa", "surface_pressure_hpa", "air_density_kg_m3",
"precipitation_mm", "cloud_cover_pct", "cloud_cover_low_pct", "cloud_cover_mid_pct",
"visibility_m", "cape_j_kg",
"wind_10m": { "speed_ms", "direction_deg", "gust_ms" },
"wind_80m": { "speed_ms", "direction_deg", "temperature_c" },
"wind_100m": { "speed_ms", "direction_deg", "temperature_c" }
},
"levels": [ one entry per pressure level above the ground, lowest first
{ "pressure_hpa", "height_msl_m", "height_agl_m",
"wind_speed_ms", "wind_direction_deg", "temperature_c", "air_density_kg_m3" }
]
}
]
},
"gefs": {
"available", "model", "region", or "available": false with a "reason"
"times": [ 8 entries, one every 3 hours in the day
{
"time_local", "time_utc", "unixtime", "available",
"source", "forecast" (with "run" and "lead_hours") or "history"
"summary": {
"members",
"levels": [ one entry per pressure level above the ground, lowest first
{ "pressure_hpa", "members",
"height_agl_m": { "mean", "sd", "min", "max" },
"wind_speed_ms": { "mean", "sd", "min", "max" },
"wind_direction": { "mean_deg", "spread_deg" },
"temperature_c": { "mean", "sd", "min", "max" } }
],
"wind_10m": { "speed_ms": {...}, "direction": {...}, "gust_ms": {...} },
"wind_80m": { "speed_ms": {...}, "direction": {...} },
"wind_100m": { "speed_ms": {...}, "direction": {...} },
"temperature_2m_c": { "mean", "sd", "min", "max" }
},
"members": [ 31 entries (ensemble=members only): c00, p01 ... p30
{ "member",
"levels": [ { "pressure_hpa", "height_msl_m", "height_agl_m",
"wind_speed_ms", "wind_direction_deg", "temperature_c" } ],
"wind_10m": { "speed_ms", "direction_deg", "gust_ms" },
"wind_80m": { "speed_ms", "direction_deg" },
"wind_100m": { "speed_ms", "direction_deg" },
"temperature_2m_c" }
]
}
]
},
"units": { ... }, "notes": [ ... ], "credits": [ ... ]
}
Čítanie
- Hodina:
gfs.hours[14]je 14:00 miestneho času. Jehotime_utcaunixtimedajte rovnaký čas v UTC. - Výška: každej hodiny
levelsbehajú od najnižšej úrovne nad zemou nahor, do približne 31 km (10 hPa). Počet úrovní sa líši v závislosti od výšky terénu: úrovne, ktoré by boli pod zemou, sú vynechané, takže vyberte úrovne podľaheight_agl_mskôr ako podľa polohy. Vetry na 10, 80 a 100 m sú vsurface. - Súbor:
gefs.timesje 3-hodinový, takže hodina medzi dvomi jeho časmi leží medzi dvomi položkami. GEFS úrovne sú 17, ktoré ensemble nesie (1000, 975, 950, 925, 900, 850, 800, 750, 700, 500, 400, 300, 250, 200, 100, 50 a 10 hPa), opäť len tie nad terénom. - Chýbajúce hodnoty sú
null. V čase GEFS server neobsahuje iba ich časy a"available": false.
Príklad: vietor pre každú hodinu dňa
// JavaScript
const url = 'https://www.altimetercloud.com/api/weather/?lat=52.64&lon=-1.50&date=2026-09-18&ensemble=none';
const d = await (await fetch(url)).json();
for (const h of d.gfs.hours) {
const w = h.surface.wind_10m;
const km1 = h.levels.find(l => l.height_agl_m >= 1000); // first level at or above 1 km
console.log(h.time_local, w.speed_ms, w.direction_deg, km1 ? km1.wind_speed_ms : null);
}
# Python
import requests
d = requests.get('https://www.altimetercloud.com/api/weather/',
params={'lat': 52.64, 'lon': -1.50, 'date': '2026-09-18', 'ensemble': 'none'}).json()
for h in d['gfs']['hours']:
w = h['surface']['wind_10m']
print(h['time_local'], w['speed_ms'], w['direction_deg'], len(h['levels']), 'levels')
Jednotky: výšky v metroch, vietor v m/s so smerom, z ktorého vietor fúka, v stupňoch pravého severu, teploty v stupňoch Celzia, tlaky v hPa, hustota vzduchu v kg/m3 (suchý vzduch). Štandardné odchýlky (sd) are across the members; spread_deg je rozptyl smerov členov.
{
"success": true,
"date": "2026-09-18",
"location": { "lat": 52.64, "lon": -1.5, "elevation_m": 123.4, "elevation_ft": 404.9,
"terrain_has_data": true, "terrain_tier": "ultra", "terrain_cell_m": 31,
"timezone": "Europe/London", "utc_offset_seconds": 3600 },
"gfs": {
"available": true,
"hours": [
{ "time_local": "2026-09-18T00:00", "time_utc": "2026-09-17T23:00Z",
"surface": { "temperature_c": 11.2, "relative_humidity_pct": 80, "dew_point_c": 9.5,
"surface_pressure_hpa": 1000.1, "air_density_kg_m3": 1.2253,
"wind_10m": { "speed_ms": 4.2, "direction_deg": 245, "gust_ms": 9 }, ... },
"levels": [
{ "pressure_hpa": 975, "height_msl_m": 323.4, "height_agl_m": 200,
"wind_speed_ms": 8.74, "wind_direction_deg": 250.3,
"temperature_c": 12.9, "air_density_kg_m3": 1.18742 }, ... ] }, ... ] },
"gefs": {
"available": true, "region": "Europe",
"times": [
{ "time_utc": "2026-09-18T00:00Z", "source": "forecast", "run": "2026091612", "lead_hours": 36,
"summary": { "members": 31,
"levels": [ { "pressure_hpa": 975,
"wind_speed_ms": { "mean": 3.33, "sd": 1.19, "min": 1.33, "max": 5.33 },
"wind_direction": { "mean_deg": 255.7, "spread_deg": 14.9 }, ... } ] } }, ... ] },
"credits": [ ... ]
}
Chyby
Chyby sa vracajú ako "success": false s kódom a správou.
| Kód | Značenie |
|---|---|
412 | Chýba parameter alebo nie je platný |
416 | The date is outside what the server holds; first_date a last_date dajú rozsah |
429 | Príliš veľa požiadaviek z vašej adresy alebo jedna stále čakajúca na odpoveď |
Ak je služba modelu počasia nedostupná, odpoveď sa stále vráti s výškou terénu a ensemblom a gfs.available je nepravdivé s dôvodom.
Credits you must show
The data is free to use, including commercially, as long as it is credited. Wherever you show it, include:
- GFS: Weather data by Open-Meteo.com, licensed CC BY 4.0, noting that it has been interpolated to the place.
- GEFS: NOAA National Centers for Environmental Prediction, Global Ensemble Forecast System. Do not suggest that NOAA endorses your use.
- Ground height: the terrain data credits at the foot of this page.
These are model values, not observations. Check official forecasts and the conditions on the field before flying.
Skúste to
Zemepisná šírka
Zemepisná dĺžka
Dátum (RRRR-MM-DD)
Súbor (členovia, zhrnutie alebo žiadny)
Čítanie AltimeterCloud
Bezplatne. Ak používate this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com v mieste použitia: na obrazovke, stránke alebo výtlačku, kde sa údaje zobrazujú, napríklad “Data from AltimeterCloud.com”. Všetky kredity, ktoré požadujú vlastné zdroje údajov, uvedené na tejto stránke, platia aj tu.
Terrain data credits
The ground heights come from the Terrain Tiles dataset (Mapzen / Tilezen, on AWS Open Data), reduced into resolution tiers by Altimeter Cloud. Wherever you show heights from this API, credit their sources. Each answer carries a short form of the list below in its credits field.
- ArcticDEM terrain data DEM(s) were created from DigitalGlobe, Inc., imagery and funded under National Science Foundation awards 1043681, 1559691, and 1542736
- Australia terrain data © Commonwealth of Australia (Geoscience Australia) 2017
- Austria terrain data © offene Daten Österreichs – Digitales Geländemodell (DGM) Österreich
- Canada terrain data contains information licensed under the Open Government Licence – Canada
- Europe terrain data produced using Copernicus data and information funded by the European Union - EU-DEM layers
- Global ETOPO1 terrain data U.S. National Oceanic and Atmospheric Administration
- Mexico terrain data source: INEGI, Continental relief, 2016
- New Zealand terrain data Copyright 2011 Crown copyright (c) Land Information New Zealand and the New Zealand Government (All rights reserved)
- Norway terrain data © Kartverket
- United Kingdom terrain data © Environment Agency copyright and/or database right 2015. All rights reserved
- United States 3DEP (formerly NED) and global GMTED2010 and SRTM terrain data courtesy of the U.S. Geological Survey
The licences behind each statement are on the terrain tiles attribution page.



















