# Crypto Market Sentiment Index Tracker (`dataspryva/crypto-market-sentiment-index-tracker`) Actor

Get the live crypto market-sentiment reading, the last N daily values, or any historical date range since 2018 - with a 0-100 score, an Extreme Fear to Extreme Greed classification, and ISO dates. No API key, no proxy.

- **URL**: https://apify.com/dataspryva/crypto-market-sentiment-index-tracker.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Crypto Market Sentiment Index Tracker

Scrape the **Crypto Fear & Greed Index** — the market-sentiment gauge that scores the whole crypto market from **0 (Extreme Fear)** to **100 (Extreme Greed)**. Get the live reading, the last N daily values, or any historical date range, each with a numeric score, a sentiment classification, a unix timestamp, and clean ISO dates. Powered by the public `alternative.me` API. **No API key, no login, no proxy.**

### What this actor does

- **Three modes:** `latest`, `historical`, `dateRange`
- **Live sentiment:** the current index value plus seconds until the next update
- **Full history:** every daily reading since the index began (2018+)
- **Date-range slicing:** pull just the readings between two dates
- **Classification filter:** keep only `Extreme Fear`, `Fear`, `Neutral`, `Greed`, or `Extreme Greed` readings
- **Clean, typed output:** strings from the API are converted to real numbers and ISO dates
- **Empty fields are omitted** — every field you see is populated

### Output per reading

| Field | Type | Description |
|---|---|---|
| `value` | int | Index score, `0`–`100` |
| `valueClassification` | string | One of `Extreme Fear`, `Fear`, `Neutral`, `Greed`, `Extreme Greed` |
| `timestamp` | int | Unix time (seconds, UTC) of the reading |
| `date` | string | `YYYY-MM-DD` (UTC) derived from the timestamp |
| `datetimeUtc` | string | Full ISO 8601 UTC datetime |
| `timeUntilUpdate` | int | Seconds until the next update — **latest reading only** |
| `recordType` | string | Always `fearGreedIndex` |
| `scrapedAt` | string | ISO 8601 UTC time the record was scraped |

### Output: error record (mode = `dateRange` only, bad input)

| Field | Type | Description |
|---|---|---|
| `recordType` | string | Always `error` |
| `error` | string | Short error code, e.g. `invalid_date`, `invalid_date_range`, `missing_input` |
| `message` | string | Human-readable explanation of the problem |
| `input` | string | The offending input value |
| `sourceUrl` | string | The `alternative.me` endpoint the actor was about to call |
| `scrapedAt` | string | ISO 8601 UTC time the record was generated |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `latest` | `latest` / `historical` / `dateRange` |
| `limit` | int | `30` | Number of most-recent daily readings (mode=historical), `1`–`5000` |
| `startDate` | string | – | Inclusive range start, `YYYY-MM-DD` (mode=dateRange) |
| `endDate` | string | – | Inclusive range end, `YYYY-MM-DD` (mode=dateRange) |
| `classificationFilter` | string | – | Keep only one sentiment band (mode=historical / dateRange) |

#### Example: current reading

```json
{
  "mode": "latest"
}
```

#### Example: last 90 daily readings

```json
{
  "mode": "historical",
  "limit": 90
}
```

#### Example: only the "Extreme Fear" days in a range

```json
{
  "mode": "dateRange",
  "startDate": "2024-01-01",
  "endDate": "2024-12-31",
  "classificationFilter": "Extreme Fear"
}
```

### Use cases

- **Trading signals** — feed sentiment into contrarian buy/sell strategies
- **Dashboards & bots** — display the live index in Telegram/Discord/Slack
- **Backtesting** — align historical sentiment against price data
- **Research** — study how fear and greed track market cycles
- **Alerts** — trigger a notification when the market flips into Extreme Fear or Extreme Greed
- **Content** — power newsletters and widgets with a fresh daily reading

### FAQ

**What is the Crypto Fear & Greed Index?**  A daily 0–100 score of overall crypto-market sentiment, published by alternative.me. Low values mean investors are fearful (often seen as a buying opportunity); high values mean the market may be greedy and due for a correction.

**How are the classifications defined?**  Each score maps to a band: `0–25` Extreme Fear, `26–46` Fear, `47–54` Neutral, `55–75` Greed, `76–100` Extreme Greed.

**How often does it update?**  Once per day. The `latest` reading also includes `timeUntilUpdate`, the number of seconds until the next refresh.

**How far back does the history go?**  To the index's launch in early 2018. `historical` and `dateRange` can reach the entire archive.

**Do I need an API key or proxy?**  No. The data source is a free public API — this actor uses no authentication, cookies, or proxy.

**What happens with a bad date range?**  If a date is unparseable, or `startDate` is after `endDate`, the actor emits a single typed error record explaining the problem instead of failing silently.

**Why do some fields not appear?**  The actor omits any empty field. For example, `timeUntilUpdate` only appears on the current reading, never on historical rows.

**Is the index the same as the stock-market Fear & Greed Index?**  No — this is the crypto-specific index from alternative.me, built from volatility, momentum, volume, social media, dominance, and trends across the crypto market.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: the current reading, the last N daily readings, or a custom date range.

## `limit` (type: `integer`):

How many of the most recent daily readings to return (mode=historical). One reading per day.

## `startDate` (type: `string`):

Inclusive start of the range, format YYYY-MM-DD (mode=dateRange).

## `endDate` (type: `string`):

Inclusive end of the range, format YYYY-MM-DD (mode=dateRange).

## `classificationFilter` (type: `string`):

Only keep readings with this sentiment band (mode=historical or dateRange). Leave empty to keep all.

## Actor input object example

```json
{
  "mode": "latest",
  "limit": 30,
  "startDate": "2024-01-01",
  "endDate": "2024-01-31"
}
```

# Actor output Schema

## `readings` (type: `string`):

Dataset containing all scraped Crypto Fear & Greed Index readings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "latest",
    "limit": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/crypto-market-sentiment-index-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "latest",
    "limit": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/crypto-market-sentiment-index-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "latest",
  "limit": 30
}' |
apify call dataspryva/crypto-market-sentiment-index-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/crypto-market-sentiment-index-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wtjQuRbdkk2pOxhgb/builds/SLxE5JoQS1QTB6H4M/openapi.json
