CoinMarketCap History API Documentation Read a price history for one coin id. Each candle has the open, high, low and close time, OHLC price, volume, market cap and circulating supply. History is USD only. Other currencies return 422. All prices carry USD and all times are ISO-8601. Choose a range such as 30d, 24h or 1y and an interval of daily or 1h. The 5m interval is not available. An unknown id or empty series costs no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with or endorsed by CoinMarketCap.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
3 optional filters available.
integer
Required
Numeric CoinMarketCap id, e.g. 1.
1234567890
string
Optional
Window such as 30d, 24h or 1y, default 30d. At most 10 years.
example
string
Optional
daily (default) or 1h. An hourly range is limited to 90 days.
example
string
Optional
Quote currency: USD (default), EUR, GBP, BTC or ETH.
USD
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"id": 1,
"range": "30d",
"points": 30,
"history": [
{
"low": 67500.3,
"high": 69100.2,
"open": 68000.1,
"close": 68800.4,
"volume": 27000000000,
"currency": "USD",
"time_open": "2026-10-18T00:00:00+00:00",
"market_cap": 1310000000000
}
],
"interval": "daily"
},
"meta": {
"source": "coinmarketcap",
"credits": 1,
"billable": true,
"endpoint_family": "history"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A query parameter is missing or invalid. This response is not billable.
{
"errors": {
"range": [
"range is a number with d, h or y, e.g. 30d."
]
},
"message": "The request validation failed"
}Service Unavailable
The upstream data is temporarily unavailable. This response is not billable.
{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The CoinMarketCap data is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.