REST Countries
Simple, free API for everything country-related — names, flags, currencies, languages, borders.
About this API
REST Countries is a friendly, widely used API, back as open-source since 2023. It holds every country with 30+ fields: native names, coordinates, currency, languages, timezone, flag. Useful for country selectors, tourism apps, geography tools.
Who it's for
Country selectors
Tourism apps
Educational projects
How to use it
- 1GET /v3.1/all for all countries.
- 2/v3.1/name/israel for a name.
- 3/v3.1/alpha/il for ISO code.
Installation & setup
None.
Code examples
curl "https://restcountries.com/v3.1/alpha/il"Sample response
[
{
"name": {
"common": "Israel",
"official": "State of Israel"
},
"cca2": "IL",
"capital": [
"Jerusalem"
],
"population": 9364000,
"currencies": {
"ILS": {
"name": "Israeli new shekel",
"symbol": "₪"
}
},
"flag": "🇮🇱"
}
]FAQ
Yes, actively maintained by the community since 2023.
Tips & pitfalls
Don't fetch /all every time — download once and cache.