Countries API Documentation (nanoSDK) | RapidAPI

Countries

FREEMIUM
By nanoSDK
Updated 9 months ago
5.7/10
Popularity Score
477ms
Latency
100%
Success Rate

Countries API Documentation

Lookup for countries' data

View API Details
GET/countries
GET/countries

Search for countries' data. 1 credit per request.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
fieldsSTRING
OPTIONALAllowed: alpha2, alpha3, name, numeric, calling_codes, tlds, currencies, capital, region, subregion, latitude, longitude, area, timezones
alpha2STRING
OPTIONALSearch by alpha2 code. Up to 10 characters.
alpha3STRING
OPTIONALSearch by alpha3 code. Up to 10 characters.
nameSTRING
OPTIONALSearch by name. Up to 75 characters.
capitalSTRING
OPTIONALSearch by capital. Up to 75 characters.
tldSTRING
OPTIONALSearch by Top Level Domain. Up to 25 characters.
currencySTRING
OPTIONALSearch by currency code. Up to 10 characters.
calling_codeSTRING
OPTIONALSearch by calling code. Up to 10 characters.
limitNUMBER
OPTIONALLimit the number of countries in the output. From 1 to 500. If not set, return all matched countries.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication