# 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:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 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

> 🚀 Collect real-time prices, market cap, volume, supply metrics, and ATH/ATL records for 15,000+ cryptocurrencies. Filter by category, sort by market cap or volume, and export in seconds.

> 🕒 Last updated: 2026-04-17


<table><tr>
<td style="border-left:4px solid #0F766E;padding:12px 16px;font-weight:600">Pull structured records from CoinGecko Cryptocurrency — clean fields ready as CSV, JSON, JSONL, Excel, or XML for downstream pipelines.</td>
</tr></table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

````

parseforge/coingecko-scraper on Apify. Call: ApifyClient("TOKEN").actor("parseforge/coingecko-scraper").call(run\_input={...}), then client.dataset(run\["defaultDatasetId"]).list\_items().items for results. Key inputs: vsCurrency (string, default "usd"), maxItems (integer, default 10), category (string), order (string, default "market\_cap\_desc"). Full actor spec: fetch build via GET https://api.apify.com/v2/acts/parseforge~coingecko-scraper (Bearer TOKEN). Get token: https://console.apify.com/account/integrations

````

CoinGecko Scraper pulls live market data for thousands of cryptocurrencies. Each record includes the current price, market cap, 24h trading volume, fully diluted valuation, circulating and max supply, all-time high and low with dates, price change percentages across six timeframes (1h, 24h, 7d, 14d, 30d, 1y), and 7-day sparkline data for charting. You can filter by category (DeFi, gaming, layer-1, stablecoins) and sort by market cap or volume.

Crypto traders use this to monitor price movements across their watchlist. DeFi builders feed it into protocol dashboards. Analysts compare performance across token categories. Portfolio tool developers pull live data without managing API keys or rate limits. If you need structured crypto market data at scale, this actor handles the collection and delivers clean, ready-to-use records.

| Target | CoinGecko (15,000+ cryptocurrencies) |
|--------|-------------------------------|
| Use Cases | Portfolio tracking, market analysis, price monitoring, DeFi research |

---

### 📋 What it does

- 💰 **Live market data.** Current price, market cap, volume, and fully diluted valuation for each coin.
- 📈 **Multi-timeframe changes.** Price change percentages over 1h, 24h, 7d, 14d, 30d, and 1 year.
- 📊 **Supply metrics.** Circulating, total, and maximum supply for token economics analysis.
- 🏆 **ATH and ATL tracking.** All-time high and low prices with exact dates and distance from current price.
- 🔍 **Category filtering.** Narrow results to DeFi, gaming, smart contract platforms, layer-2, stablecoins, and more.

Each record represents one cryptocurrency with 30+ data points. Sparkline arrays provide 7-day price history for chart rendering right out of the box.

> 💡 **Why it matters:** Manually tracking prices and market caps across hundreds of tokens means switching between tabs and copying numbers. This actor delivers everything in a single structured dataset, updated on demand.

---

### 🎬 Full Demo

_🚧 Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded dataset._

---

### ⚙️ Input

<table>
<thead>
<tr><th>Input</th><th>Type</th><th>Default</th><th>Behavior</th></tr>
</thead>
<tbody>
<tr><td>vsCurrency</td><td>string</td><td>"usd"</td><td>Base currency for prices. Options: usd, eur, gbp, jpy, btc, eth.</td></tr>
<tr><td>maxItems</td><td>integer</td><td>10</td><td>Maximum coins to return. Free users are limited to 10. Paid users can set up to 1,000,000.</td></tr>
<tr><td>category</td><td>string</td><td>-</td><td>Filter by category slug (e.g. "decentralized-finance-defi", "gaming"). Leave empty for all coins.</td></tr>
<tr><td>order</td><td>string</td><td>"market_cap_desc"</td><td>Sort order. Options: market_cap_desc, market_cap_asc, volume_desc, volume_asc.</td></tr>
</tbody>
</table>

**Example: top 100 coins by market cap in USD.**

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

**Example: DeFi tokens sorted by volume.**

```json
{
  "vsCurrency": "usd",
  "category": "decentralized-finance-defi",
  "maxItems": 50,
  "order": "volume_desc"
}
```

> ⚠️ **Good to Know:** CoinGecko tracks over 15,000 cryptocurrencies. Large requests (1,000+ coins) may take a few minutes to complete. Category slugs can be found on the CoinGecko categories page.

