REST Countries v1

FREE
By apilayernet
Updated 16 days ago
Data
9.7/10
Popularity Score
111ms
Latency
85%
Success Rate
Discussions
Hi Developer, feel free to ask your question:
dmitrijtichonov:16 days ago
0 Answers

Invalid latlng for "American Samoan"

ahsanshaaf:a month ago
0 Answers

how to use your api with retrofit library

DamienBlondel:2 months ago
0 Answers

trying to call this API from TALEND ETL

IsarDomains:a year ago
0 Answers

Provide a REST call to search by topLevelDomain

gadgetgirl:3 years ago
2 Answers

Correction

MajjigaDeepak:3 years ago
1 Answer

Unirest in not supported in python 3

jcombras:4 years ago
1 Answer

cant connect Caused by: java.net.SocketTimeoutException: Read timed out

dbeslic:4 years ago
2 Answers

Pulling API data / Rails / Hash class?

shendaz:4 years ago
1 Answer

What is gini?

abhi2rai:5 years ago
4 Answers

Unable to get results for names with spaces in them

netifriik:5 years ago
3 Answers

Can't get all countries

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://restcountries-v1.p.rapidapi.com/all")
.header("X-RapidAPI-Host", "restcountries-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication