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: Supporter 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.

Authentication

string
required
Your API key for authentication

Query Parameters

string
Optional. Restrict the response to countries with the given dial code. Accepts:
  • With or without leading + (+91 or 91)
  • 1โ€“4 digits
  • Leading zeros are stripped (so 01, 001, 1 all match +1)
  • NANP area-code variants โ€” ?code=+1 returns the US, Canada, and every NANP territory in one response
Without this parameter, every country with a dial code is returned (sorted by ISO2 code).

Response

The response is an array of phone entries, even when the result is a single country.
string
ISO 3166-1 alpha-2 code of the country (e.g. "US"). Convenience field equal to iso2.
string
Dial code with leading + (e.g. "+91").
string
Present only for NANP entries with a fixed area-code prefix in the underlying data (e.g. "246" for Barbados). Omitted when not applicable โ€” do not assume the field exists.
string
ISO 3166-1 alpha-2 code (e.g. "US").
string
ISO 3166-1 alpha-3 code (e.g. "USA").