Skip to content
Get information about countries via a RESTful API (Node.JS Version)
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers update version, deps, and sources countries Jan 6, 2015
resources
.gitignore Initial commit May 26, 2014
LICENSE Initial commit May 26, 2014
README.md update readme & documentation api May 26, 2014
npm-shrinkwrap.json
package.json update version, deps, and sources countries Jan 6, 2015
server.js update version, deps, and sources countries Jan 6, 2015

README.md

restcountries

Get information about countries via a RESTful API (Node.JS Version)

API

Get all the countries!

https://restcountries.herokuapp.com/api/v1

Get countries by Region

https://restcountries.herokuapp.com/api/v1/region/:region_name

example : https://restcountries.herokuapp.com/api/v1/region/asia

Get countries by Sub-region

https://restcountries.herokuapp.com/api/v1/subregion/:subregion_name

example : [https://restcountries.herokuapp.com/api/v1/subregion/Northern Europe](https://restcountries.herokuapp.com/api/v1/subregion/Northern Europe)

Get country by Currency

https://restcountries.herokuapp.com/api/v1/currency/:current_code

example : https://restcountries.herokuapp.com/api/v1/currency/IDR

Get country by Calling Code

https://restcountries.herokuapp.com/api/v1/callingcode/:calling_code

example : https://restcountries.herokuapp.com/api/v1/callingcode/60

You can’t perform that action at this time.