# CoinMarketCap History API Documentation

<p><strong>CoinMarketCap History API Documentation</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/coinmarketcap-api/coinmarketcap_history](https://scrappa.co/docs/coinmarketcap-api/coinmarketcap_history)
- **API group:** CoinMarketCap API
- **Endpoint:** `GET https://scrappa.co/api/coinmarketcap/history`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer | Yes | Numeric CoinMarketCap id, e.g. 1. |
| `range` | string | No | Window such as 30d, 24h or 1y, default 30d. At most 10 years. |
| `interval` | string | No | daily (default) or 1h. An hourly range is limited to 90 days. |
| `currency` | string | No | Quote currency: USD (default), EUR, GBP, BTC or ETH. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | The upstream data is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
