Yes, you can access historical cryptocurrency market data via the /v1/global-metrics/quotes/historical API endpoint. This allows you to retrieve past global market metrics, such as market capitalization and Bitcoin dominance, based on specified time ranges and intervals.
API Endpoint:GET https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/historical
Parameters:
• time_start: (optional) Timestamp (Unix or ISO 8601) to start returning quotes for. Example: 2024-01-01T00:00:00Z.
• time_end: (optional) Timestamp (Unix or ISO 8601) to stop returning quotes for. Example: 2024-10-01T00:00:00Z.
• interval: Interval of time to return data points for. Example: 1d, hourly, weekly, monthly.
• count: (optional) The number of interval periods to return results for. Example: 100.
• convert: (optional) Optionally calculate market quotes in up to 3 other fiat currencies or cryptocurrencies. Example: convert=USD,EUR,BTC.
• convertid: (optional) Use CoinMarketCap IDs instead of symbols for conversions. Example: convertid=1,2781.
Response Example:
{
“data”: {
“quotes”: [
{
“timestamp”: “2024-01-01T00:00:00.000Z”,
“btc_dominance”: 45.0057,
“active_cryptocurrencies”: 2900,
“totalmarketcap”: 2374432083905.6846,
“totalvolume24h”: 262906061281.24
},
{
“timestamp”: “2024-01-02T00:00:00.000Z”,
“btc_dominance”: 46.0028,
“active_cryptocurrencies”: 2950,
“totalmarketcap”: 2385000000000,
“totalvolume24h”: 265000000000
}
]
},
“status”: {
“timestamp”: “2024-10-11T02:36:05.986Z”,
“error_code”: 0,
“error_message”: null,
“elapsed”: 10,
“credit_count”: 1
}
}
This API is available on the following plans:
• Basic
• Hobbyist (1 month)
• Startup (1 month)
• Standard (3 months)
• Professional (12 months)
• Enterprise (Up to 6 years)
Explore the plans and their features on the CoinMarketCap API pricing page.