◈   ⌘ api · Intermediate

Alternative.me Fear & Greed API: Complete Trader's Guide

The alternative.me fear & greed API gives traders free programmatic access to real-time crypto sentiment data. Learn how to fetch, parse, and automate trading signals using Python and JavaScript.

Uncle Solieditor · voc · 06.05.2026 ·views 47
◈   Contents
  1. → What Is the Alternative.me Fear & Greed Index?
  2. → How to Access the Alternative.me Crypto Fear & Greed Index API
  3. → Parsing the API Response in JavaScript
  4. → Building an Automated Trading Signal Monitor
  5. → Practical Trading Strategies on Binance, Bybit, OKX, and Beyond
  6. → Frequently Asked Questions

Market sentiment moves crypto prices more than most traders want to admit. The alternative.me fear & greed index distills that sentiment into a single number — from 0 (Extreme Fear) to 100 (Extreme Greed) — updated daily for the broader crypto market. Checking it manually once a day is fine for casual reference, but traders who build systems need more: programmatic access, historical data, and the ability to trigger logic based on index thresholds. That's exactly what the alternative.me fear & greed index API provides. It's free, requires no authentication, and takes under five minutes to wire into any trading script.

What Is the Alternative.me Fear & Greed Index?

The alternative fear greed index aggregates six weighted data sources to produce its daily score: price volatility and maximum drawdown (25%), market momentum and trading volume relative to recent averages (25%), social media sentiment from Twitter and Reddit (15%), Bitcoin dominance as a risk-on/risk-off proxy (10%), Google Trends data for crypto-related search queries (10%), and historical survey data (15%, currently paused). Each input is normalized to a 0–100 scale before weighting, and the combined result captures where market psychology sits on any given day. The alternative.me crypto fear & greed index api serves this number through a simple REST endpoint — no proprietary models, no black boxes.

What makes the fear of greed index genuinely useful — rather than just interesting — is that market extremes tend to be mean-reverting. Extreme fear readings below 20 have historically aligned with capitulation bottoms: sellers are exhausted, volume spikes, and prices reverse sharply. Conversely, extreme greed readings above 80 have frequently marked local tops where leveraged longs are crowded and any catalyst can trigger cascading liquidations. The index doesn't predict the future, but it tells you precisely where crowd psychology is right now — and crowd psychology is a tradeable signal.

The fear of greed index is a sentiment filter, not a directional trigger. Never trade it in isolation — always combine it with price action confirmation, volume, and a defined risk management plan.

How to Access the Alternative.me Crypto Fear & Greed Index API

The alternative.me crypto fear & greed index api is a public REST API with no authentication, no API keys, and no signup required. The base endpoint is https://api.alternative.me/fng/ and accepts three query parameters: limit (number of days to return, defaults to 1, pass 0 for full history), date_format (unix or world), and format (json or csv). For the vast majority of use cases you'll be sending simple GET requests and parsing JSON. The API is fast and reliable, though like any free public endpoint, production code should include retry logic to handle occasional timeouts.

# Current reading (default)
curl 'https://api.alternative.me/fng/'

# Last 30 days of history
curl 'https://api.alternative.me/fng/?limit=30'

# 7 days with human-readable dates
curl 'https://api.alternative.me/fng/?limit=7&date_format=world'

# Full available history (back to Feb 2018)
curl 'https://api.alternative.me/fng/?limit=0'

The JSON response always has the same structure: a name field, a data array, and a metadata object. Each element in data contains value (the index score as a string — not an integer), value_classification (one of: Extreme Fear, Fear, Neutral, Greed, Extreme Greed), timestamp (Unix epoch), and time_until_update (seconds until next update, present only in the current-day entry). The fact that value arrives as a string is the most common integration mistake — always cast it before doing numerical comparisons.

import requests

def get_fear_greed(limit=1):
    url = 'https://api.alternative.me/fng/'
    params = {'limit': limit, 'format': 'json'}
    response = requests.get(url, params=params, timeout=5)
    response.raise_for_status()
    return response.json()['data'][0]

entry = get_fear_greed()
print('Fear & Greed Index: ' + entry['value'])
print('Sentiment: ' + entry['value_classification'])
print('Timestamp: ' + entry['timestamp'])
print('Updates in: ' + entry.get('time_until_update', 'N/A') + ' seconds')

Parsing the API Response in JavaScript

If you're building a web dashboard or a Node.js trading bot, JavaScript fits the workflow naturally. The example below fetches a 7-day history, converts the Unix timestamps to ISO date strings, and returns a clean array ready for charting, database insertion, or correlation against price feeds from Binance or OKX.

