# gateway.apiosk.com – Countrylayer Country Lookup by Name

> gateway.apiosk.com – Countrylayer Country Lookup by Name 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-14).

Looks up detailed country information for a given country name using the Countrylayer API

## Facts

- Endpoint: GET https://gateway.apiosk.com/countrylayer/name/germany
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-apiosk-com-countrylayer-country-lookup-by-name-dd60e22e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6_9XiyqdEs2Tk7JYgKy3H

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 gateway-apiosk-com-countrylayer-country-lookup-by-name-dd60e22e
```

Example prompt: Can you look up the country details for Germany — I need its capital, official language, currency, and region?

## When to prefer this

Use this endpoint when you need structured, comprehensive country reference data keyed by a country's common name (e.g. 'Germany', 'France'). Prefer this over raw web searches when you need machine-readable fields like ISO codes, currency codes, or calling codes in a single call. Suitable for enriching user data with country metadata or powering geo-aware workflows.

## Known failure modes

- Country name not found or misspelled — returns empty result or 404
- Ambiguous country name matching multiple countries — may return unexpected result
- Payment not processed — x402 payment required error
- Gateway timeout or upstream Countrylayer API unavailability — 5xx error
- Invalid or unsupported country name encoding — request error

## How this service works

Country by name: append /{name}.

## Output

Returns a structured country profile including capital city, population, currencies, languages spoken, region, subregion, country codes (ISO alpha-2, alpha-3), calling codes, timezones, flag URL, and geographic coordinates for the queried country name.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-apiosk-com-countrylayer-country-lookup-by-name-dd60e22e/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)
