# REST Countries

Category: [Location Information](https://free-web-services.com/web-services/geo/location-info/)  
Page: https://free-web-services.com/web-services/geo/location-info/rest-countries.html  
Documentation: https://restcountries.com/

REST Countries gives information about every country in the world: official and common names, capital, region, population, area, currencies, languages, calling codes, time zones, borders and flags. Look countries up by name, country code, currency, language or region. The current version (v5) needs an API key and has a free tier for small apps; the old keyless v3 API was retired.

- API key: Needed, free
- Pricing: The current version (v5) needs an API key and has a free tier for small apps; the old keyless v3 API was retired.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: restcountries.com
- Last checked: Working on November 16th, 2026

Example request:

```sh
curl 'https://api.restcountries.com/countries/v5?q=Germany' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

