# CoinGecko Cryptocurrency Scraper (`parseforge/coingecko-scraper`) Actor

Scrape cryptocurrency market data from CoinGecko. Get prices, market cap, volume, supply, ATH/ATL, price changes (1h to 1y), sparkline charts, and ROI for 15,000+ coins. Filter by currency, category, and sort order.

- **URL**: https://apify.com/parseforge/coingecko-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

![ParseForge Banner](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)

## 💰 CoinGecko Cryptocurrency Scraper

Whether you're a crypto trader tracking market movements, a researcher analyzing token economics, or a developer building portfolio tools, this scraper delivers comprehensive market data for 15,000+ cryptocurrencies.

> **The CoinGecko Scraper collects real-time prices, market cap, volume, supply data, ATH/ATL records, price changes across multiple timeframes, and sparkline charts for any cryptocurrency. Filter by currency, category, and sort order.**

### ✨ What Does It Do

- 💰 **Market data** - current price, market cap, volume, and fully diluted valuation for thousands of coins
- 📈 **Price changes** - percentage changes over 1h, 24h, 7d, 14d, 30d, and 1 year
- 📊 **Supply metrics** - circulating, total, and max supply for each token
- 🏆 **ATH/ATL tracking** - all-time high and low prices with dates and change percentages
- 📉 **Sparkline data** - 7-day price history arrays for chart rendering
- 🔍 **Category filtering** - filter by DeFi, NFT, gaming, layer-1, stablecoins, and more

### 🔧 Input

- **Max Items** - how many coins to collect (free users get 10 items, paid users up to 1,000,000)
- **VS Currency** - base currency for prices (usd, eur, gbp, btc, eth, etc.)
- **Category** - filter by coin category (e.g., decentralized-finance-defi, gaming)
- **Order** - sort by market cap, volume, or price change

```json
{
    "maxItems": 100,
    "vsCurrency": "usd",
    "order": "market_cap_desc"
}
````

### 📊 Output

Each coin includes 30+ data fields. Download as JSON, CSV, or Excel.

```json
{
    "imageUrl": "https://assets.coingecko.com/coins/images/1/large/bitcoin.png",
    "id": "bitcoin",
    "symbol": "btc",
    "name": "Bitcoin",
    "currentPrice": 67234.00,
    "marketCap": 1324567890123,
    "marketCapRank": 1,
    "totalVolume": 28456789012,
    "priceChangePercentage24h": 2.45,
    "priceChangePercentage7d": -1.23,
    "circulatingSupply": 19700000,
    "maxSupply": 21000000,
    "ath": 73750.07,
    "athDate": "2024-03-14T07:10:36.635Z",
    "scrapedAt": "2026-04-08T12:00:00.000Z"
}
```

### 📋 How to Use

1. **Sign Up** - [Create a free account w/ $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp)
2. **Configure** - set your currency, category filter, and how many coins you want
3. **Run It** - click "Start" and get structured crypto data in seconds

### 🎯 Business Use Cases

- 📊 **Traders** - monitor price movements and market cap changes across hundreds of tokens
- 🏗️ **DeFi builders** - track TVL, token prices, and supply metrics for protocol dashboards
- 📈 **Analysts** - compare performance across categories like DeFi, gaming, and layer-1s
- 💼 **Portfolio tools** - build real-time portfolio trackers with comprehensive market data
- 🔬 **Researchers** - analyze market trends, correlations, and historical ATH/ATL patterns

### 🔗 Integrate with any app

- [Make](https://docs.apify.com/platform/integrations/make) - Automate crypto data workflows
- [Zapier](https://docs.apify.com/platform/integrations/zapier) - Sync market data to your tools
- [Slack](https://docs.apify.com/platform/integrations/slack) - Get price alerts in your channel
- [Google Drive](https://docs.apify.com/platform/integrations/drive) - Export to spreadsheets
- [Webhooks](https://docs.apify.com/platform/integrations/webhooks) - Trigger actions on price changes

### 💡 Recommended Actors

| Actor | Description | Link |
|-------|-------------|------|
| BLS Wage Data Scraper | Get employment and wage statistics | [Link](https://apify.com/parseforge/bls-wage-data-scraper) |
| FRED Economic Data Scraper | Federal Reserve economic data | [Link](https://apify.com/parseforge/fred-scraper) |
| OpenFDA Drug Scraper | FDA drug labels and adverse events | [Link](https://apify.com/parseforge/openfda-drug-scraper) |
| SEC EDGAR Full Text Search | Search SEC filings | [Link](https://apify.com/parseforge/sec-edgar-full-text-search-scraper) |
| ESPN Sports Scraper | Live scores, standings, rosters | [Link](https://apify.com/parseforge/espn-sports-scraper) |

### 🆘 Need Help?

- Visit the [Apify documentation](https://docs.apify.com) for platform guides
- Contact us at [Tally contact form](https://tally.so/r/BzdKgA)

### ⚠️ Disclaimer

> This Actor is an independent tool and is not affiliated with, endorsed by, or connected to CoinGecko. It accesses only publicly available data through official public APIs.

# Actor input Schema

## `vsCurrency` (type: `string`):

The target currency to display prices in

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000

## `category` (type: `string`):

Filter by coin category slug (e.g. decentralized-finance-defi, smart-contract-platform, layer-2). Leave empty to get all coins.

## `order` (type: `string`):

Sort coins by this field

## Actor input object example

```json
{
  "vsCurrency": "usd",
  "maxItems": 10,
  "order": "market_cap_desc"
}
```

# Actor output Schema

## `overview` (type: `string`):

Overview of scraped cryptocurrency data

## `fullData` (type: `string`):

Complete dataset with all scraped coin fields

# 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 = {
    "vsCurrency": "usd",
    "maxItems": 10,
    "order": "market_cap_desc"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/coingecko-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 = {
    "vsCurrency": "usd",
    "maxItems": 10,
    "order": "market_cap_desc",
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/coingecko-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "vsCurrency": "usd",
  "maxItems": 10,
  "order": "market_cap_desc"
}' |
apify call parseforge/coingecko-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/coingecko-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CoinGecko Cryptocurrency Scraper",
        "description": "Scrape cryptocurrency market data from CoinGecko. Get prices, market cap, volume, supply, ATH/ATL, price changes (1h to 1y), sparkline charts, and ROI for 15,000+ coins. Filter by currency, category, and sort order.",
        "version": "0.0",
        "x-build-id": "atKV37pZ0DxteI1va"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~coingecko-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-coingecko-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~coingecko-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-coingecko-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~coingecko-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-coingecko-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "vsCurrency": {
                        "title": "VS Currency",
                        "enum": [
                            "usd",
                            "eur",
                            "gbp",
                            "jpy",
                            "btc",
                            "eth"
                        ],
                        "type": "string",
                        "description": "The target currency to display prices in",
                        "default": "usd"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
                    },
                    "category": {
                        "title": "Category",
                        "type": "string",
                        "description": "Filter by coin category slug (e.g. decentralized-finance-defi, smart-contract-platform, layer-2). Leave empty to get all coins."
                    },
                    "order": {
                        "title": "Sort Order",
                        "enum": [
                            "market_cap_desc",
                            "market_cap_asc",
                            "volume_desc",
                            "volume_asc"
                        ],
                        "type": "string",
                        "description": "Sort coins by this field",
                        "default": "market_cap_desc"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
