# DHL 城市建议查询 ## 接口信息 - Method: `GET` - URL: `https://tms-go.czl.net/api/v1/dhl/city/suggestions` - Auth: `Authorization: Bearer ` ## Query 参数 | 参数 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | `country_code` | `string` | 是 | 国家二字码 | | `query` | `string` | 是 | 城市名或邮编关键词 | ## 请求示例 ```bash curl --request GET \ --url 'https://tms-go.czl.net/api/v1/dhl/city/suggestions?country_code=US&query=10001' \ --header 'Authorization: Bearer your_api_key' ``` ## 成功响应 ```json { "code": 200, "msg": "success", "data": { "country_code": "US", "query": "10001", "suggestions": [ { "name": "NEW YORK", "code": "NYC" } ] } } ``` ## 说明 - 适合自动补全和模糊提示 - 推荐先调用国家邮编支持查询,再决定给用户展示邮编还是城市输入