***

### 📊 Output

Each record contains **30+ fields**. Download as CSV, Excel, JSON, or XML.

#### 🧾 Schema

| Field | Type | Example |
|---|---|---|
| 🖼️ imageUrl | string | `"https://assets.coingecko.com/coins/images/1/large/bitcoin.png"` |
| 🏷️ name | string | `"Bitcoin"` |
| 🔤 symbol | string | `"btc"` |
| 💰 currentPrice | number | `67234.00` |
| 📊 marketCap | number | `1324567890123` |
| 🏅 marketCapRank | integer | `1` |
| 📈 totalVolume | number | `28456789012` |
| 📉 priceChangePercentage24h | number | `2.45` |
| 🔄 circulatingSupply | number | `19700000` |
| 🏆 ath | number | `73750.07` |
| 📅 athDate | string | `"2024-03-14T07:10:36.635Z"` |
| 📉 atl | number | `67.81` |

#### 📦 Sample records

<details>
<summary><strong>💰 Bitcoin (BTC)</strong></summary>

```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,
  "fullyDilutedValuation": 1412034000000,
  "totalVolume": 28456789012,
  "high24h": 67890.00,
  "low24h": 65432.00,
  "priceChange24h": 1802.00,
  "priceChangePercentage24h": 2.45,
  "priceChangePercentage7d": -1.23,
  "priceChangePercentage14d": 5.67,
  "priceChangePercentage30d": 12.34,
  "priceChangePercentage1y": 89.45,
  "circulatingSupply": 19700000,
  "totalSupply": 19700000,
  "maxSupply": 21000000,
  "ath": 73750.07,
  "athChangePercentage": -8.83,
  "athDate": "2024-03-14T07:10:36.635Z",
  "atl": 67.81,
  "atlChangePercentage": 99012.34,
  "atlDate": "2013-07-06T00:00:00.000Z",
  "scrapedAt": "2026-04-17T12:00:00.000Z"
}
```

</details>

<details>
<summary><strong>💰 Ethereum (ETH)</strong></summary>

```json
{
  "imageUrl": "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
  "id": "ethereum",
  "symbol": "eth",
  "name": "Ethereum",
  "currentPrice": 3456.78,
  "marketCap": 415234567890,
  "marketCapRank": 2,
  "fullyDilutedValuation": 415234567890,
  "totalVolume": 15678901234,
  "high24h": 3520.00,
  "low24h": 3380.00,
  "priceChange24h": 76.78,
  "priceChangePercentage24h": 1.85,
  "priceChangePercentage7d": 3.42,
  "circulatingSupply": 120150000,
  "totalSupply": 120150000,
  "maxSupply": null,
  "ath": 4878.26,
  "athChangePercentage": -29.14,
  "athDate": "2021-11-10T14:24:19.604Z",
  "atl": 0.432979,
  "atlChangePercentage": 798234.56,
  "atlDate": "2015-10-20T00:00:00.000Z",
  "scrapedAt": "2026-04-17T12:00:00.000Z"
}
```

</details>

<details>
<summary><strong>💰 Solana (SOL)</strong></summary>

```json
{
  "imageUrl": "https://assets.coingecko.com/coins/images/4128/large/solana.png",
  "id": "solana",
  "symbol": "sol",
  "name": "Solana",
  "currentPrice": 142.56,
  "marketCap": 62345678901,
  "marketCapRank": 5,
  "fullyDilutedValuation": 82345678901,
  "totalVolume": 2345678901,
  "high24h": 145.20,
  "low24h": 138.90,
  "priceChange24h": 3.66,
  "priceChangePercentage24h": 2.64,
  "priceChangePercentage7d": -4.12,
  "circulatingSupply": 437500000,
  "totalSupply": 578000000,
  "maxSupply": null,
  "ath": 260.06,
  "athChangePercentage": -45.18,
  "athDate": "2021-11-06T21:54:35.825Z",
  "atl": 0.500801,
  "atlChangePercentage": 28367.89,
  "atlDate": "2020-05-11T19:35:23.449Z",
  "scrapedAt": "2026-04-17T12:00:00.000Z"
}
```

