Skip to main content
POST
/
ip
/
getRegionList
cURL
curl --request POST \
  --url https://apiv1.cakeip.com/openapi/ip/getRegionList \
  --header 'Content-Type: application/json' \
  --data '
{
  "appKey": "<string>",
  "params": {
    "countryId": "<string>"
  }
}
'
{
  "code": 0,
  "msg": "<string>",
  "data": [
    {
      "name": "<string>",
      "code": "<string>"
    }
  ]
}

Body

application/json

获取国家列表

appKey
string
required

AppKey密钥

params
object
required

动态参数集合

Response

响应成功

code
enum<integer>
default:0

状态码,0为操作成功

Available options:
0,
-1
Example:

0

msg
string

响应消息

data
object[]

响应数据