Country Facts
This API provides detailed information about countries worldwide. It offers data such as country names, capital cities, population, languages, currencies, and more. Users can query the API to get specific details about any country, making it a valuable resource for applications requiring geographical and demographic information.
Country Facts endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
/GET countries /countries |
Get all the countries |
| GET |
/GET country by Id /66648e91d50f36a7b583aad0 |
This endpoint gets a single country by ID |
| GET |
/GET flags /flags |
This endpoint gets all flags |
| GET |
/GET flag by Id /flags/6664840a2ea8441e1d76bcd0 |
This endpoint gets flags by ID |
| GET |
Get country /v1/countries/{id} |
Get full country details by ISO code (cca2 or cca3) |
| GET |
Get bordering countries /v1/countries/{id}/borders |
Get full details of all countries that share a border |
| GET |
Get country flag /v1/countries/{id}/flag |
Get the emoji flag for a country by ISO code |
| GET |
Get nearby countries /v1/countries/nearby |
Get countries within a radius (km) of a lat/lng coordinate |
| GET |
Reverse dial code lookup /v1/countries/phone/{dialCode} |
Get country details using a phone dial code |
| GET |
List Currencies /v1/currencies |
Get all currencies with their name and symbol |
| GET |
Get Countries by Currency /v1/currencies/{code}/countries |
Get all countries that use a given currency code |
| GET |
List Languages /v1/languages |
Get all languages spoken across countries |
| GET |
Get Countries by Language /v1/languages/{code}/countries |
Get all countries that speak a given language |
| GET |
Search Countries /v1/countries |
Search and filter countries by name or region with pagination |
Country Facts pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $5 / month | 10 / second |
|
| ULTRA | $20 / month | 20 / second |
|