# Countrylayer Calling Code Lookup

> Countrylayer Calling Code Lookup is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns country information for a given international calling code (e.g. +49 for Germany)

## Facts

- Endpoint: GET https://gateway.apiosk.com/countrylayer/callingcode/49
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/countrylayer-calling-code-lookup-4d7211c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vTzIbYz_oZGDdxmVFbP_j

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 countrylayer-calling-code-lookup-4d7211c7
```

Example prompt: Which country uses the international calling code +49, and can you give me its full country details?

## When to prefer this

Use this endpoint when you need to resolve an international phone calling code to its corresponding country or countries. Ideal for enriching contact data, validating phone number prefixes, or identifying the origin country of a phone number. Choose this over a general country search API when you specifically have a numeric dial prefix and need country metadata.

## Known failure modes

- Invalid or non-existent calling code returns an error or empty result
- Calling code with multiple countries (e.g. +1 shared by US/Canada) may return multiple or ambiguous results
- API gateway downtime or rate limiting may result in HTTP errors
- Malformed input may result in a 400 Bad Request

## How this service works

Countries by calling code: append /{code}.

## Output

Returns country details associated with the specified calling code, including country name, ISO codes, region, and other country-level metadata provided by the Countrylayer API.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/countrylayer-calling-code-lookup-4d7211c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
