Phone Numbers

List Phone Country Rules

Returns the active global country catalog with calling codes, number lengths, and prefixes.

get/v1/phone-country-rules/countries

Request

  • Base URL: https://api.dialnexa.com
  • URL: https://api.dialnexa.com/v1/phone-country-rules/countries
  • Auth: HTTP bearer

Response

Active phone country rules returned successfully.

successtrue required
errorfalse required
statusCodeinteger required
messagestring required
timestampstring date-time required

Example response

{
  "statusCode": 200,
  "message": "Success",
  "data": [
    {
      "id": "c7r2n5x8q1w4zt",
      "country_iso": "IN",
      "country_name": "India",
      "calling_code": "91",
      "max_length": 10,
      "prefixes": [
        "98",
        "99"
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.