Skip to content

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

License

Notifications You must be signed in to change notification settings

albertosgz/restcountries

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restcountries

Get information about countries via a RESTful API (Node.JS Version) Forked version to support CORS

INSTALLATION

  1. sudo npm install
  2. npm start

It should start listening on localhost:3000

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%