# CoinMarketCap Global Metrics (`gochujang/coinmarketcap-global-metrics`) Actor

Fetch global crypto market data: total market cap, BTC/ETH dominance, 24h trading volume, DeFi market cap, active cryptocurrencies count, market sentiment, and Fear & Greed index. Uses public CoinMarketCap data. No API key required.

- **URL**: https://apify.com/gochujang/coinmarketcap-global-metrics.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 metric fetcheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## CoinMarketCap Global Metrics — Market Cap, Dominance, Fear & Greed

**CoinMarketCap Global Metrics** fetches a real-time snapshot of the entire crypto market — total market cap, 24h volume, BTC/ETH/altcoin dominance, DeFi market cap, stablecoin volume, active cryptocurrencies count, and Fear & Greed index. Data from CoinGecko + Alternative.me. No API key required. $0.005 flat/run.

The total crypto market cap, dominance percentages, and Fear & Greed index are the foundational macro inputs for any crypto strategy. This actor delivers all of them in one structured JSON record — schedulable, automatable, and free of API key management.

***

### Why use CoinMarketCap Global Metrics?

1. **Live dashboard widgets** — Embed real-time market cap, dominance, and Fear & Greed into Grafana, Notion, Telegram bots, or custom web apps on any schedule.
2. **Sentiment threshold alerts** — Automate alerts when Fear & Greed crosses extreme levels (< 20 = extreme fear = historical buying zone; > 80 = extreme greed = distribution zone).
3. **Dominance shift monitoring** — Track BTC vs. ETH vs. altcoin dominance daily. Rising altcoin dominance + falling BTC dominance = alt season signal.
4. **Market regime classification** — Combine total market cap trend with Fear & Greed and dominance to classify current regime (risk-on/off, alt season/BTC dominance) for rule-based portfolio decisions.
5. **Historical dataset accumulation** — Schedule daily runs to build a time-series of global metrics. Lightweight alternative to expensive data provider subscriptions.

***

### How to use

1. Open the actor on Apify Store and click **Try for free**.
2. Toggle `includeFearGreed` or `includeDominance` as needed (both default to `true`).
3. Click **Start** — completes in under 15 seconds.
4. View the single output record in the Dataset tab.
5. Schedule hourly or daily for time-series accumulation.

***

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `includeFearGreed` | boolean | `true` | Fetch Alternative.me Fear & Greed Index (0-100 + classification) |
| `includeDominance` | boolean | `true` | Include BTC, ETH, and altcoin dominance breakdown |

***

### Output

```json
{
  "total_market_cap_usd": 2780000000000,
  "total_volume_24h_usd": 98000000000,
  "btc_dominance_pct": 52.3,
  "eth_dominance_pct": 17.1,
  "altcoin_dominance_pct": 30.6,
  "active_cryptocurrencies": 14200,
  "active_exchanges": 1100,
  "defi_volume_24h_usd": 8500000000,
  "defi_market_cap_usd": 120000000000,
  "stablecoin_volume_24h_usd": 45000000000,
  "market_cap_change_24h_pct": 1.42,
  "fear_greed_value": 65,
  "fear_greed_classification": "Greed",
  "fetched_at": "2026-09-01T12:00:00Z"
}
```

#### Output fields

| Field | Description |
|-------|-------------|
| `total_market_cap_usd` | Total crypto market cap across all tracked assets |
| `btc_dominance_pct` | Bitcoin's share of total market cap (%) |
| `eth_dominance_pct` | Ethereum's share of total market cap (%) |
| `altcoin_dominance_pct` | All non-BTC/ETH combined dominance (%) |
| `defi_market_cap_usd` | Total DeFi market capitalization |
| `stablecoin_volume_24h_usd` | Stablecoin 24h trading volume |
| `fear_greed_value` | 0 = extreme fear, 100 = extreme greed |
| `fear_greed_classification` | `Extreme Fear`, `Fear`, `Neutral`, `Greed`, `Extreme Greed` |

***

### Cost estimation

**Flat $0.005 per run.**

| Schedule | Runs/month | Monthly cost |
|----------|-----------|--------------|
| Daily | 30 | $0.15 |
| Every 6 hours | 120 | $0.60 |
| Hourly | 720 | $3.60 |
| Every 15 minutes | 2,880 | $14.40 |

***

### FAQ

**What is the Fear & Greed index source?**
Alternative.me, which aggregates volatility, market momentum/volume, social media, market dominance, and Google Trends into a daily 0–100 score. Updates once per day — intraday runs return the same value.

**Why CoinGecko instead of CoinMarketCap directly?**
CoinGecko provides equivalent global metrics through a free public API without authentication or rate-limit management. The output aligns closely with what CMC reports.

**Can I combine this with per-coin actors?**
Yes — use this for the macro layer (total cap, dominance, Fear & Greed) and combine with Bitcoin Network Health, Crypto Exchange Flow, or Institutional Flows for the asset-level layer.

**How does dominance shifting signal alt season?**
BTC dominance falling + total market cap rising = capital rotating from BTC to altcoins. Combine with `altcoin_dominance_pct` trending up for a high-conviction alt season signal.

***

### Related actors

- [Altcoin BTC-Relative Performance](https://apify.com/gochujang/altcoin-btc-performance) — Per-pair alt season signal to complement the aggregate dominance data
- [Bitcoin Network Health Dashboard](https://apify.com/gochujang/bitcoin-network-health) — On-chain BTC metrics to pair with macro market cap data
- [Institutional Crypto Flows](https://apify.com/gochujang/institutional-crypto-flows) — ETF demand data that drives total market cap movements

*Disclaimer: Data is for informational purposes only and does not constitute financial advice.*

### Feedback

If this actor powers your crypto dashboard, a review helps others find it: [Leave a review on Apify Store](https://apify.com/gochujang/coinmarketcap-global-metrics#reviews)

***

**Keywords:** CoinMarketCap global metrics, total crypto market cap, BTC dominance tracker, ETH dominance, DeFi market cap, altcoin season signal, crypto market sentiment, Fear Greed Index, 24h trading volume crypto, active cryptocurrencies count, crypto macro dashboard, market cap scraper

# Actor input Schema

## `includeFearGreed` (type: `boolean`):

Fetch Alternative.me Fear & Greed index alongside market data.

## `includeDominance` (type: `boolean`):

Include BTC/ETH/altcoin dominance breakdown in the output.

## Actor input object example

```json
{
  "includeFearGreed": true,
  "includeDominance": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/coinmarketcap-global-metrics").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/coinmarketcap-global-metrics").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 '{}' |
apify call gochujang/coinmarketcap-global-metrics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/coinmarketcap-global-metrics"
        }
    }
}
```

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/3trSryPlgWOA3ISx4/builds/MyfkVfIu6ZzR6rVci/openapi.json