const axios = require('axios');

async function getFearGreedHistory(days = 7) {
  const url = 'https://api.alternative.me/fng/?limit=' + days;

  try {
    const response = await axios.get(url);
    const raw = response.data.data;

    return raw.map(entry => ({
      value: parseInt(entry.value, 10),
      label: entry.value_classification,
      date: new Date(entry.timestamp * 1000).toISOString().slice(0, 10)
    }));
  } catch (err) {
    console.error('Fear & Greed API error:', err.message);
    throw err;
  }
}

getFearGreedHistory(7).then(history => {
  history.forEach(d => {
    process.stdout.write(d.date + ' | ' + d.value + ' | ' + d.label + '\n');
  });
});

The key detail is parseInt(entry.value, 10) — an explicit conversion that prevents silent type errors downstream. Once you have the parsed array, you can pair it with price data from exchange APIs. Binance's public kline endpoint returns OHLCV data with matching timestamps, making it straightforward to correlate fear & greed readings with Bitcoin's daily candles. OKX's history candlesticks endpoint works the same way. Overlaying sentiment data on price history reveals patterns that pure technical analysis misses — particularly the clustering of extreme fear readings at significant support levels, where price action and sentiment confluence produce the highest-probability entries.

Building an Automated Trading Signal Monitor

The real leverage of the alternative me fear and greed api comes from automation. Instead of checking the index manually each morning, a signal monitor runs continuously, fetches the latest reading on a configurable interval, classifies it into an actionable signal, and logs or alerts when thresholds are crossed. Here's a production-ready implementation with exponential backoff retry logic and clean signal mapping:

import requests
import time
from datetime import datetime

API_URL = 'https://api.alternative.me/fng/'

def fetch_sentiment(limit=1):
    for attempt in range(3):
        try:
            resp = requests.get(API_URL, params={'limit': limit}, timeout=5)
            resp.raise_for_status()
            return resp.json()['data']
        except requests.RequestException:
            if attempt == 2:
                raise
            time.sleep(2 ** attempt)  # exponential backoff: 1s, 2s

def to_signal(value):
    v = int(value)
    if v <= 20:
        return 'STRONG_BUY'   # Extreme Fear — contrarian entry
    elif v <= 40:
        return 'BUY'          # Fear — start accumulating
    elif v <= 60:
        return 'NEUTRAL'      # Wait for confirmation
    elif v <= 80:
        return 'CAUTION'      # Greed — tighten stops
    else:
        return 'SELL'         # Extreme Greed — take profits

def run_monitor(interval=3600):
    print('Fear & Greed signal monitor running...')
    while True:
        data = fetch_sentiment()
        entry = data[0]
        signal = to_signal(entry['value'])
        ts = datetime.now().strftime('%Y-%m-%d %H:%M')
        line = (ts + ' | Index: ' + entry['value'] +
                ' (' + entry['value_classification'] + ')' +
                ' => ' + signal)
        print(line)
        time.sleep(interval)

if __name__ == '__main__':
    run_monitor()

The exponential backoff in fetch_sentiment handles occasional timeouts without crashing the loop. The to_signal function encodes a simple contrarian framework: buy when others are fearful, reduce exposure when the market is euphoric. This mirrors classic contrarian investing logic applied to crypto's compressed, high-volatility cycles. In practice, you'd extend this by adding position sizing logic — scaling into a Bybit USDT-margined position in increments as the index falls deeper into fear territory, rather than committing a full position at once. The monitor runs hourly because the index updates daily, but hourly checks ensure you catch the update promptly after midnight UTC.

Practical Trading Strategies on Binance, Bybit, OKX, and Beyond

Understanding sentiment data is one thing — translating it into actual trades on real exchanges requires knowing how each platform behaves in different sentiment environments. The alternative me crypto fear & greed index api pairs naturally with specific exchange mechanics that amplify its signal value.

On Binance, the world's largest spot and derivatives exchange, extreme fear readings frequently coincide with large liquidation cascades on Binance Futures. When the fear & greed index drops below 20 and Binance's public liquidation data shows a spike in long liquidations, that double-signal is historically strong for a near-term reversal. On the spot side, Binance's grid bot feature is well-suited to fear zones: you set automatic buy orders at fixed intervals below current price and let the market fill them as it capitulates. Grid strategies perform best precisely when sentiment is worst.

