World Bank Country ISO Codes, Regions & Income Directory
Query official World Bank sovereign country metadata including ISO2/ISO3 codes, capitals, regions, income classifications, and coordinates.
curl -sG "https://api.agentapigate.ai/v1/gov/worldbank/countries" \ --data-urlencode "query=Japan" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# World Bank Country ISO Codes, Regions & Income Directory (`gov.worldbank.countries`) **count**: 1 ## countries - [1] iso3_code: JPN, iso2_code: JP, name: Japan, capital_city: Tokyo, region: East Asia & Pacific
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:gov.worldbank.countries · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | optional | Japan | Country name, capital, or ISO code filter (e.g. Japan, Nairobi, DE) |
| code | string | optional | — | Exact ISO2 or ISO3 country code (e.g. US, JPN, GB) |
| region | string | optional | — | Region name or 3-letter region code (e.g. EAS, ECS, Europe) |
| limit | number | optional | 10 | Max countries (1-50) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | gov_worldbank_countries | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 93 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 182t → 56t (-69%) | Partner credit: eligible |
More Dev, AI & Security Real-Time APIs
All-in-one domain intelligence combining RDAP registrar/expiry data, Cloudflare DoH A/MX/TXT/NS records, and live TLS SAN certificate inspection.
Use when you need commercial-grade passive IP reconnaissance: RIR RDAP CIDR/organization/abuse contacts, Cloudflare DoH reverse PTR hostnames, and port-443 TLS SAN inspection.
Resolve country, city, coordinates, timezone, ASN, and ISP organization for any public IP address.
Use when you need Common Vulnerabilities and Exposures (CVEs) from NIST NVD 2.0 and OSV.dev enriched with FIRST.org EPSS 30-day exploitation probability.
Search 250M+ peer-reviewed and preprint research papers across OpenAlex and arXiv with citation counts, DOIs, and abstracts.
Query recruiting and completed clinical trials by condition, drug intervention, sponsor, and phase from ClinicalTrials.gov v2.
Frequently Asked Questions
How do I call World Bank Country ISO Codes, Regions & Income Directory (gov.worldbank.countries) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/gov/worldbank/countries with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool gov_worldbank_countries on https://mcp.agentapigate.ai/mcp.
What does gov.worldbank.countries cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on gov.worldbank.countries?
Passing ?format=md transforms the response into normalized Markdown (~56 tokens vs ~182 raw tokens, saving 69% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["gov.worldbank.countries"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.