Welcome to RestCountries Next.js!

Get information about countries via a Next.js API

API Endpoints →

Below are described the REST endpoints available that you can use to search for countries


All →

Load all the countries with all details

https://rest-countries-next-js-gilt.vercel.app/api/countries

Names List →

Get all country names

https://rest-countries-next-js-gilt.vercel.app/api/countries/names

Names →

Get by country name.

https://rest-countries-next-js-gilt.vercel.app/api/countries/country?countryName=canada

Search by Name →

Search by country name. It will load countries which contain search characters

https://rest-countries-next-js-gilt.vercel.app/api/countries/search?name=land

Capital City List →

Get all capital cities of all countries

https://rest-countries-next-js-gilt.vercel.app/api/countries/capitalcities