Cryptocurrency Price REST API written in Node.js. Data is scraped from CoinMarketCap.
Note: This is an unofficial API and is not supported or controlled by CoinMarketCap itself. Any questions, comments, feedback or feature requests should be directed to xasos or via an issue in this repo.
Base URL: http://coins-api.herokuapp.com
Output: JSON
Get price information about all coins.
Example Query:
http://coins-api.herokuapp.com/coins
Response:
{
"name": "bitcoin",
"position": "1",
"price": "356.51",
"marketCap": "4847623128",
"ticker": "BTC",
"volume": "29824000",
"delta24hr": "2.37",
"timestamp": 1418325595612,
"currency": "usd"
},
{
"name": "ripple",
"position": "2",
"price": "0.016374",
"marketCap": "505654484",
"ticker": "XRP",
"volume": "1620910",
"delta24hr": "6.48",
"timestamp": 1418325595612,
"currency": "usd"
},
...
...
Get information about individual coins.
Example Query:
http://coins-api.herokuapp.com/coins/btc
Response:
{
"name": "bitcoin",
"position": "1",
"price": "356.51",
"marketCap": "4847623128",
"ticker": "BTC",
"volume": "29824000",
"delta24hr": "2.37",
"timestamp": 1418325595612,
"currency": "usd"
}
Example Query:
http://coins-api.herokuapp.com/coins/btc/price/chf
Response:
{
"price": "368.25",
"currency": "chf"
}
$ npm install
$ node app.js
$ npm install
$ heroku create
$ (git add, git commit)
$ git push heroku master
All the data was scraped from CoinMarketCap. The currency converter uses the The Free Currency Converter API. Additionally, this API documentation is modeled off the wonderful API documentation for Hook by @karan.