# CoinGecko Markets Scraper - Crypto Prices & Market Data (`thirdwatch/coingecko-markets-scraper`) Actor

Export cryptocurrency prices, market caps, volume, supply, 24-hour changes, all-time highs and lows, and market ranks from CoinGecko's API.

- **URL**: https://apify.com/thirdwatch/coingecko-markets-scraper.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## CoinGecko Markets Scraper

> Export CoinGecko cryptocurrency prices, market caps, rankings, volume, supply, 24-hour changes, and historical extremes.

### What you get

Collect exact coins, a CoinGecko category, or ranked markets as clean Apify dataset rows. Choose the quote currency and ordering for repeatable portfolio snapshots, alerts, spreadsheets, dashboards, and warehouse feeds.

### Output fields

| Field | Description |
|---|---|
| `id` | CoinGecko coin ID |
| `symbol` | Trading symbol |
| `name` | Coin name |
| `image_url` | Coin image URL |
| `currency` | Requested quote currency |
| `current_price` | Current price |
| `market_cap` | Market capitalization |
| `market_cap_rank` | Market-cap rank |
| `fully_diluted_valuation` | Fully diluted valuation |
| `total_volume` | Reported 24-hour volume |
| `high_24h`, `low_24h` | 24-hour price range |
| `price_change_24h` | Absolute 24-hour price change |
| `price_change_percentage_24h` | Percentage 24-hour price change |
| `market_cap_change_24h` | Absolute 24-hour market-cap change |
| `market_cap_change_percentage_24h` | Percentage market-cap change |
| `circulating_supply` | Circulating supply |
| `total_supply`, `max_supply` | Total and maximum supply |
| `ath`, `ath_change_percentage`, `ath_date` | All-time-high data |
| `atl`, `atl_change_percentage`, `atl_date` | All-time-low data |
| `last_updated` | Source update timestamp |
| `source_url` | Coin page |
| `source` | Data-source name |

### Example output

```json
{
  "id": "bitcoin",
  "symbol": "btc",
  "name": "Bitcoin",
  "currency": "usd",
  "current_price": 118250,
  "market_cap_rank": 1,
  "total_volume": 42100000000,
  "price_change_percentage_24h": 1.25,
  "last_updated": "2026-07-21T03:58:12.000Z"
}
```

### Input parameters

| Parameter | Required | Description |
|---|---|---|
| `coinIds` | No | Exact IDs such as `bitcoin` or `ethereum`; empty means ranked markets |
| `vsCurrency` | No | Quote currency such as `usd`, `eur`, or `inr`; defaults to `usd` |
| `category` | No | Optional CoinGecko category slug |
| `order` | No | `market_cap_desc`, `market_cap_asc`, `volume_desc`, `volume_asc`, `id_desc`, or `id_asc` |
| `maxResults` | No | Maximum records; defaults to 20 |
| `apiKey` | No | Optional CoinGecko Demo API key for a higher upstream allowance |

### Use cases

- Analysts: build scheduled market snapshots and comparison tables.
- Portfolio teams: feed prices and market movements into dashboards.
- Developers: power alerts and downstream automations from a stable dataset.
- Researchers: compare market-cap, volume, and supply across a category.

### Limitations

CoinGecko controls availability and request allowances. A keyless run is suitable for bounded use; sustained schedules may need your Demo key. Prices can change rapidly, categories and IDs follow CoinGecko naming, and the output is informational rather than financial advice.

### Compared to alternatives

Compared with `real1ty/coingecko`, this Actor focuses on the markets workflow with a small, predictable input. Compared with `benthepythondev/crypto-intelligence`, it exposes supply, historical extremes, category filtering, ordering, and optional authenticated capacity in one dataset.

### FAQ

#### Do I need an API key?

Not for the default bounded run. Add a CoinGecko Demo key for higher upstream usage.

#### Can I request Bitcoin and Ethereum only?

Yes. Set `coinIds` to `bitcoin` and `ethereum`.

#### Can I schedule price snapshots?

Yes. Save an Apify Task and attach the frequency that fits your source allowance.

Explore more at [thirdwatch.dev](https://thirdwatch.dev). Related Actors: [Google Search Scraper](https://apify.com/thirdwatch/google-search-scraper), [Google News Scraper](https://apify.com/thirdwatch/google-news-scraper), and [Trade Data Scraper](https://apify.com/thirdwatch/trade-data-scraper).

Last verified: 2026-07

# Actor input Schema

## `coinIds` (type: `array`):

Optional IDs such as bitcoin, ethereum, or solana. Leave empty for ranked markets.

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

Currency for prices and market values, such as usd, eur, or inr.

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

Optional CoinGecko category slug such as decentralized-finance-defi.

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

Choose how returned markets are sorted.

## `maxResults` (type: `integer`):

Maximum coin market records to save.

## `apiKey` (type: `string`):

Optional key for a higher upstream request allowance.

## Actor input object example

```json
{
  "coinIds": [
    "bitcoin",
    "ethereum"
  ],
  "vsCurrency": "usd",
  "category": "",
  "order": "market_cap_desc",
  "maxResults": 20
}
```

# 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 = {
    "coinIds": [
        "bitcoin",
        "ethereum"
    ],
    "vsCurrency": "usd",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/coingecko-markets-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 = {
    "coinIds": [
        "bitcoin",
        "ethereum",
    ],
    "vsCurrency": "usd",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/coingecko-markets-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 '{
  "coinIds": [
    "bitcoin",
    "ethereum"
  ],
  "vsCurrency": "usd",
  "maxResults": 20
}' |
apify call thirdwatch/coingecko-markets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thirdwatch/coingecko-markets-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/QZeaVhBzKTiTUu73H/builds/r0EDUN9loBOMhMNPp/openapi.json
