public apis
/
CategoriesMCPBlogRandomStar
Public APIs

A searchable directory of 2,000+ free public APIs, curated by the community and maintained with APILayer.

Powered byAPILayer

Popular

  • Weather APIs
  • Finance APIs
  • Crypto APIs
  • Geocoding APIs
  • Machine learning APIs
  • Games APIs

Directory

  • Categories
  • All APIs
  • MCP servers
  • FAQ
  • Stats
  • JSON API
  • llms.txt

APILayer

  • Browse the API suite ↗
  • Get a free API key ↗
  • APILayer blog ↗
  • Postman collection ↗
  • Discord community ↗

Project

  • public-apis on GitHub ↗
  • Contribute an API ↗
Public APIs · by APILayerData from public-apis (MIT)
  1. Home
  2. /Geocoding
  3. /REST Countries
Geocoding
REST Countries logo

REST Countries

Get information about countries via a RESTful API.

REST Countries API is a free Geocoding API that requires no API key, is served over HTTPS and supports CORS, so it can be called from the browser.

Authentication
None required
HTTPS
Yes
CORS
Yes
Category
Geocoding
Visit documentation ↗restcountries.com

About REST Countries

REST Countries is a country data API: 250+ countries, 90+ fields each with 99.995% uptime.

Provider
REST Countries
Website
restcountries.com ↗

Details from restcountries.com.

APILayer

Unified API suite · now live

Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.

Get your free API key→Free tier on every API

REST Countries API alternatives

Queimadas INPE logo

Queimadas INPE

Access to heat focus data (probable wildfire)

No authHTTPSCORS ?
R

RoadGoat Cities

Cities content & photos API

apiKeyHTTPSNo CORS
PostalCodes logo

PostalCodes

Postal code search, country exports, and address validation data

No authHTTPSCORS ?
Rwanda Locations logo

Rwanda Locations

Rwanda Provences, Districts, Cities, Capital City, Sector, cells, villages and streets

No authHTTPSCORS ?
Postcodes.io logo

Postcodes.io

Postcode lookup & Geolocation for the UK

No authHTTPSCORS
SearchPinCode logo

SearchPinCode

Indian postal PIN code lookup, post office locator and district data

No authHTTPSCORS

REST Countries API FAQ

Who provides the REST Countries API?

The REST Countries API is provided by REST Countries (restcountries.com). REST Countries is a country data API: 250+ countries, 90+ fields each with 99.995% uptime.

Is the REST Countries API free?

Yes. The REST Countries API is listed in the Geocoding category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.

Does the REST Countries API require an API key?

No. The REST Countries API requires no authentication, so you can start making requests without signing up.

Can I call the REST Countries API from the browser?

Yes. The REST Countries API supports CORS, so front-end JavaScript can call it directly.

Does the REST Countries API support HTTPS?

Yes. The REST Countries API is served over HTTPS, so it's safe to use in production.