CoinAPI API

Cryptocurrency / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

CoinAPI aggregates market data from hundreds of cryptocurrency exchanges into a single unified REST interface. It provides normalized OHLCV, order book, and trade data so you can query multiple exchanges without juggling different response formats. Rate limits and API keys are required even on the free tier, which allows 100 requests per day.

💡

Beginner Tip

Start with the /v1/exchangerate/{asset_id_base}/{asset_id_quote} endpoint to fetch a simple price — pass your API key in the X-CoinAPI-Key header, not as a query parameter.

Available Data

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply

Example Response

JSON Response
{
  "id": "bitcoin",
  "symbol": "btc",
  "current_price": 65432.1,
  "market_cap": 1280000000000,
  "price_change_24h": 1250.5,
  "price_change_percentage_24h": 1.95,
  "total_volume": 28500000000
}

Field Reference

time Timestamp of the exchange rate quote.
asset_id_base The base asset symbol (e.g., BTC).
asset_id_quote The quote asset symbol (e.g., USD).
rate Current exchange rate — how many quote units one base unit is worth.

Implementation Example

const url = "https://docs.coinapi.io/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized Missing or malformed API key header
Pass your key as the X-CoinAPI-Key request header, not as a query parameter.
429 Too Many Requests Free-tier limit of 100 requests/day exceeded
Cache responses locally and batch queries; upgrade to a paid plan for higher limits.
404 Not Found on asset symbol Using a ticker like BITCOIN instead of the CoinAPI asset ID
Use the standardized asset ID (e.g., BTC, ETH) as documented in the /v1/assets endpoint.

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 9/20
✓ Reliability 0/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS NO
Category Cryptocurrency
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →