稳定、快速、免费的 API 接口服务
查询国家代码时区信息
接口地址: https://api.qqsuu.cn/api/dm-timezone
返回格式: JSON
请求方式: GET/POST
请求示例: https://api.qqsuu.cn/api/dm-timezone?word=china
所有接口需携带秘钥,以免更新导致请求失败!
请求参数说明:
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| word | 是 | String | 国家中英文或地区英文 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| country | String | 国家/地区 |
| countryen | String | 国家/地区英文 |
| countryezm | String | 国家/地区二字码 |
| countryszm | String | 国家/地区三字码 |
| timezone | String | 国际时区名 |
| areaname | String | 地区 |
| continent | String | 所属洲 |
返回示例:
{
"code": 200,
"msg": "success",
"result": {
"list": [
{
"country": "中国",
"countryen": "China",
"countryezm": "CN",
"countryszm": "CHN",
"timezone": "Asia/Hong_Kong",
"areaname": "Hong_Kong",
"continent": "Asia"
},
{
"country": "中国",
"countryen": "China",
"countryezm": "CN",
"countryszm": "CHN",
"timezone": "Asia/Taipei",
"areaname": "Taipei",
"continent": "Asia"
},
{
"country": "中国",
"countryen": "China",
"countryezm": "CN",
"countryszm": "CHN",
"timezone": "Asia/Shanghai",
"areaname": "Shanghai",
"continent": "Asia"
},
{
"country": "中国",
"countryen": "China",
"countryezm": "CN",
"countryszm": "CHN",
"timezone": "Asia/Urumqi",
"areaname": "Urumqi",
"continent": "Asia"
},
{
"country": "中国",
"countryen": "China",
"countryezm": "CN",
"countryszm": "CHN",
"timezone": "Asia/Macau",
"areaname": "Macau",
"continent": "Asia"
}
]
}
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|
代码示例: