# Phone Number Tools – Country Calling Code Lookup

> Phone Number Tools – Country Calling Code Lookup is a paid API for AI agents from phone-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Look up which regions share a country calling code, or get the calling code for a given region, along with dialing prefixes and national prefix information.

## Facts

- Endpoint: GET https://phone-tools.x402tookit.com/country-calling-codes?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-tools-country-calling-code-lookup-29ce094f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_22UoSo6GuKPfpIXS8_-Q5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability phone-number-tools-country-calling-code-lookup-29ce094f
```

Example prompt: Which regions share the +44 calling code, and what are their national and international dialing prefixes?

## When to prefer this

Use this endpoint when you need to resolve which regions are associated with a country calling code, or look up the calling code and dialing prefixes for a known ISO region — particularly when you need national prefix and international prefix details in addition to the code itself. Prefer this over general phone parsing endpoints when the goal is country/region-level dialing metadata rather than parsing a specific phone number string.

## Known failure modes

- Missing both 'code' and 'region' query parameters returns an error or empty result
- Invalid or unrecognized calling code returns no matching regions
- Invalid ISO region code returns no result
- Degraded response flag set if underlying data source is partially unavailable
- Payment failure if x402 micropayment is not completed

## How this service works

Look up which regions use a country calling code (+44, +1) or a region's code, dialing prefixes and national prefix.

## Output

Returns the numeric calling code, a list of regions that share it (each with their ISO region code, national prefix, international prefix, and whether they are the primary region for the code), a flag indicating if the code is shared across multiple regions, summary and disclaimer text, attribution, and metadata about when the data was built.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "code": {
       "type": "string",
       "description": "Calling code such as 44 or +44 (give code or region)"
      },
      "region": {
       "type": "string",
       "description": "ISO region such as GB (give code or region)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "code": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "regions": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "region": {
          "type": [
           "null",
           "string"
          ]
         },
         "nationalPrefix": {
          "type": [
           "null",
           "string"
          ]
         },
         "mainRegionForCode": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "internationalPrefix": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sharedCode": {
       "type":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-tools-country-calling-code-lookup-29ce094f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phone-tools.x402tookit.com](https://www.zero.xyz/host/phone-tools.x402tookit.com/llms.txt)
