Skip to main content
POST
/
api
/
coingecko
/
coins
/
chart
/coingecko/coins/chart
curl --request POST \
  --url https://api.anysite.io/api/coingecko/coins/chart \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "coin": "<string>",
  "days": 183,
  "timeout": 300,
  "vs_currency": "usd"
}
'
[
  {
    "timestamp": 123,
    "@type": "@coingecko_chart_point",
    "price": 123,
    "market_cap": 123,
    "volume": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
coin
string
required

Coin id (not the ticker symbol). Resolve a symbol or name to an id via the search endpoint

Minimum string length: 1
Examples:

"bitcoin"

"ethereum"

"solana"

days
integer
required

Number of days of history to return, counting back from now

Required range: 1 <= x <= 365
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
vs_currency
enum<string>
default:usd

Currency to denominate prices in

Available options:
usd,
eur,
gbp,
jpy,
btc,
eth

Response

Successful Response

timestamp
integer
required
@type
string
default:@coingecko_chart_point
price
number | null
market_cap
number | null
volume
number | null