NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Country Calling Code API

GET

Map any country code to its international dialing prefix.

Country Calling Code is a phone number country code API that looks up international dialing codes and official names from a two-letter ISO country code. It returns an array of calling prefixes, standard country identifiers and, on request, the country's exit and trunk prefixes, other regions sharing its code, valid number lengths and example numbers by line type.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/callingcode?country=FR
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "France",
    "officialName": "French Republic",
    "countryCode": "FR",
    "callingcodes": [
      "+33"
    ],
    "region": "Europe",
    "subregion": "Western Europe"
  }
}

About the Country Calling Code API

Pass any two-letter ISO country code to retrieve its international phone dialing codes, common name, and official name. Because some jurisdictions share or use multiple prefixes, calling codes arrive as an array. Add dialing=true for the international (exit) prefix on every plan. Paid plans add geographic region and subregion, plus the national trunk prefix, other regions that share the calling code, valid number lengths and example numbers for fixed-line, mobile and toll-free lines.

What people use it for

Signup Form Prepopulation
When users pick their nationality on signup forms, frontends populate the international phone prefix automatically to avoid input errors.
Contact Record Normalization
Clean customer address books by appending verified country dialing prefixes to local phone numbers stored with ISO country codes.
SMS Gateway Routing
To dispatch two-factor authentication alerts, messaging systems verify recipient phone prefixes against their registered account country.
Logistics Contact Sheets
Shipping platforms convert destination ISO codes into international dialing prefixes so couriers can contact international package recipients.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

How it compares

Side by side with the tools people weigh Country Calling Code against — what each one is better at, in plain terms.

Other ways to use Country Calling Code

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Country Calling Code API.

Read the docs →
Is it cheap enough to look up calling codes for every signup?
Yes. Each lookup costs 1 credit, which works out to about $0.00015 per call on the Starter plan, or $0.15 per 1,000 requests. The Free plan includes 200 calls each month for development and testing.
What does the Free plan include?
The Free plan returns the country name, official name, two-letter code, and calling codes, and with dialing=true the international prefix. Region, subregion, the national trunk prefix, the regions sharing the calling code, valid number lengths and example numbers are premium attributes unlocked on any paid subscription, starting with Starter.
What input format does the country parameter require?
The endpoint accepts standard two-letter ISO country codes, such as FR for France or US for the United States. It does not accept full country names or three-letter codes directly.
Can a country return more than one dialing code?
Yes. The callingcodes field returns an array of strings, which accommodates territories or countries that share code spaces or utilize multiple prefixes.
Does it tell me how to dial out of a country, or which numbers are valid?
With dialing=true it returns the exit prefix (00 in France, 011 in the US), plus on paid plans the trunk prefix dropped when a number is dialed internationally and valid lengths and example numbers by line type. It does not check a specific number; use Phone Number Validator for that.
Can I use these dialing codes in a commercial checkout flow?
Yes, provided you are on a paid subscription. You can store and display the returned calling codes inside your own applications, forms, or checkout flows, but you may not resell or redistribute the raw dataset.

Ready to build with Country Calling Code? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs