Country Lookup

Look up a country by name or ISO code: region, capital, currency, and EU, Schengen and euro membership.

Pay by wallet (x402) iso-country-lookup

Example

Example answer
{
  "error": "No country found matching \"test\".",
  "query": "test",
  "matches": [],
  "total_matches": 0
}

Inputs

FieldTypeRequiredWhat it is
querystringYesCountry name, alpha-2, alpha-3, or numeric code

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
errorstringSometimes (present only for some inputs)
matchobjectUsually (present for most inputs)
querystringAlways (present in every successful answer)
matchesarrayUsually (present for most inputs)
total_matchesintegerUsually (present for most inputs)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "iso-country-lookup",
    "inputs": {
      "query": "land"
    },
    "max_price_cents": 2
  }'

Limitations

  • Country changes may not be reflected immediately

    Country data based on ISO 3166-1 standard — newly created or renamed countries may take time to be reflected

    What to do instead: For edge cases, cross-reference with the ISO Online Browsing Platform at iso.org/obp