# FreeTier Agent API — Country Lookup

> FreeTier Agent API — Country Lookup is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-18).

Returns country details (capital, timezones, local time, UTC offset, currency code) for a given country name or ISO code

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/country?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freetier-agent-api-country-lookup-1a372343
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yLgaBNxXEJs9XodMIm3qf

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 freetier-agent-api-country-lookup-1a372343
```

Example prompt: What is the capital city, currency, and current local time in Japan? Look it up by country name.

## When to prefer this

Use this endpoint when you need structured country metadata — capital, timezone, local time, and currency — from a name or ISO code, especially in agent workflows that require no signup and support x402/USDC micropayment billing. Prefer this over free REST country APIs when you need a pay-per-call model with no API key or account management.

## Known failure modes

- Invalid or unrecognized country name returns an error or empty result
- Ambiguous country name may return unexpected result
- ISO3 codes must be valid 3-letter codes or the query fails
- Non-string or malformed 'q' parameter causes a 400-style error
- Payment failure (insufficient USDC balance) results in 402 response before any data is returned

## How this service works

Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.

## Output

A JSON object containing the country's ISO2 code, full name, capital city, an array of timezones (each with timezone name, current local time, and UTC offset), and the currency code.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "ISO2, ISO3 or country name"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso2": "DK",
  "name": "Denmark",
  "capital": "Copenhagen",
  "timezones": [
   {
    "timezone": "Europe/Copenhagen",
    "local_time": "2026-10-17 22:00",
    "utc_offset": "GMT+2"
   }
  ],
  "currency_code": "DKK"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freetier-agent-api-country-lookup-1a372343/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
