Skip to main content
GET
cURL
3 credits per request

  • coinId: Path parameter. Unique coin identifier.
  • period: Time range for the chart.
  • 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.

Path Parameters

coinId
string
default:bitcoin
required

The identifier of coin, which you received from /coins call response.

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"

currency
string
default:USD

Currency for chart values. Default is USD.

Example:

"USD"

Response

Get Historical global avg price chart.