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

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
coin
string
required

Coin CoinMarketCap slug (e.g. 'bitcoin') or numeric id (e.g. '1')

Minimum string length: 1
Example:

"bitcoin"

range
enum<string>
required

Time range of the price history series

Available options:
1D,
7D,
1M,
3M,
1Y,
YTD,
ALL
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

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