# Countrylayer Alpha Lookup by ISO Code

> Countrylayer Alpha Lookup by ISO Code 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 detailed country data for a given ISO 3166-1 alpha-2 country code (e.g. 'de' for Germany) via the Countrylayer API gateway

## Facts

- Endpoint: GET https://gateway.apiosk.com/countrylayer/alpha/de
- 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-alpha-lookup-by-iso-code-2d3796f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EfsYaaOm0FzjpX9IXNHJi

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-alpha-lookup-by-iso-code-2d3796f8
```

Example prompt: Can you pull up all the details for Germany — things like its capital, official languages, currency, population, and bordering countries?

## When to prefer this

Use this endpoint when you need structured, authoritative country metadata keyed by ISO 3166-1 alpha-2 code and want pay-per-call pricing via USDC on Base without an API subscription. Ideal for enriching user profiles, powering geographic lookups, or building country-detail features in applications that only need occasional queries.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty result
- Network timeout at the gateway level
- Payment failure via x402 protocol results in 402 response and no data
- Country code passed in incorrect format (e.g. full name instead of alpha-2) may return no results

## How this service works

Country by ISO alpha code: append /{code}.

## Output

A structured JSON object containing comprehensive country data for the specified ISO alpha-2 code, including country name, capital, region, subregion, population, area in km², currencies, languages, flag emoji or URL, calling codes, timezones, and bordering country codes.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/countrylayer-alpha-lookup-by-iso-code-2d3796f8/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)
