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/countriesNames List →
Get all country names
https://rest-countries-next-js-gilt.vercel.app/api/countries/namesNames →
Get by country name.
https://rest-countries-next-js-gilt.vercel.app/api/countries/country?countryName=canadaSearch 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=landCapital City List →
Get all capital cities of all countries
https://rest-countries-next-js-gilt.vercel.app/api/countries/capitalcities