# 获取单个国家 ## 接口信息 - Method: `GET` - URL: `https://tms-go.czl.net/api/v1/country` - Auth: `Authorization: Bearer ` ## Query 参数 | 参数 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | `code` | `string` | 是 | 国家二字码,例如 `US`、`CN`、`GB` | ## 请求示例 ```bash curl --request GET \ --url 'https://tms-go.czl.net/api/v1/country?code=US' \ --header 'Authorization: Bearer your_api_key' ``` ## 成功响应 ```json { "code": 200, "msg": "success", "data": { "code": "US", "name": "美国", "ename": "United States" } } ``` ## 说明 - 适合表单输入后的单点国家校验 - `code` 为空时接口会返回错误