Get the Fear and Greed Index for the cryptocurrency market throughout time. The Fear and Greed Index is a market-wide sentiment indicator that measures the current mood of the crypto market on a scale from 0 (extreme fear) to 100 (extreme greed). It is calculated based on factors such as volatility, market momentum, social media sentiment, and more.
https://api.coinranking.com/v2/indicators/fear-and-greed
| Parameter | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timePeriod (optional) String |
The time period for which the Fear and Greed Index data is returned. The number of data points and the default interval are determined by the time period. The maximum timePeriod you can use is Allowed values: 24h 7d 30d 3m 1y 3y 5y 10y all Example:
https://api.coinranking.com/v2/indicators/fear-and-greed?timePeriod=7d
|
||||||||||||||||||||
interval (optional) String |
The interval determines the granularity of each data point. If not provided, a default interval is used based on the selected timePeriod. Only certain intervals are available per timePeriod — see the table below.
Example:
https://api.coinranking.com/v2/indicators/fear-and-greed?timePeriod=7d&interval=day
|
jsonHTTP/1.1 200 OK
{
"status": "success",
"data": [
{
"timestamp": 1774948648,
"value": 39.2714
},
{
"timestamp": 1774944000,
"value": 38.1845
}
]
}
| Property | Description |
|---|---|
status String | Status of the request Allowed values:success |
data Object[] | List of Fear and Greed Index data points |
data.timestamp Number | An Epoch timestamp in seconds. |
data.value Number/null | The Fear and Greed Index value on a scale from 0 to 100. A value of 0 represents extreme fear, while 100 represents extreme greed. Returns null if no data is available for this time period. |
jsonHTTP/1.1 422 Unprocessable Entity
{
"status": "fail",
"type": "VALIDATION_ERROR",
"message": "timePeriod must be one of 24h, 7d, 30d, 3m, 1y, 3y, 5y, 10y, all"
}