API
Everything on this site is available as JSON. No key, no sign-up. Responses may be cached for 15 seconds; please do not poll faster than the data changes, which is once a minute.
Base address
https://coinsprey.com/api/v1
curl https://coinsprey.com/api/v1/coins/btc-bitcoin
All endpoints are read-only GET requests and answer with JSON. Lists come as an object with data, total, page and per_page. Unknown ids answer 404.
| Endpoint | Returns | Parameters |
|---|---|---|
/global | Totals: market cap, 24h volume, BTC dominance, number of coins, markets and exchanges. | — |
/coins | Coins ranked by market cap, with 7-day sparklines. | page, per_page (max 250) |
/coins/{id} | One coin with description, links and token contracts. id is like btc-bitcoin; a bare ticker works too. | — |
/coins/{id}/chart | Price history as [unix ms, price] pairs. | range = 24h | 7d | 30d | 1y |
/coins/{id}/markets | Every market of the coin, with the ones not counted in the price flagged. | — |
/highlights | Top gainers, top losers and the most traded coins of the last 24 hours. | limit (max 100) |
/exchanges | Exchanges with their 24h volume and number of markets. | — |
/exchanges/{id}/markets | Markets of one exchange. | page, per_page (max 250) |
/search | Coins by ticker or name. | q |
/news | News stories and listing notices, newest first. | page, per_page, kind = article | listing, coin |
/news/top | The most important stories of the last 36 hours. | — |
Good to know
Prices are in US dollars. market_cap_estimated: true means the market cap is computed from the total supply because the circulating supply is not known. The API is at version 1 and young: fields can still be added.