Skip to main content
GET
/
v3
/
currencies
/
{id}
/
sparkline
Currency sparkline
curl --request GET \
  --url https://api.cryptorank.io/v3/currencies/{id}/sparkline \
  --header 'X-Api-Key: <api-key>'
{
  "interval": "1h",
  "days": 7,
  "points": [
    [
      1715000000000,
      "65000.5"
    ],
    [
      1715003600000,
      "65100.2"
    ]
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cryptorank.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
integer
required

Numeric coin id.

Example:

1

Query Parameters

interval
enum<string>
default:1h

Aggregation interval.

Available options:
1h,
4h,
1d
days
enum<number>
default:7

Number of days.

Available options:
7,
14,
30

Response

interval
enum<string>
required
Available options:
1h,
4h,
1d
Example:

"1h"

days
enum<number>
required
Available options:
7,
14,
30
Example:

7

points
string[]
required

Array of [timestamp_ms, price_usd] tuples. Timestamp is a number, price a string.

Example:
[
[1715000000000, "65000.5"],
[1715003600000, "65100.2"]
]