# AgentTools Country Database

> AgentTools Country Database is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Look up ISO 3166-1 codes, capitals, regions, population, area, currencies, languages, TLDs, and calling codes for any of 250 countries and territories — filtered by region or retrieved individually.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/databases/countries?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-country-database-04f5ab73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FcTTt2G2G9lTf66o1xXX6

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 agenttools-country-database-04f5ab73
```

Example prompt: Look up the full country profile for Japan — I need its ISO code, capital, currency, calling code, TLD, and official language.

## When to prefer this

Choose this endpoint when you need standardized, structured reference data about countries — ISO codes, capitals, currencies, calling codes, TLDs, languages — and want a single consistent source covering all 250 ISO 3166-1 entries. It is especially useful for form validation, data enrichment pipelines, localization workflows, or regional filtering use cases. Prefer it over a general web search when you need machine-readable, structured output rather than prose descriptions.

## Known failure modes

- Invalid or unrecognized country name returns empty result or error
- Invalid region enum value may return a validation error
- Exceeding API rate limits may result in a 429 response
- Empty result set if region filter matches no countries (e.g., Antarctic with limit 0)
- Missing required 'input' field returns a 400 schema validation error

## How this service works

Reference database of all 250 countries and territories: ISO 3166-1 codes, capitals, regions, population, area, currencies, languages, TLDs and calling codes. Look up a single country or list by region. Use this when an agent needs to 250 countries: codes, capitals, currencies, populations.

## Output

A JSON object or array containing standardized country data including ISO 3166-1 alpha-2/alpha-3 codes, capital city, world region, population, land area, currency name and code, official language(s), country-code TLD, and international dialing/calling code. Single-country lookups return one record; region or list queries return an array of matching records up to the specified limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "number",
       "description": "Max rows"
      },
      "region": {
       "enum": [
        "",
        "Africa",
        "Americas",
        "Asia",
        "Europe",
        "Oceania",
        "Antarctic"
       ],
       "type": "string",
       "description": "Region filter"
      },
      "country": {
       "type": "string",
       "description": "Leave empty to list countries instead."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-country-database-04f5ab73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
