The REST Countries API provides detailed information about countries around the world in a simple RESTful interface. Users can retrieve data such as country names, codes, capital cities, languages, and more.
What can you use it for?
Build a country picker for forms, a travel guide, or a localized pricing map using up-to-date country data. You can fetch flags, codes, currencies, leaders, timezones and more in a single API. The API lets you trim responses to just the fields you need, keeping apps fast. The free tier is great for prototypes and learning, with paid plans available for higher volume or commercial use.
API Stats
Health ▼
95
A score out of 100 from our daily tests over the last 30 days, based on error rate, reliability and speed.
Reliability ▼
100%
Share of our daily test calls in the last 30 days that succeeded, averaged over all endpoints of this API.
Error rate ▼
0%
Share of our daily test calls in the last 30 days that failed, averaged over all endpoints of this API.
Pricing ▼
Freemium
Free plan: 1,000 requests/month; paid plans start at $12/month.
Auth ▼
Bearer token
Send a token in the Authorization: Bearer header. The endpoints listed here work without it.
🤖 Robot last checked the docs and pricing 17 days ago
Endpoints (4)
https://restcountries.com/v3.1/name/Peru
Last 30 Days
Reliability
100 % Reliability
Error Rate
0 % Error Rate
Avg Response Time
224 ms
CORS
No
Endpoint Checked
21 hours ago
Endpoint Added
a year ago
https://restcountries.com/v3.1/capital/tallinn
Last 30 Days
Reliability
100 % Reliability
Error Rate
0 % Error Rate
Avg Response Time
238 ms
CORS
No
Endpoint Checked
9 hours ago
Endpoint Added
2 years ago
https://restcountries.com/v3.1/name/deutschland
Last 30 Days
Reliability
100 % Reliability
Error Rate
0 % Error Rate
Avg Response Time
0 ms
CORS
No
Endpoint Checked
17 hours ago
Endpoint Added
2 years ago
https://restcountries.com/v3.1/capital/lima
Last 30 Days
Reliability
100 % Reliability
Error Rate
0 % Error Rate
Avg Response Time
211 ms
CORS
No
Endpoint Checked
21 hours ago
Endpoint Added
a year ago
Frequently asked questions
Yes. You sign up to obtain a bearer token (API key) for requests; a demo token is available for quick tests.
The free plan permits 1,000 requests per month, two API keys, and a 24‑hour data sync cadence, suitable for prototypes and small apps.
No. The free plan is intended for prototyping and non-commercial use; paid plans are required for commercial or production deployments.
Showcase
no showcases
Currently, there are no Showcases using this API.
Comments
no comments
Currently, there are no Comments for this API.
Tags
This API has no tags yet. Select some below, so other users can find it!