Skip to main content
GET
Return every country’s international dial code in one call, or do the reverse — find every country that shares a given dial code (useful for NANP +1 countries like the US and Canada). Dial codes follow ITU-T E.164 and are returned with a leading +. For NANP countries with an area-code prefix in the underlying data (e.g. Barbados as +1-246), the area code is returned as a separate area_code field.
Availability: Starter plan and above. Returns 403 on lower tiers.
Responses are cached server-side for 24 hours. Equivalent dial-code inputs (+91, 91, 091, 0091) all resolve to the same cache slot.

Response

The response is an array of phone entries, even when the result is a single country.

Authorizations

X-CSCAPI-KEY
string
header
required

API key for authentication. Get your free key at app.countrystatecity.in.

Query Parameters

code
string

Dial code to filter by. Accepts with or without + prefix (+91 or 91), 1–4 digits, leading zeros are stripped.

Example:

"+1"

Response

List of dial code entries ordered by country ISO2 code

country
string
required

ISO 3166-1 alpha-2 country code

Example:

"IN"

dial_code
string
required

International dial code with + prefix

Example:

"+91"

iso2
string
required

ISO 3166-1 alpha-2 code

Example:

"IN"

iso3
string
required

ISO 3166-1 alpha-3 code

Example:

"IND"

area_code
string | null

Fixed area code for NANP territories (e.g., 246 for Barbados). Present only when applicable.

Example:

null