Skip to main content
GET
cURL
3 credits per request
In Query field “coinIds”: credits are multiplied by the number of values.

  • Historical price data
  • Values in USD, BTC, ETH
  • coinIds: Comma-separated list of coin identifiers. At least one is required.
  • period: Time range for the chart data.
  • currency: Display currency (defaults to USD).

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

period
enum<string>
default:24h
required

Time period for the chart data.

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

"24h"

coinIds
string
default:bitcoin,ethereum
required

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

Example:

"bitcoin,ethereum,dogecoin"

currency
string
default:USD

Currency for chart values. Default is USD.

Example:

"USD"

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:
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"