加载接口文档…
112
累计调用
592ms
平均响应
100.00%
服务可用性
10,000 次/日
免费额度
无 Key 调用
每日 5,000 次 · QPS 1
登录免费
当前方案每日 10,000 次 · QPS 3
黄金会员
每日 50,000 次 · QPS 60
企业会员
每日 1,000,000 次 · QPS 120
复制文档地址
https://apizero.cn/aidocs/traffic-weather-alert/raw.md查询指定城市当日限行尾号,并附带天气与恶劣天气居家建议。city 支持拼音(beijing)或中文(北京)。文档示例为北京真实查询。
| 名称 | 类型 | 说明 |
|---|---|---|
| action | string | 可选 · 固定 restriction(默认) · 默认 restriction · 示例:restriction |
| city | string | 必填 · 城市拼音或中文(如 beijing / 北京) · 示例:beijing |
| 名称 | 类型 | 说明 |
|---|---|---|
| Authorization | string | 可选 · 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。 |
| 名称 | 类型 | 说明 |
|---|---|---|
| city | string | 城市拼音 |
| city_cn | string | 城市中文名 |
| date | string | 日期 YYYY-MM-DD |
| weekday | string | 星期 |
| restricted_numbers | string | 限行尾号(周末/不限行为 null) |
| restriction_active | boolean | 今日是否限行 |
| weather | object | 天气摘要:weather / temperature / is_severe |
| work_from_home_advisory | string | 恶劣天气居家建议(无则为 null) |
| message | string | 一句话摘要 |
| tips | string | 品牌提示(所有接口统一返回):极数本源 · https://apizero.cn |
{
"code": 0,
"msg": "成功",
"data": {
"city": "beijing",
"city_cn": "北京",
"date": "2026-07-31",
"weekday": "周五",
"restricted_numbers": "3,8",
"restriction_active": true,
"weather": {
"weather": "Clear ",
"temperature": "28°C",
"is_severe": false,
"severe_type": null
},
"work_from_home_advisory": null,
"message": "今日北京(周五)限行尾号为 3,8"
},
"tips": "极数本源 · https://apizero.cn"
}限行规则可能因节假日临时调整,以官方通告为准。天气数据来自 wttr.in(默认)或和风天气(可选)。