Bybit and OKX both maintain well-documented REST and WebSocket APIs, making them natural targets for automated execution based on sentiment signals. A common pattern on OKX is to subscribe to BTC's ticker stream and only consider long entries when both the alternative.me crypto fear & greed index api returns a reading below 40 and price is above a key moving average — a confluence filter that reduces false entries significantly. On Bybit's Unified Trading Account API, you'd place limit orders below current market price, letting capitulation selling bring price to your level rather than chasing. Traders using KuCoin and Gate.io work with a broader selection of altcoins, and in those markets the fear & greed alternative matters even more: smaller-cap assets react to sentiment extremes with far larger percentage moves in both directions, making sentiment filtering more valuable for entry quality.

Fear & Greed Signal Mapping to Exchange Actions
Index RangeClassificationSuggested ActionExchange Example
0–24Extreme FearScale into longs over 3–5 days, grid buysBinance spot, Bybit futures
25–49FearAccumulate on dips, set limit orders below marketOKX, Bybit USDT perp
50–64NeutralHold existing positions, await trend confirmationAll exchanges
65–79GreedTighten stop-losses, reduce leverage exposureBinance, KuCoin
80–100Extreme GreedTake partial profits, avoid opening new longsCoinbase, Gate.io

If you want all of this data pre-aggregated without building the correlation pipeline yourself, VoiceOfChain combines the alternative.me fear and greed index with on-chain metrics, funding rates, open interest, and technical indicators into a unified real-time signal stream. Rather than running five separate API calls and writing your own weighting logic, you get a single signal that already accounts for how sentiment aligns with broader market structure — particularly useful for traders on Binance and OKX who want sentiment context without the infrastructure overhead.

The index can stay in extreme fear territory for days or weeks during prolonged bear markets. Never use a fear reading as a standalone entry trigger — always confirm with price action, volume, and at minimum one additional indicator before committing capital.

Frequently Asked Questions

Is the alternative.me fear & greed API free to use?
Yes, completely free with no authentication required. There are no API keys, no registration, and no hard rate limits documented — just GET requests to the public endpoint at https://api.alternative.me/fng/. For production use, build retry logic to handle occasional timeouts gracefully.
How often does the alternative.me fear & greed index update?
The index updates once per day, typically around midnight UTC. The current reading's response includes a time_until_update field showing seconds until the next update. Polling more frequently than once per hour offers no benefit since the underlying data changes daily.
Can I get historical fear & greed data from the API?
Yes. Pass limit=0 in the query string to retrieve the full available history, or limit=N for a specific number of past days. Data goes back to February 2018, giving you over six years of daily sentiment readings — enough for meaningful backtesting across multiple full market cycles.
What is the difference between the fear and greed alternative index and the CNN Fear & Greed Index?
The alternative.me index focuses exclusively on cryptocurrency markets, using crypto-native inputs like Bitcoin dominance, crypto social media volume, and crypto-specific volatility measures. The CNN index measures US equity market sentiment. They are entirely separate tools — for crypto trading, the alternative.me version is the relevant one.
How accurate is the fear & greed index at predicting price movements?
It is not a price predictor — it is a sentiment indicator. Historically, extreme readings below 20 or above 80 have correlated with significant market reversals, but timing those reversals precisely remains difficult. The index performs best as a position-sizing input and entry quality filter rather than a standalone directional signal.
How do I combine the alternative.me crypto fear & greed index API with Binance's API?
Fetch the fear & greed reading via the alternative.me endpoint and compare it against price data from Binance's public kline endpoint at https://api.binance.com/api/v3/klines. No authentication is needed for Binance's market data endpoints. Match daily fear & greed values to Bitcoin's daily OHLCV candles by aligning Unix timestamps to build a combined sentiment-plus-price signal system.

The alternative.me fear & greed API is one of the cleanest free data sources available to crypto traders — no auth, no cost, minimal latency, and a consistent structure that has remained stable for years. Whether you're building a simple morning alert script in Python, a JavaScript dashboard that visualizes the alternative fear greed index alongside price charts, or a fully automated system that adjusts position sizing based on sentiment zones, the API provides a solid foundation. Pair it with exchange-specific data from Binance, Bybit, OKX, or KuCoin, and you've added a sentiment layer that most retail traders ignore entirely — which is exactly where durable edge tends to live. For those who want the synthesis handled for them, VoiceOfChain wraps the alternative.me fear and greed index alongside on-chain and technical context into actionable signals, so you spend less time building infrastructure and more time executing.

◈   more on this topic
◉ basics Mastering the ccxt library documentation for crypto traders ⌂ exchanges Mastering the Binance CCXT Library for Crypto Traders ⌬ bots Best Crypto Trading Bots 2025: Profitable AI-Powered Strategies