GET https://openapi.dataeyes.ai/v1/weather| Parameter | Type | Required | Description |
|---|---|---|---|
cityId | integer | Yes | City ID. See the City ID list. For example, Beijing is 2 |
code / data / message envelope.{
"id": "6ad54097-414e-412e-b101-abe0a197ba57",
"city": {
"cityId": 2,
"counname": "中国",
"name": "北京市",
"pname": "北京市",
"ianatimezone": "Asia/Shanghai",
"timezone": "8"
},
"today": {
"time": "2025-11-17 星期一",
"temp": "4",
"tempDay": "4",
"tempNight": "-2",
"conditionDay": "晴",
"conditionNight": "多云",
"humidity": "16",
"windDir": "WNW",
"windSpeed": "25.88"
},
"forecast": [
{
"predictDate": "2025-11-17",
"conditionDay": "晴",
"conditionNight": "多云",
"tempDay": "4",
"tempNight": "-2",
"humidity": "18",
"pop": "0",
"sunrise": "2025-11-17 07:02:00",
"sunset": "2025-11-17 16:57:00",
"windDirDay": "西北风",
"windLevelDay": "1"
}
]
}| Field | Description |
|---|---|
city | City details: name, country and province, time zone |
today | Current conditions: temperature, weather, humidity, wind direction and speed |
forecast[] | Daily forecast: date, day/night weather, high/low temperature, precipitation probability pop, sunrise/sunset, wind direction and level |