# AgentTools Country Reference Database

> AgentTools Country Reference Database is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Look up ISO 3166-1 codes, capitals, regions, populations, currencies, languages, TLDs, and calling codes for any or all of 250 countries and territories, optionally filtered by region.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/databases/countries?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-country-reference-database-f425b40c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IkhCoQYwSTIsIEH3Z2Htl

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-reference-database-f425b40c
```

Example prompt: Can you look up the ISO code, capital, calling code, currency, and official languages for Germany from the country reference database?

## When to prefer this

Choose this endpoint when an agent needs authoritative, structured reference data about countries — such as ISO codes, capitals, currencies, languages, calling codes, or TLDs — for one country or a filtered regional list. It is ideal for populating forms, enriching user records with country metadata, building international phone or currency lookups, or answering factual geography questions. Prefer it over a general web search when structured, machine-readable output is needed reliably and consistently.

## Known failure modes

- Invalid region enum value returns an error or empty result
- Country name not recognized returns empty or null result
- Exceeding any implicit rate or quota limits returns a payment or rate-limit error
- Network timeout or service unavailability returns a 5xx error
- Omitting required 'input' wrapper object causes a 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

Returns a JSON object or array containing country records. Each record includes the country name, ISO 3166-1 alpha-2 and alpha-3 codes, capital city, world region, population, land area, currency code and name, official languages, top-level domain (TLD), and international calling code. When filtering by country, a single record is returned; when listing, an array of matching countries is returned (optionally capped by a 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-reference-database-f425b40c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
