Phone Endpoints
List Dial Codes
List every country’s international dial code, with optional reverse lookup by dial code
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
Your API key for authentication
Query Parameters
Optional. Restrict the response to countries with the given dial code. Accepts:
- With or without leading
+(+91or91) - 1–4 digits
- Leading zeros are stripped (so
01,001,1all match+1) - NANP area-code variants —
?code=+1returns the US, Canada, and every NANP territory in one response
Response
The response is an array of phone entries, even when the result is a single country.ISO 3166-1 alpha-2 code of the country (e.g.
"US"). Convenience field equal to iso2.Dial code with leading
+ (e.g. "+91").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.ISO 3166-1 alpha-2 code (e.g.
"US").ISO 3166-1 alpha-3 code (e.g.
"USA").Related Endpoints
- Get Dial Code by Country — one country at a time when you already know the country
- Parse Phone Number — given an E.164 number, identify the country