Skip to main content
GET
/
coins
/
price
/
avg
Get the historical average price of a specific cryptocurrency for a given date.
curl --request GET \
  --url https://openapiv1.coinstats.app/coins/price/avg \
  --header 'X-API-KEY: <api-key>'
{
  "USD": 45123.45,
  "BTC": 1,
  "ETH": 15.234
}
4 credits per request

Authorizations

X-API-KEY
string
header
required

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

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

I