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

Body

application/json

获取国家列表

appKey
string
required

AppKey密钥

Response

响应成功

code
enum<integer>
default:0

状态码,0为操作成功

Available options:
0,
-1
Example:

0

msg
string

响应消息

data
object[]

响应数据