# Countrylayer All Countries Data via APIOsk Gateway

> Countrylayer All Countries Data via APIOsk Gateway is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-15).

Returns comprehensive data for all countries in the world via the countrylayer API, proxied through APIOsk's x402 payment gateway

## Facts

- Endpoint: GET https://gateway.apiosk.com/countrylayer/all
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/countrylayer-all-countries-data-via-apiosk-gateway-c7a71b82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FgIizMwR0ZS3MHClkOXNa

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-all-countries-data-via-apiosk-gateway-c7a71b82
```

Example prompt: Can you pull up the full list of all countries in the world along with their capitals, currencies, languages, and calling codes?

## When to prefer this

Choose this endpoint when you need a comprehensive, all-in-one snapshot of every country's metadata without filtering by a specific country name or code. It is ideal for populating dropdowns, building reference tables, cross-referencing currencies or languages, or enriching datasets with geopolitical context. Prefer it over single-country lookup endpoints when you need the full world dataset in one call.

## Known failure modes

- Payment not received or x402 payment header missing — 402 Payment Required
- Invalid or expired payment token — 401 Unauthorized
- Upstream countrylayer API outage — 502 Bad Gateway or 503 Service Unavailable
- Rate limit exceeded — 429 Too Many Requests
- Network timeout from APIOsk gateway — 504 Gateway Timeout

## How this service works

All countries.

## Output

A JSON array or object containing metadata for every country in the world — including country name, ISO codes (alpha-2, alpha-3), capital city, region, subregion, population, currency details, spoken languages, calling code, timezone, and flag emoji or URL.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/countrylayer-all-countries-data-via-apiosk-gateway-c7a71b82/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)
