# Country Profile Lookup

> Country Profile Lookup is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Returns structured country profile data including ISO codes, capital, languages, currencies, and calling codes for a given country identifier.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/country_profile
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-profile-lookup-b5e3788d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M_HTFneZKPAroKQ79VTmF

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 country-profile-lookup-b5e3788d
```

Example prompt: Can you look up the country profile for Japan — I need its ISO codes, capital, official languages, currencies, and calling code?

## When to prefer this

Choose this endpoint when you need quick, structured country reference data (ISO codes, capital, languages, currencies, calling codes) from a single flexible identifier — name, ISO-2, or ISO-3. It is lightweight, idempotent, and priced at $0.002 USDC per call, making it suitable for per-record enrichment in pipelines or on-demand lookups in agent workflows. Prefer it over general-purpose web search when you need machine-readable, consistently structured country metadata rather than prose descriptions.

## Known failure modes

- Invalid or unrecognized country code/name returns an error or success:false
- Missing required 'country' query parameter causes a 400-level error
- Ambiguous country aliases may resolve incorrectly or fail
- Network timeout or service unavailability returns a 5xx error

## How this service works

Audit one public site or compare up to five domains across llms.txt, OpenAPI, robots, sitemap, x402 metadata, and the discovery surfaces autonomous buyers rely on.

## Output

A JSON object with a success boolean and a country object containing: ISO alpha-2 and alpha-3 codes, official country name, capital city, an array of language objects (code and name), an array of currency objects (code and symbol), and an array of calling code strings.

## 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 alpha-2 code, ISO alpha-3 code, or country name/known alias."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "country"
     ],
     "properties": {
      "country": {
       "type": "object",
       "required": [
        "iso2",
        "iso3",
        "name",
        "capital",
        "calling_codes",
        "currencies",
        "languages"
       ],
       "properties": {
        "iso2": {
         "type": "string"
        },
        "iso3": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "capital": {
         "type": "string"
        },
        "languages": {
         "type": "array",
         "items": {
          "type": "object"
         }
        },
        "currencies": {
         "type": "array",
         "items": {
          "type": "object"
         }
        },
        "calling_codes": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       },
       "additionalProperties": true
      },
      "success": {
       "type": "boolean"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "country": {
   "iso2": "US",
   "iso3": "USA",
   "name": "United States",
   "capital": "Washington D.C.",
   "languages": [
    {
     "code": "en",
     "name": "English"
    }
   ],
   "currencies": [
    {
     "code": "USD",
     "symbol": "$"
    }
   ],
   "calling_codes": [
    "+1"
   ]
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-profile-lookup-b5e3788d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
