# Crypto Market Data Scraper (`mina_safwat/crypto-market-scraper`) Actor

Live crypto prices, market caps, trending coins, price history, exchanges, and sector categories — for thousands of coins

- **URL**: https://apify.com/mina\_safwat/crypto-market-scraper.md
- **Developed by:** [Mina](https://apify.com/mina_safwat) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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

Live **cryptocurrency prices and market data** — thousands of coins with market caps, volumes, price changes, all-time highs, and full price history. No API key needed.

### What does Crypto Market Data Scraper do?

Six views of the crypto market, each a mode you choose:

- **Top coins by market cap** — the whole ranked market, with prices and changes over 1h, 24h, 7d, 30d, and 1y.
- **Specific coins** — just the ones you name.
- **Trending** — what people are searching for right now.
- **Price history** — a price, market cap, and volume series for any coin.
- **Exchanges** — trading platforms ranked by trust score and volume.
- **Categories** — coins grouped by sector, such as Layer 1 or DeFi.
- **Global market** — one summary row: total market cap, volume, and Bitcoin dominance.

### Why use Crypto Market Data Scraper?

- **Portfolio tracking** — price a whole watchlist on a schedule and keep the history.
- **Dashboards** — feed live prices into Sheets, a BI tool, or your own app.
- **Screening** — find coins by market cap, volume, or how far they sit below their all-time high.
- **Backtesting and analysis** — download years of daily prices for any coin.
- **Market research** — track which sectors and exchanges are growing.

Running it on Apify adds scheduling, an API, integrations (Sheets, Slack, Zapier, S3), and run monitoring.

### How to use Crypto Market Data Scraper

1. Pick **What to get** — start with Top coins by market cap.
2. Choose a **Currency**.
3. Set **Max results**, or list your **Coin IDs** for the coin-specific modes.
4. Click **Start**.

Results appear in the Output tab as they arrive, and download as JSON, CSV, Excel, or XML.

### Input

| Field | Description |
| --- | --- |
| `mode` | Which of the six views to get. |
| `coin_ids` | CoinGecko ids such as `bitcoin`, `ethereum`. See the note below — these are not tickers. |
| `currency` | Any major currency, or price in BTC or ETH. |
| `max_results` | Row cap for Top coins, Exchanges, and Categories. |
| `history_days` | How far back Price history goes. |
| `api_key` | Optional free Demo key to lift the rate limit. |

#### Coin IDs are not ticker symbols

Use `bitcoin`, not `BTC`. The id is the name in the coin's CoinGecko URL — `coingecko.com/en/coins/`**`binancecoin`**. If you pass a ticker by mistake the run tells you which ones it could not find, rather than quietly returning fewer rows.

### Output

```json
{
  "coin_id": "bitcoin",
  "symbol": "BTC",
  "name": "Bitcoin",
  "rank": 1,
  "price": 77267.0,
  "currency": "USD",
  "market_cap": 1551049444211,
  "volume_24h": 42000000000,
  "change_24h_pct": 2.4,
  "change_7d_pct": -5.1,
  "all_time_high": 124000,
  "pct_below_all_time_high": -38.2,
  "circulating_supply": 19800000,
  "max_supply": 21000000
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Data fields

| Field | Description |
| --- | --- |
| `coin_id`, `symbol`, `name`, `rank`, `image` | Which coin, and where it ranks. |
| `price`, `currency`, `high_24h`, `low_24h` | Current price and today's range. |
| `change_1h_pct` … `change_1y_pct` | Price change over each window. |
| `market_cap`, `fully_diluted_valuation`, `volume_24h` | Size and activity. |
| `all_time_high`, `all_time_high_date`, `pct_below_all_time_high` | Peak price and how far below it sits now. |
| `circulating_supply`, `total_supply`, `max_supply` | Token supply. |
| `timestamp`, `price`, `market_cap`, `volume` | Price history rows. |
| `exchange_id`, `trust_score`, `volume_24h_btc` | Exchange rows. |
| `total_market_cap`, `btc_dominance_pct` | Global market row. |

### How much does it cost to scrape crypto data?

Coins come back 250 at a time, so even the whole top 1,000 is a handful of requests. Price history over a long window is the heaviest mode, since it returns one row per data point.

### Tips

- **Schedule it** with the same coin list and the dataset becomes your own price history.
- **Price in BTC or ETH** by setting the currency — useful for seeing which coins are actually outperforming.
- **`pct_below_all_time_high` is a good screen** for finding coins far off their peak.
- **Add a free Demo key** if you run large jobs often; it lifts the rate limit noticeably.

### FAQ and support

**Does it need an API key?** No. A free Demo key is optional and only raises the rate limit.

**Why did a run pause partway through?** The free tier allows a few calls a minute. When that limit is hit the Actor waits and carries on rather than failing — you will see a note in the log.

**Why is a field empty?** Not every coin reports every figure. Newer or smaller tokens often have no max supply or no long-range price change, and those come back empty rather than as zero.

**How current are the prices?** They are the latest CoinGecko publishes, typically updated every minute or two. Not suitable for trading on tick-by-tick.

**Can I use this data commercially?** The data comes from CoinGecko and their terms govern how you may use and redistribute it. Nothing here is financial advice. Consult a lawyer if you are unsure.

Found a bug or want a field that is missing? Open an issue on the Actor's Issues tab.

# Actor input Schema

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

Top coins ranks the market. Specific coins looks up exactly the ones you name. Trending is what people are searching for right now. Price history returns a chart series. Exchanges ranks trading platforms. Categories groups coins by sector. Global market is one summary row for the whole market.

## `coin_ids` (type: `array`):

CoinGecko ids — the name in the coin’s CoinGecko URL, such as "bitcoin" or "binancecoin". These are not ticker symbols: use "bitcoin", not "BTC". Needed for Specific coins and Price history.

## `currency` (type: `string`):

Currency all prices and market caps are shown in. You can also price in BTC or ETH.

## `max_results` (type: `integer`):

Stops after this many rows. Used by Top coins, Exchanges, and Categories.

## `history_days` (type: `integer`):

How far back Price history goes. Up to 90 days returns hourly points; longer returns daily.

## `api_key` (type: `string`):

Optional. CoinGecko’s free public access is limited to a few calls a minute, which is fine for small runs. A free Demo key from coingecko.com raises that limit and makes large runs faster and more reliable.

## Actor input object example

```json
{
  "mode": "Top coins by market cap",
  "coin_ids": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "currency": "usd",
  "max_results": 100,
  "history_days": 30
}
```

# Actor output Schema

## `dataset` (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 = {
    "coin_ids": [
        "bitcoin",
        "ethereum",
        "solana"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mina_safwat/crypto-market-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 = { "coin_ids": [
        "bitcoin",
        "ethereum",
        "solana",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/crypto-market-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 '{
  "coin_ids": [
    "bitcoin",
    "ethereum",
    "solana"
  ]
}' |
apify call mina_safwat/crypto-market-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mina_safwat/crypto-market-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/drdtE3MbM1LO9mBSW/builds/CvjysacO3PtUf6q3G/openapi.json
