Overview
Returns paginated historical price data for a specified cryptocurrency. Supports optional date range filters and page-based pagination. Results are ordered by newest first.Endpoint
Authentication
Required: Bearer token authentication Include the JWT token from the login endpoint in the Authorization header:Path Parameters
CoinGecko coin identifier (lowercase letters, numbers, and hyphens)Example:
bitcoin, ethereum, binancecoinQuery Parameters
Start date for filtering results (ISO 8601 format)Example:
2026-01-01T00:00:00.000ZEnd date for filtering results (ISO 8601 format)Example:
2026-12-31T23:59:59.999ZNumber of items per page
- Minimum: 1
- Maximum: 100
- Default: 20
20Page number (1-based)
- Minimum: 1
- Default: 1
1Response
The cryptocurrency identifierExample:
bitcoinThe currency the prices are denominated in (always “usd”)Example:
usdCurrent page number (1-based)Example:
1Number of items per pageExample:
20Total number of items matching the queryExample:
57Total number of pages availableExample:
3Whether there are more pages availableExample:
trueExample Request
Basic Request
With Date Range Filter
Example Response
Error Codes
| Status Code | Description |
|---|---|
200 | History page returned successfully |
400 | Invalid query parameters (coinId format, date format, limit/page bounds, or from > to) |
401 | Missing or invalid bearer token |
429 | Rate limit exceeded |
503 | Rate limiter backend unavailable |
Error Response Format
All errors follow this format:Pagination Notes
- Results are always ordered by newest first (most recent prices first)
- Use
hasNextPageto determine if more pages are available - Calculate total pages using:
totalPages = Math.ceil(totalItems / limit) - To fetch the next page, increment the
pageparameter