# agentshield.live Capital Lookup

> agentshield.live Capital Lookup is a paid API for AI agents from agentshield.live, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Returns the capital city of a country given its ISO 3166-1 code or English short name; returns 404 for unknown or disputed countries.

## Facts

- Endpoint: GET https://agentshield.live/capital?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-live-capital-lookup-f1535fce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z0wR_12cOdGPqkT3-DlFu

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 agentshield-live-capital-lookup-f1535fce
```

Example prompt: What is the capital city of Germany? Use the country name or ISO code DE to look it up.

## When to prefer this

Use this endpoint when you need a quick, static lookup of a country's capital city from either an ISO 3166-1 country code or an English country name. It is ideal for data enrichment, reference lookups, and education use cases where a known, unambiguous capital is required. Avoid it for disputed territories, live geopolitical data, or full gazetteer functionality.

## Known failure modes

- 404 returned for disputed or unrecognized country names or codes
- Misspelled country names may not match and return 404
- Countries with disputed capitals (e.g. Taiwan, Kosovo) return 404
- ISO codes for territories without recognized capitals may fail
- Non-English country names may not resolve correctly

## How this service works

Call when an agent needs the listed capital of a country. Unknown or disagreed countries return 404. Not a live gazetteer.

## Output

A JSON object containing the capital city name, the ISO 3166-1 country code, the full country name, and a 'known' boolean confirming the country was recognized. Returns HTTP 404 if the country is unknown or disputed.

## 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": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "ISO 3166-1 code or English short name."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "capital": "Berlin",
  "country": "DE",
  "country_name": "Germany"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-live-capital-lookup-f1535fce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
