城市天气id
查询当前城市的天气id。
GET/POST
JSON
总调用: 20 次
接口详情
GET/POST
JSON
接口状态
调用频率
无限制
响应时间
测速中
稳定性
稳定
请求参数
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
city | 是 | string | 需要填的城市名 |
参数按重要性排序,必填参数已加粗显示
调用示例
https://api.bugpk.com/api/citywid?city=朝阳
无
返回示例
{
"success": true,
"type": "substring",
"count": 3,
"results": [
{
"name": "北京市朝阳",
"id": "101010300",
"type": "substring",
"position": 9
},
{
"name": "辽宁省朝阳市朝阳",
"id": "101071201",
"type": "substring",
"position": 9
},
{
"name": "吉林省长春市朝阳",
"id": "101060110",
"type": "substring",
"position": 18
}
]
}
响应参数
名称 | 类型 | 说明 |
---|---|---|
success | string | 状态码 |
type | string | 类型 |
count | string | 结果条数 |
results | string | 信息 |