Skip to main content
GET
cURL
4 credits per request

  • coinId: Coin identifier.
  • timestamp: Unix timestamp at which to compute the price.

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

coinId
string
required
Example:

"bitcoin"

timestamp
number
required
Example:

1636315200

Response

Get Historical global avg price

USD
number
required

Price in US Dollars

Example:

45123.45

BTC
number
required

Price in Bitcoin (BTC)

Example:

1

ETH
number
required

Price in Ethereum (ETH)

Example:

15.234