GET /weather/current
获取任何位置的当前天气状况,包括温度、湿度、体感温度、降水、风速和风向以及天气描述代码。支持按纬度/经度坐标或按城市名称查询(支持 30 个主要城市)。数据每 15 分钟从 Open-Meteo 更新,由国家气象服务提供支持。适用于天气小组件、户外活动规划器和基于位置的应用。
lat
可选
Latitude
lon
可选
Longitude
city
可选
City name
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
lat |
否 | - | Latitude |
lon |
否 | - | Longitude |
city |
否 | - | City name |
curl "https://nordapi.ee/api/v1/weather/current?city=oslo"
curl "https://nordapi.ee/api/v1/weather/current?city=oslo"
curl "https://nordapi.ee/api/v1/weather/current?city=tokyo"
curl "https://nordapi.ee/api/v1/weather/current?lat=40.71&lon=-74.01"
{
"city": "oslo",
"data": {
"current": {
"apparent_temperature": 5.3,
"cloud_cover": 74,
"interval": 900,
"precipitation": 0.0,
"relative_humidity_2m": 78,
"temperature_2m": 7.8,
"time": "2026-04-05T19:15",
"weather_code": 2,
"wind_direction_10m": 259,
"wind_speed_10m": 8.3
},
"current_units": {
"apparent_temperature": "°C",
"cloud_cover": "%",
"interval": "seconds",
"precipitation": "mm",
"relative_humidity_2m": "%",
"temperature_2m": "°C",
"time": "iso8601",
"weather_code": "wmo code",
"wind_direction_10m": "°",
"wind_speed_10m": "km/h"
},
"elevation": 21.0,
"generationtime_ms": 0.10371208190917969,
"latitude": 59.915844,
"longitude": 10.760788,
"timezone": "Europe/Oslo",
"timezone_abbreviation": "GMT+2",
"utc_offset_seconds": 7200
},
"success": true
}