Country Calling Codes

Country Calling Codes

Looks up a country by calling code (+44), ISO region (GB) or English country name and returns the calling code, every region that shares it, national number lengths, trunk and international dialing prefixes, example numbers and the leading digits of mobile and fixed-line numbers where the numbering plan defines them.

POST/v1/country-code
curl -X POST https://YOUR_API_HOST/v1/country-code \
  -H "Authorization: Bearer $LOOKVALID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"+44"}'
  • 1 credit per lookup (an unknown code, country or name is free)
  • Charged only when it finds something
  • Cached 7 days

1 credit per lookup (an unknown code, country or name is free)

Charged only when it finds something. A repeat inside 7 days is free.

Every LookValid product draws on one shared balance. See pricing.

From key to answer in three steps

One key, one POST to /v1/country-code and a JSON answer back. The same three steps work in any language that can send HTTPS.

  1. 01

    Create a key

    Sign up and copy a key from the dashboard. The same key works for every LookValid product and for the MCP server.

    Terminal
    export LOOKVALID_API_KEY="lv_live_..."
    
  2. 02

    Send the request

    POST a JSON body to /v1/country-code. 1 credit per lookup (an unknown code, country or name is free).

    request.sh
    curl -X POST https://YOUR_API_HOST/v1/country-code \
      -H "Authorization: Bearer $LOOKVALID_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"query":"+44"}'
    
  3. 03

    Read the answer

    A real run of this lookup on 2026-10-18. The data object has 0 named fields.

    response.json
    {
      "product": "country-code",
      "found": true,
      "data": {
        "kind": "calling_code",
        "calling_code": "44",
        "non_geographic": false,
        "shared": true,
        "main_region": "GB",
        "regions": [
          {
            "region": "GB",
            "name": "United Kingdom",
            "region_leading_digits_pattern": null
          },
      ...
    

A structured answer, not a page of text

The data object has 0 named fields. Every response also lists the sources behind the result, the credits charged and whether it was served from your cache.

  • Fields returned in data by Country Calling Codes
    FieldType

    Named fields. Derived from open libphonenumber metadata and CLDR country names; it describes numbering-plan rules, not who is assigned a number.

    1. Your requestone API key
    2. Your cache7 daysRepeat: 0 credits
    3. Data sourcefirst lookupFound: 1 credit
    4. ResultJSON

    A repeat lookup is free. Results are cached per account for 7 days. Ask the same question again inside that window and the response comes back with cache_hit: true and no charge.

  • Terminal
    # Sent with every request, for every product
    Authorization: Bearer $LOOKVALID_API_KEY
    

    One key for your code and your agents. Send your API key as a Bearer token. The same key and the same credit balance cover every other LookValid product. AI agents can call it as a tool on the MCP server at https://YOUR_API_HOST/v1/mcp.

0

named fields in every answer

7

days a repeat lookup is free

14

lookups on the same key and balance

Latest from the changelog

All changes

Priced in credits

Every LookValid product draws on one shared balance. Country Calling Codes uses 1 credit per lookup (an unknown code, country or name is free).

Cost

1credit

Per lookup (an unknown code, country or name is free)


  • Found1 credit
  • Nothing found0 credits
  • Repeat inside 7 days0 credits
  • Errors and invalid requests0 credits

Questions about Country Calling Codes

01How much does Country Calling Codes cost?

1 credit per lookup (an unknown code, country or name is free). Credits come out of the one balance shared by every LookValid product.

02Am I charged when nothing is found?

No. When the lookup runs and finds nothing, it returns found: false and costs 0 credits. An error costs nothing either.

03How long are results cached?

For 7 days, per account. Repeating the same lookup inside that window returns cache_hit: true and costs 0 credits.

04Which API key do I use?

The same key as every other product. Send it as a Bearer token in the Authorization header. Email hello@lookvalid.com and we set up your account and send the key.