Get Fear and Greed Index

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

Query parameters

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 all for the Startup and Professional plan, and 1y for the Free plan.

Default value: 24h
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.


timePeriod Available intervals (default in bold)
24hhour
7dhour, day
30dhour, day
3mhour, day, week
1yday, week, month
3yday, week, month
5yday, week, month
10yday, week, month
allday, week, month

Example:
https://api.coinranking.com/v2/indicators/fear-and-greed?timePeriod=7d&interval=day

Code examples

Response

json
HTTP/1.1 200 OK { "status": "success", "data": [ { "timestamp": 1774948648, "value": 39.2714 }, { "timestamp": 1774944000, "value": 38.1845 } ] }

Response fields

PropertyDescription
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.

Error response

json
HTTP/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" }

Error responses