Skip to main content
GET
/
v3
/
currencies
/
{id}
/
sparkline
Price & Volume Chart
curl --request GET \
  --url https://api.cryptorank.io/v3/currencies/{id}/sparkline \
  --header 'X-Api-Key: <api-key>'
[
  {
    "time": 1715000000000,
    "price": "65000.5",
    "volume": "28000000000"
  }
]
Depth and granularity depend on the plan: Basic — up to 30d at 5m/15m/1h, up to 1y at 1d; Advanced — up to 30d at 5m/15m/1h, up to 2y at 1d; Pro — up to 90d at 5m/15m/1h, up to 5y at 1d; Business — up to 1y at 5m/15m/1h, full history at 1d.
With no parameters, returns the last 7 days at 1h.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
integer
required

Numeric coin id.

Example:

1

Query Parameters

from
string

Window start. Defaults to 7d before to. Accepted: ISO 8601, bare date (YYYY-MM-DD), or Unix timestamp in seconds/milliseconds.

to
string

Window end. Defaults to now. Accepted: ISO 8601, bare date (YYYY-MM-DD), or Unix timestamp in seconds/milliseconds. Bare dates resolve to end-of-day UTC.

interval
enum<string>
default:1h

Step between points. Depth allowed per interval depends on your plan.

Available options:
5m,
15m,
1h,
1d
sortOrder
enum<string>
default:asc

Order by time.

Available options:
asc,
desc

Response

time
number
required

Bucket timestamp, Unix epoch milliseconds

Example:

1715000000000

price
string
required

Price at the bucket, USD

Example:

"65000.5"

volume
string
required

24h rolling trading volume at the bucket, USD

Example:

"28000000000"