1. 地理信息
Ghink Open API v3 Calgary
  • 系统操作
    • 获取Token
      GET
  • 短链接
    • 添加
      POST
  • 地理信息
    • 获取行政区划
      GET
  • 灰度滤镜
    GET
  • 404音乐
    GET
  • 当前时间
    GET
  1. 地理信息

获取行政区划

GET
/geo/administration
获取行政区划

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.gh.ink/v3/geo/administration?id&children'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "data": {
        "id": 31,
        "name": "中国",
        "children": [
            {
                "id": 32,
                "name": "北京",
                "children": null
            },
            {
                "id": 50,
                "name": "天津",
                "children": null
            },
            {
                "id": 68,
                "name": "河北",
                "children": null
            },
            {
                "id": 252,
                "name": "山西",
                "children": null
            },
            {
                "id": 383,
                "name": "内蒙古",
                "children": null
            },
            {
                "id": 497,
                "name": "辽宁",
                "children": null
            },
            {
                "id": 612,
                "name": "吉林",
                "children": null
            },
            {
                "id": 682,
                "name": "黑龙江",
                "children": null
            },
            {
                "id": 824,
                "name": "上海",
                "children": null
            },
            {
                "id": 844,
                "name": "江苏",
                "children": null
            },
            {
                "id": 962,
                "name": "浙江",
                "children": null
            },
            {
                "id": 1064,
                "name": "安徽",
                "children": null
            },
            {
                "id": 1186,
                "name": "福建",
                "children": null
            },
            {
                "id": 1281,
                "name": "江西",
                "children": null
            },
            {
                "id": 1392,
                "name": "山东",
                "children": null
            },
            {
                "id": 1550,
                "name": "河南",
                "children": null
            },
            {
                "id": 1727,
                "name": "湖北",
                "children": null
            },
            {
                "id": 1844,
                "name": "湖南",
                "children": null
            },
            {
                "id": 1981,
                "name": "广东",
                "children": null
            },
            {
                "id": 2126,
                "name": "广西",
                "children": null
            },
            {
                "id": 2250,
                "name": "海南",
                "children": null
            },
            {
                "id": 2274,
                "name": "重庆",
                "children": null
            },
            {
                "id": 2317,
                "name": "四川",
                "children": null
            },
            {
                "id": 2520,
                "name": "贵州",
                "children": null
            },
            {
                "id": 2618,
                "name": "云南",
                "children": null
            },
            {
                "id": 2764,
                "name": "西藏",
                "children": null
            },
            {
                "id": 2845,
                "name": "陕西",
                "children": null
            },
            {
                "id": 2963,
                "name": "甘肃",
                "children": null
            },
            {
                "id": 3065,
                "name": "青海",
                "children": null
            },
            {
                "id": 3117,
                "name": "宁夏",
                "children": null
            },
            {
                "id": 3145,
                "name": "新疆",
                "children": null
            },
            {
                "id": 3259,
                "name": "台湾",
                "children": null
            },
            {
                "id": 3283,
                "name": "香港",
                "children": null
            },
            {
                "id": 3302,
                "name": "澳门",
                "children": null
            }
        ]
    },
    "msg": "success"
}
🟢200Bad Request
🟢200Geo Administration Not Found
🟢200Internal Server Error
🟢200Missing Parameter
修改于 2026-03-13 20:29:38
上一页
添加
下一页
灰度滤镜
Built with