Skip to content

REST Countries API

No authHTTPSCORSGeocoding
Open documentation ↗

Overview

Get information about countries via a RESTful API

REST Countries is a geocoding API. It needs no API key. It is served over HTTPS and allows browser requests (CORS).

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Yes
Category
Geocoding

Questions

Does the REST Countries API need an API key?

No. The REST Countries API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Can I call the REST Countries API from the browser?

Yes. The REST Countries API sends CORS headers, so a web page can call it directly with fetch().

Does the REST Countries API support HTTPS?

Yes, the REST Countries API is served over HTTPS.

What are alternatives to the REST Countries API?

Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.

Compare alternatives →

Listed from public-apis (MIT), public-apis database (MIT), Free Public APIs.