Skip to content

Get Country and Phone Code List

API Description

  • Path: /client/common/countries
  • Method: GET
  • Description: Get the list of countries and corresponding phone codes (DDI) supported by the system. Used for front-end rendering of country and area code drop-down boxes. No verification parameters are required.

Request Parameters

None

Request Example

GET /client/common/countries

Return Parameters

Parameter NameTypeDescription
codeNumberStatus code, 0 means success
msgStringPrompt message
dataArrayContains country list data
data[i].countryCodeStringCountry code (e.g., CN, US, MY)
data[i].currencySymbolStringCurrency symbol used by the country (e.g., ¥, $, RM)
data[i].phoneCodeStringCountry phone code (e.g., +86, +1, +60)
data[i].sortNumberSort value

Return Example

json
{
  "code": 0,
  "msg": "Success",
  "data": [
    {
      "countryCode": "CN",
      "currencySymbol": "¥",
      "phoneCode": "+86",
      "sort": 100
    },
    {
      "countryCode": "MY",
      "currencySymbol": "RM",
      "phoneCode": "+60",
      "sort": 90
    }
  ]
}