World Capitals API
Use this API for a simple, dependable country-capital lookup in education, travel, and reference products. It exposes normalized JSON endpoints with practical filters, source metadata, and lightweight reference tables so developers can add lookup and discovery features without maintaining their own scraper or curation pipeline.
Use Cases
- add country-capital autocomplete
- build geography quizzes and reference widgets
- normalize basic country/capital data
Access
These endpoints are served through RapidAPI. The examples below are documentation examples, not direct browser links, because requests require RapidAPI authentication headers.
Open the RapidAPI listing to subscribe, test requests, and get your API key.
Endpoints
/api/worldcapitals/capitalsList capitals or filter by country, region, or capital.
Query parameters: country, region, capital
/api/worldcapitals/capitals?country=example
/api/worldcapitals/regionsList regions covered by this module.
/api/worldcapitals/regions
Pricing
- Basic: $0/day for 10 requests. Evaluation tier for testing the API in prototypes.
- Pro: $9/month for 10000 requests. Small production apps, internal tools, and niche content sites.
- Business: $29/month for 100000 requests. Higher-volume apps, catalog enrichment, and recurring data workflows.
Data Notes
Source: Wikipedia. Refresh cadence: 7d. Records include source attribution when exposed by the API response.
Primary table: capitals