GET
/
assets
/
{id}
/
history
curl --request GET \
  --url https://api.coincap.io/v2/assets/{id}/history \
  --header 'Authorization: Bearer <token>'
{
  "priceUsd": 123,
  "time": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for the asset

Example:

"bitcoin"

Query Parameters

interval
enum<string>
required

Point-in-time interval for the data

Available options:
m1,
m5,
m15,
m30,
h1,
h2,
h6,
h12,
d1
start
integer

UNIX timestamp in milliseconds for the start of the range. If provided, end must also be provided.

end
integer

UNIX timestamp in milliseconds for the end of the range. If start is provided, end must also be provided.

Response

200 - application/json
The interval of time for historical data (e.g., daily, hourly)
priceUsd
integer
time
integer