天气数据 API

访问与限制Public, no key needed · Medium▾

对所有人开放。来自您的个人资料的免费 API 密钥可提高限制:将其发送到 X-API-Key header, or as api_key= 在地址中。

5 分钟小时日
没有密钥1060300
使用密钥302001,500

登录在您的配置文件页面上创建免费密钥。

每个答案都包含 X-RateLimit-Remaining 和 X-RateLimit-Reset. 超过限制,答案是错误 429 与 retry_after (秒内)。拒绝的请求不计算在内。

GET 不需要密钥 JSON 每个地址每小时60个请求

一个请求返回这个服务器拥有的关于某个地点和某一天的所有天气数据:从地面到大约 31 km 的 NOAA GFS 模型的每一小时,NOAA GEFS 集合的每 3 小时扩展,以及来自我们自己地形存储的地面高度。这是 LoRa 期望检查背后的数据,为火箭学和任何其他有帮助的用途公开提供。

GEThttps://www.altimetercloud.com/api/weather/lat lon date

参数

参数必需含义
lat是纬度(十进制度数),-90 至 90
lon是纬度十进制度数,-180 到 180(lng 也被接受)
date是该地所在日期的日历日期,作为 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否members (the default) returns every ensemble member and a summary; summary returns only the summary; none 离开集合。完整答案约 800 KB,摘要约 220 KB,无答案约 180 KB。

示例

https://www.altimetercloud.com/api/weather/?lat=52.64&lon=-1.50&date=2026-09-18&ensemble=summary

答案的布局方式

答案是整天的一个 JSON 对象。GFS 部分是当天小时数的列表, 每小时一条记录,从 00:00 到 23:00 本地时间, 每项都包含该小时的地面天气及其从地面向上的各个高度。GEFS 部分是集合时间的列表, 每 3 小时一次条目 (00, 03, 06 ... 21 UTC, 在当地日期内的部分),每个包含一个摘要,如果需要,还包含每个成员。

{
  "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": [ ... ]
}

读取它

  • 一小时: gfs.hours[14] 是 14:00 本地时间。其 time_utc 和 unixtime 给出 UTC 中的相同时刻。
  • 一个高度: 每小时的 levels 从地面上方的最低级别开始向上运行,直到约31 km(10 hPa)。级别数随地面高度变化:会被埋入地下的级别被省略,因此请按 height_agl_m 而不是按位置。10、80 和 100 m 处的风力数据在 surface.
  • 这个集合: gefs.times 是 3 小时一次,所以两个时间之间的一小时位于两个条目之间。GEFS 级别是集合携带的 17 个(1000、975、950、925、900、850、800、750、700、500、400、300、250、200、100、50 和 10 hPa),同样仅限于地面以上的那些。
  • 缺少值 是 null。A GEFS时间,服务器不保存携带其时间的 "available": false.

示例:一天中每个小时的风

// 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')

单位:高度(米)、风速(m/s,风向为真实方向的度数)、温度(摄氏度)、气压(hPa)、空气密度(kg/m3 (干燥空气)。标准差(sd) are across the members; spread_deg 是成员方向分布的散度。

响应(缩短版本)
{
  "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": [ ... ]
}

错误

错误返回为 "success": false 包含代码和消息。

代码含义
412参数缺失或无效
416The date is outside what the server holds; first_date 和 last_date 给出范围
429来自您的地址的请求太多,或者仍有一个在处理中

如果天气模型服务不可用,答案仍会返回地面高度和集合数据,以及 gfs.available 为假,附带原因。

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.

试一下

纬度

经度

日期 (YYYY-MM-DD)

集合 (成员、摘要或无)

等待中

Altimeter Cloud 致谢

免费使用。如果您使用 this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com 在使用点:在屏幕、页面或打印输出上显示数据的位置,例如 “Data from AltimeterCloud.com”。此页面上列出的数据自身来源要求的任何署名也适用。

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.