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
| Field | Type | Required | What it is |
|---|---|---|---|
query | string | Yes | Country name, alpha-2, alpha-3, or numeric code |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
error | string | Sometimes (present only for some inputs) |
match | object | Usually (present for most inputs) |
query | string | Always (present in every successful answer) |
matches | array | Usually (present for most inputs) |
total_matches | integer | Usually (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "iso-country-lookup",
"inputs": {
"query": "land"
},
"max_price_cents": 2
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "iso-country-lookup",
inputs: {
"query": "land"
},
max_price_cents: 2,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="iso-country-lookup",
inputs={
"query": "land",
},
max_price_cents=2,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/iso-country-lookup?query=land' 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
Related tools
- Address Geocoding €0.02
- Barcode Lookup €0.05
- Container Tracking €0.05
- Country Tax Rates €0.02
- Country Trade Data €0.20
- Customs Duty Lookup €0.20