Skip to main content
GET
/
coins
/
charts
Get historical chart data for multiple cryptocurrencies
curl --request GET \
  --url https://openapiv1.coinstats.app/coins/charts \
  --header 'X-API-KEY: <api-key>'
[
  {
    "coinId": "bitcoin",
    "chart": [
      [
        1438905600,
        2.83162,
        0.0101411,
        1
      ],
      [
        1438992000,
        2.7976,
        0.0100039,
        1
      ],
      [
        1439078400,
        2.8091,
        0.0102231,
        1
      ]
    ],
    "errorMessage": "ERR_COIN_CHART_NOT_FOUND"
  }
]
3 credits per request
In Query field “coinIds”: credits are multiplied by the number of values.
  • Historical price data
  • Values in USD, BTC, ETH

Authorizations

X-API-KEY
string
header
required

API key needed to access the endpoints. Example: 'demo-api-key'

Query Parameters

period
enum<string>
required

Time period for the chart data.

Available options:
all,
24h,
1w,
1m,
3m,
6m,
1y
Example:

"24h"

coinIds
string
required

Comma-separated list of coin identifiers to fetch chart data for

Example:

"bitcoin,ethereum,dogecoin"

Response

Get Historical global avg price charts for multiple coins.

coinId
string
required

Unique identifier of the cryptocurrency

Example:

"bitcoin"

chart
number[][]
required

Array of historical price data points. Each data point is an array containing:

  1. TIMESTAMP - Unix timestamp in seconds
  2. USD - Price in USD
  3. BTC - Price in Bitcoin
  4. ETH - Price in Ethereum
Example:
[
[1438905600, 2.83162, 0.0101411, 1],
[1438992000, 2.7976, 0.0100039, 1],
[1439078400, 2.8091, 0.0102231, 1]
]
errorMessage
string

Error message if data fetching failed for this specific coin. This allows partial success responses where some coins data is available while others failed.

Example:

"ERR_COIN_CHART_NOT_FOUND"

I