English
English
简体中文
Contact Us
Register
Log In

Get a List of Country Codes

Last Updated on : 2022-05-23 01:43:32download

Get a list of all countries according to a specified language. For more information, see Wikipedia.

API address

GET: /v3.0/iot-03/all-countries

Request parameter

Parameter nameTypeINRequiredDescription
langStringquerytrueThe language pack.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
country_codeStringThe country or region code.
national_numberStringThe area code.
country_nameStringThe name of a specified country or region.
country_phonetic_alphabetStringThe pinyin of a specified country name.

Request example

GET: /v3.0/iot-03/all-countries?lang=zh

Return example

[
    {
        "country_phonetic_alphabet": "afuhan",
        "national_number": "93",
        "country_code": "AF",
        "country_name": "Afghanistan"
    },
    {
        "country_phonetic_alphabet": "aerbaniya",
        "national_number": "355",
        "country_code": "AL",
        "country_name": "Albania"
    }
]

Error code

For more information, see error code.

Error codeDescription
7004The service of querying the information of countries and cities has expired.