Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man country-info

/country-info

agentutility / locale / country-info
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
locale
CATEGORY
uncategorized
STATUS
● live
NAME
country-info — country info lookup
SYNOPSIS
POST https://x402.agentutility.ai/country-info
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Country info lookup. Resolves country metadata by common name, ISO 3166 alpha-2/alpha-3 code, or capital city. Returns capital, region, population, area, currencies, languages, timezones, calling code, flag emoji, neighbors. Wraps the public REST Countries v3.1 API — no auth, commercial-OK.

INPUT — request schema
propertytypedescriptionreq?
querystringSearch string — country name (e.g. 'Germany'), ISO code (e.g. 'DE'), or capital city (e.g. 'Berlin'), depending on query_type.required
query_typestringHow to interpret 'query'. Default 'name'.
enum: name · code · capital
optional
OUTPUT — response shape
fieldtypedescription
matchesstringArray of matched country records with name, codes, capital, region, population, currencies, languages, and flag emoji.
sourcestringUpstream data source identifier, typically 'restcountries.com v3.1'.
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/country-info \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the country-info tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
localecountry-infoiso-3166country-codecapital-lookupcurrenciesgeo-metadatarest-countries
methods
POST
cluster
locale
price
$0.005 USDC per call
ADJACENT — other endpoints in locale
endpointdescriptionprice
air-qualityReturns current air quality readings and AQI category for any latitude/longitude, with optional hourly forecast rows for the next 1-72 hours.$0.005
airport-code-lookupResolves airport codes to airport name, municipality, country, region, coordinates, elevation, scheduled-service flag, homepage, and Wiki…$0.005
astro-timesSunrise sunset times.$0.005
climate-dataReturns historical daily temperature, precipitation, humidity, wind, and solar radiation for any latitude/longitude.$0.005
holiday-lookupHoliday calendar.$0.005
iata-airport-infoLooks up airport metadata from an IATA or ICAO code.$0.005
satellite-tileReturns a recent cloud-free satellite image (Sentinel-2, 10m) as a PNG centered on a lat/lon at a slippy-map zoom level.$0.005
sunrise-sunsetSunrise sunset times.$0.005
SEE ALSO
agentutility · locale · x402 · mcp · llms.txt · registry.json · bazaar.x402.org