Calling codes for every country

Lists supported countries with their calling codes.

Request

GEThttps://phone-number-validator.p.apihiver.com/v1/countries
Loading…

Sent as X-API-Key. Every key on your account works across any API you're subscribed to.

Language
Client
1curl --request GET \
2  --url https://phone-number-validator.p.apihiver.com/v1/countries \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Calling codes for every country: Phone Number Validation API reference

Lists supported countries with their calling codes. This endpoint is part of the Phone Number Validation API: Validate and format phone numbers for 240+ countries: valid or not, mobile or landline, carrier, region, and E.164 format.

Example response (200, application/json)

Success.

1{
2  "count": 245,
3  "countries": [
4    {
5      "calling_code": "+247",
6      "country_code": "AC"
7    },
8    {
9      "calling_code": "+376",
10      "country_code": "AD"
11    },
12    {
13      "calling_code": "+971",
14      "country_code": "AE"
15    }
16  ]
17}