# CryptoCompare Scraper — Crypto Market Data, Exchanges & Trading (`ahmed_jasarevic/cryptocompare-scraper`) Actor

Scrape cryptocurrency market data from CryptoCompare: coin info, prices, supply, social stats, exchange listings, and trading pairs.

- **URL**: https://apify.com/ahmed\_jasarevic/cryptocompare-scraper.md
- **Developed by:** [Ahmed Jasarevic](https://apify.com/ahmed_jasarevic) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CryptoCompare Scraper — Crypto Market Data, Exchanges & Trading Pairs

Scrape **cryptocurrency market data** from **CryptoCompare.com** — coin fundamentals, **USD price**, market cap, circulating/total/max supply, social stats, exchange listings and **trading pairs** for 1,600+ cryptocurrencies — for portfolio dashboards, trading bot routing, DeFi analytics and crypto market research. No API key required.

### Main Use Cases

- **Crypto market data** — collect coin fundamentals, prices and supply data for dashboards
- **Portfolio tracker building** — feed comprehensive coin data into tracking tools
- **Trading bot routing** — map exchange listings and trading pairs across exchanges
- **Crypto market research** — analyze market cap, supply, and social stats for many coins
- **DeFi analytics dashboards** — aggregate price and exchange data across sources
- **AI/ML research** — build datasets of crypto fundamentals and price data

### How It Works

Give the actor a list of coin symbols (e.g. `BTC`, `ETH`, `SOL`) or leave it empty for the top 20 coins. It reads CryptoCompare's **embedded JSON data** from each coin page (no API key, no browser) and returns one clean JSON object per coin with fundamentals, price, supply, social stats and exchange/pair counts.

### Build Crypto Market Data Datasets Without a Paid CryptoCompare API

CryptoCompare's real-time WebSocket feed and full API are paid. This actor extracts the **server-rendered public data** — price, market cap, supply, algorithm, social stats, exchange and trading-pair counts — as clean JSON for trading, research and analytics at scale, with no official API subscription.

### Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `coinSymbols` | array of strings | No | Top 20 coins | Coin symbols to scrape, e.g. `BTC`, `ETH`, `SOL` |
| `maxRequestsPerCrawl` | integer | No | 100 | Max coin pages to scrape |
| `useApifyProxy` | boolean | No | `true` | Route requests through the Apify proxy |

### Output

Each dataset item is one coin:

| Field | Type | Description |
|---|---|---|
| `symbol` | string | Coin ticker, e.g. `BTC` |
| `name` | string | Full coin name, e.g. `Bitcoin` |
| `url` | string | CryptoCompare coin page |
| `priceUsd` | number | Current USD price |
| `marketCap` | number | Price × circulating supply |
| `circulatingSupply` / `totalSupply` / `maxSupply` | number | Supply figures |
| `startDate` | string | Launch/genesis date |
| `algorithm` / `proofType` | string | Hashing algorithm and consensus |
| `socialStats` | object | Reddit subscribers, Twitter followers, page views |
| `exchangesCount` / `tradingPairsCount` | number | Exchanges and pairs |
| `scrapedAt` | string | Timestamp |

### Example Input

```json
{
  "coinSymbols": ["BTC", "ETH", "SOL", "ADA", "DOT"],
  "maxRequestsPerCrawl": 50,
  "useApifyProxy": true
}
```

### Example Output

```json
{
  "symbol": "BTC",
  "name": "Bitcoin",
  "url": "https://www.cryptocompare.com/coins/btc/overview",
  "priceUsd": 78024.71,
  "marketCap": 1566000000000,
  "circulatingSupply": 20077590,
  "totalSupply": 20077590,
  "maxSupply": 20999999.9769,
  "startDate": "2009-01-03",
  "algorithm": "SHA-256",
  "proofType": "Proof of Work",
  "socialStats": {
    "redditSubscribers": 8096559,
    "twitterFollowers": 8434938,
    "cryptocomparePageViews": 75182619
  },
  "exchangesCount": 809,
  "tradingPairsCount": 809,
  "scrapedAt": "2024-01-15T10:30:00.000Z"
}
```

### Integrations & Automation

Results are available via the Apify API and export as JSON/CSV/Excel. **Schedule daily runs** in Apify Console to track price, market cap and supply changes over time.

### Related Actors

Verified related actors on Apify that pair well with this one. All links point to real, publicly available actors.

- [CoinMarketCap Crypto Scraper](https://apify.com/louisdeconinck/coinmarketcap-crypto-scraper)
- [CoinGecko Crypto Intelligence](https://apify.com/benthepythondev/coingecko-crypto-intelligence)
- [Binance Ticker Scraper](https://apify.com/andok/binance-ticker-scraper)

### FAQ

#### Why use this actor instead of the official CryptoCompare API?

The full CryptoCompare API and real-time WebSocket feed are paid. This actor extracts the public **server-rendered** data (price, market cap, supply, social stats, exchange/pair counts) from the website with no API key and no API subscription.

#### Does this require an API key?

No. It scrapes the public website and extracts embedded JSON data — no API key needed.

#### How fresh is the data?

Data is scraped in real-time from CryptoCompare; prices on the source update every few minutes.

#### Can I scrape all 1,600+ coins?

Yes. Set `maxRequestsPerCrawl` high and provide the symbols you want. Larger runs use more compute.

#### Why are some fields missing?

CryptoCompare streams some granular data via WebSocket. This actor captures the server-rendered data (most fundamentals). Real-time price feeds require their paid API.

### SEO Keywords

cryptocompare scraper, crypto market data api, cryptocurrency prices scraper, coin market data, crypto exchange listings, crypto trading pairs data, bitcoin price scraper, ethereum market data, crypto supply data, crypto social stats, cryptocurrency market cap data, crypto portfolio data, defi analytics data, crypto data api alternative, coin fundamentals scraper

### For AI Agents & LLM Apps

**Purpose:** Return structured CryptoCompare market data for one or more coins — price USD, market cap, supply, fundamentals, social stats and exchange/pair counts.

**Minimal working input:**

```json
{
  "coinSymbols": ["BTC", "ETH"],
  "maxRequestsPerCrawl": 5
}
```

**Output fields:** `symbol`, `name`, `url`, `priceUsd`, `marketCap`, `circulatingSupply`, `totalSupply`, `maxSupply`, `startDate`, `algorithm`, `proofType`, `socialStats`, `exchangesCount`, `tradingPairsCount`, `scrapedAt`.

**Behaviors an agent should know:**

- `coinSymbols` is the primary input; leave it **empty to default to the top 20 coins**.
- `maxRequestsPerCrawl` caps the number of coin pages (max 500).

**Billing:** Compute-based — free tier up to ~10 coins per run; paid runs billed on Apify compute units (≈0.5–1 CU per 10 coins depending on proxy usage).

### Legal & Compliance Disclaimer

This actor is an independent tool and is **not affiliated with, endorsed by, or sponsored by CryptoCompare**. It accesses publicly available coin pages and extracts embedded data (no login bypass, no CAPTCHA solving). You are responsible for compliance with CryptoCompare's Terms of Service, robots.txt and applicable law, including data-protection rules where relevant.

# Actor input Schema

## `coinSymbols` (type: `array`):

List of cryptocurrency symbols to scrape (e.g. BTC, ETH, SOL). If empty, defaults to top 20 coins.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of coin pages to scrape.

## `useApifyProxy` (type: `boolean`):

Whether to route requests through Apify proxy.

## Actor input object example

```json
{
  "coinSymbols": [
    "BTC",
    "ETH",
    "BNB",
    "SOL",
    "XRP",
    "ADA",
    "DOGE",
    "AVAX",
    "DOT",
    "MATIC",
    "SHIB",
    "LTC",
    "BCH",
    "ATOM",
    "XLM",
    "UNI",
    "ALGO",
    "FIL",
    "AAVE",
    "NEAR"
  ],
  "maxRequestsPerCrawl": 100,
  "useApifyProxy": 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 = {
    "coinSymbols": [
        "BTC",
        "ETH",
        "BNB",
        "SOL",
        "XRP",
        "ADA",
        "DOGE",
        "AVAX",
        "DOT",
        "MATIC",
        "SHIB",
        "LTC",
        "BCH",
        "ATOM",
        "XLM",
        "UNI",
        "ALGO",
        "FIL",
        "AAVE",
        "NEAR"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmed_jasarevic/cryptocompare-scraper").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 = { "coinSymbols": [
        "BTC",
        "ETH",
        "BNB",
        "SOL",
        "XRP",
        "ADA",
        "DOGE",
        "AVAX",
        "DOT",
        "MATIC",
        "SHIB",
        "LTC",
        "BCH",
        "ATOM",
        "XLM",
        "UNI",
        "ALGO",
        "FIL",
        "AAVE",
        "NEAR",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ahmed_jasarevic/cryptocompare-scraper").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 '{
  "coinSymbols": [
    "BTC",
    "ETH",
    "BNB",
    "SOL",
    "XRP",
    "ADA",
    "DOGE",
    "AVAX",
    "DOT",
    "MATIC",
    "SHIB",
    "LTC",
    "BCH",
    "ATOM",
    "XLM",
    "UNI",
    "ALGO",
    "FIL",
    "AAVE",
    "NEAR"
  ]
}' |
apify call ahmed_jasarevic/cryptocompare-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmed_jasarevic/cryptocompare-scraper"
        }
    }
}

```

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/ApdBYTZzxnoKm786m/builds/ehZ7lBqvlJQmdiJwb/openapi.json