</details>

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 💰 | **15,000+ coins.** Access market data for virtually every listed cryptocurrency. |
| 📈 | **Six timeframes.** Price changes over 1h, 24h, 7d, 14d, 30d, and 1 year in one record. |
| 🏆 | **ATH and ATL records.** All-time high and low prices with exact dates for historical context. |
| 📊 | **Sparkline data.** 7-day price arrays ready for chart rendering without extra API calls. |
| 🔍 | **Category filtering.** Focus on DeFi, gaming, layer-1, or any other token category. |
| 💱 | **Multi-currency.** View prices in USD, EUR, GBP, JPY, BTC, or ETH. |
| ⚡ | **Fast collection.** Hundreds of coins returned in seconds with structured, consistent fields. |

> CoinGecko tracks over 15,000 cryptocurrencies across 800+ exchanges, making it one of the largest crypto data aggregators in the world.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Setup |
|---|---|---|---|---|
| **⭐ CoinGecko Scraper** *(this Actor)* | $5 free credit, then pay-per-use | 15,000+ coins, 30+ fields | **Live per run** | ⚡ 2 min |
| Official API (free tier) | Free | Rate-limited, fewer fields | Real-time | 15 min |
| Manual browsing | Free (your time) | One coin at a time | Manual | Slow |
| Third-party data providers | $100+/month | Varies | Hourly or daily | Hours |

Pick this actor when you need bulk crypto market data without managing API keys, rate limits, or pagination.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the CoinGecko Scraper page on the Apify Store.
3. 🎯 **Set input.** Choose your base currency, category filter, sort order, and max items.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 📈 Trading and Analytics

- Monitor price changes across your watchlist in real time
- Track volume spikes to identify momentum shifts
- Compare ATH distances to find undervalued tokens
- Build screeners filtered by category and market cap

</td>
<td width="50%" valign="top">

#### 🏗️ DeFi and Protocol Development

- Feed live token prices into protocol dashboards
- Track circulating supply changes for tokenomics modeling
- Monitor competitor token market caps and volumes
- Build automated alerts for price threshold crossings

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 📊 Research and Reporting

- Analyze performance trends across token categories
- Compare layer-1 vs layer-2 market cap ratios over time
- Study ATH/ATL patterns for market cycle research
- Generate weekly market summary reports automatically

</td>
<td width="50%" valign="top">

#### 🛠️ Portfolio and App Development

- Power real-time portfolio trackers with live price feeds
- Build comparison tools showing side-by-side token stats
- Create leaderboard views sorted by any metric
- Feed sparkline data into chart components directly

</td>
</tr>
</table>

***

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20CoinGecko%20Cryptocurrency%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20CoinGecko%20Cryptocurrency%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20CoinGecko%20Cryptocurrency%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20CoinGecko%20Cryptocurrency%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating CoinGecko Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

- 🟢 **Node.js.** Install the apify-client NPM package.
- 🐍 **Python.** Use the apify-client PyPI package.
- 📚 See the [Apify API documentation](https://docs.apify.com/api/v2) for full details.

The [Apify Schedules feature](https://docs.apify.com/platform/schedules) lets you trigger this Actor on any cron interval. Schedule hourly runs to build a historical crypto price database.

### 🔌 Integrate with any app

CoinGecko Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe data into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes.

***

### 🔗 Recommended Actors

- [**📊 FRED Economic Data Scraper**](https://apify.com/parseforge/fred-scraper) - Pull Federal Reserve economic time-series data
- [**💼 SEC EDGAR Full Text Search**](https://apify.com/parseforge/sec-edgar-full-text-search-scraper) - Search SEC filings by keyword
- [**📈 BLS Wage Data Scraper**](https://apify.com/parseforge/bls-wage-data-scraper) - Get employment and wage statistics
- [**🏥 OpenFDA Drug Scraper**](https://apify.com/parseforge/openfda-drug-scraper) - FDA drug labels and adverse events
- [**⚽ ESPN Sports Scraper**](https://apify.com/parseforge/espn-sports-scraper) - Live scores, standings, and rosters

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more data scrapers and tools.

***

**🆘 Need Help?** [**Open our contact form**](https://tally.so/r/BzdKgA) to request a new scraper, propose a custom data project, or report an issue.

***

> **⚠️ Disclaimer:** this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by CoinGecko. All trademarks mentioned are the property of their respective owners. Only publicly available data is collected.

# 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": "634ZM5k0My9Mchv62"
    },
    "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
