# Agent Data Tools: Country Profile Lookup

> Agent Data Tools: Country Profile Lookup is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Returns standardized country profile data including ISO codes, capital coordinates, population, region, and income level for a given country code.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/country?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-country-profile-lookup-3e8395f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DoRnePAS4OkyVQ0EjcQPO

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 agent-data-tools-country-profile-lookup-3e8395f2
```

Example prompt: Can you look up the country profile for Sweden — I need the capital city, its coordinates, population, and income level classification?

## When to prefer this

Use this endpoint when you need standardized country metadata — ISO codes, capital coordinates, population, region, and income level — sourced from World Bank, without requiring an account or API key. Prefer it over manual lookup or general web search when you need structured, machine-readable output for a single country at very low cost ($0.001 USDC per call) and no auth overhead.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty response
- Unsupported ISO format (e.g. numeric codes) may not be accepted
- Network or worker timeout if the Cloudflare worker is under load
- Payment failure on Base/x402 results in no charge and no data returned

## How this service works

Facts about a country by ISO code (SE, SWE, US…): official World Bank name, ISO-2 and ISO-3 codes, region, income level, capital city and its coordinates, and the latest population figure with its year (World Bank open data). Use to enrich records with country data.

## Output

A JSON object with the country's ISO2 and ISO3 codes, full name, World Bank region, capital city name, capital latitude and longitude, population figure with year, and income level classification (e.g. High income, Upper middle income).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country"
 ],
 "properties": {
  "country": {
   "type": "string",
   "description": "ISO 3166 alpha-2 or alpha-3 code"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "iso2": {
   "type": "string"
  },
  "iso3": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "region": {
   "type": "string"
  },
  "source": {
   "type": "string"
  },
  "capital": {
   "type": "string"
  },
  "capitalLat": {
   "type": "number"
  },
  "capitalLon": {
   "type": "number"
  },
  "population": {
   "type": "number"
  },
  "incomeLevel": {
   "type": "string"
  },
  "populationYear": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-country-profile-lookup-3e8395f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
