Get free API key
All APIsexpand_more
search
appsAll APIs
functionHow metrics are calculated

Fear & Greed index

GET/stable/fear-greed1 tokens per call

Returns ZENITH Code's own market sentiment score (0–100), computed from volatility momentum (inverted RSI(14) and deviation from the 20-day moving average). The response includes a label, the previous close, the score one month ago and the components.

What you can do with this API

  • check_circleSee at a glance whether the market is overheated or fearful
  • check_circleCompare with the score a month ago to track sentiment changes
  • check_circleShow it on a dashboard as a reference for trading decisions

Example URL

https://api.zenithcode.net/stable/fear-greed

Shown without percent-encoding for readability. Non-ASCII values are encoded automatically when sent.

Parameters

This API takes no parameters.

Try it

Run it with your own parameters and check the response as a table, JSON or CSV. Sign-in required; each run uses 1 tokens.

travel_exploreTry in the API Viewer

Response example (real data)

lock
Live response examples are shown to signed-in users only (they include exchange data such as stock prices). Sign in to view

Response fields

scoreA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.numberA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.How it is calculated →
labelA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.stringA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.How it is calculated →
previousCloseA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.numberA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.How it is calculated →
lastMonthA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.numberA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.How it is calculated →
componentsA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.objectA 0–100 market sentiment score (0 is extreme fear, 100 is extreme greed), returned as computed by an external service.How it is calculated →
updatedAtスコアの更新日時(集計元に無ければ取得時刻)stringスコアの更新日時(集計元に無ければ取得時刻)

Related APIs

FAQ

How should I read the score?expand_more

Close to 0 means fear (oversold) and close to 100 means greed (overbought). The calculation differs from similarly named indexes from other providers.

How many tokens does one call use?expand_more

1 tokens per call, regardless of how many rows come back. Your monthly allowance depends on your plan.

Do I need an account to try it?expand_more

Use the API Viewer to run it with your own parameters. Sign up for free and sign in (no credit card). Each run uses this API's tokens.

Can I get CSV instead of JSON?expand_more

Add format=csv to the URL to get CSV, ready for spreadsheets or pandas.

Can I get labels in English?expand_more

With neither lang nor Accept-Language, labels such as sector names are returned in English; add lang=ja or send Accept-Language: ja for Japanese. Company and sector names are always returned in both languages as nameJa / nameEn and sectorJa / sectorEn. Field names are the same in both languages.