# CoinGecko Crypto Markets Scraper — Prices, Market Cap & Toke (`spotless_studios/coingecko-crypto-scraper`) Actor

Scrape live cryptocurrency prices, market cap rankings, 24h trading volume, price fluctuations (1h, 24h, 7d), supply dynamics, and ATH/ATL statistics from CoinGecko.

- **URL**: https://apify.com/spotless_studios/coingecko-crypto-scraper.md
- **Developed by:** [Spotless Studios](https://apify.com/spotless_studios) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 crypto token extracteds

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## CoinGecko Crypto Markets & Token Velocity Scraper

Extract structured real-time cryptocurrency data from CoinGecko. Track coin prices, 24h trading volume, market capitalization rankings, multi-timeframe percentage changes (1h, 24h, 7d), supply dynamics, and ATH/ATL records.

### Features

- **Live Market Telemetry**: Extract cryptocurrency name, symbol, current price, market cap rank, 24h trading volume, 24h high/low, and 1-hour, 24-hour, and 7-day price percentage movements.
- **Sector & Category Screening**: Filter tokens by sector slugs such as `decentralized-finance-defi`, `artificial-intelligence`, `meme-token`, `layer-1`, and `solana-ecosystem`.
- **Target Currency Flexibility**: Supports USD, EUR, GBP, BTC, ETH, and other major fiat/crypto reference currencies.
- **Monitoring & Token Discovery**: Enable `onlyNewItems` with a `stateKey` to automatically discover and alert on newly listed tokens matching your liquidity and volume thresholds.
- **Pay-Per-Event Billing**: Highly cost-effective consumption billing with minimal memory footprint (128 MB), zero browser overhead.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `currency` | String | `"usd"` | Base currency for pricing (`usd`, `eur`, `btc`, etc.) |
| `category` | String | `""` | Sector filter (e.g. `artificial-intelligence`, `meme-token`) |
| `order` | String | `"market_cap_desc"` | Sort order (`market_cap_desc`, `volume_desc`, etc.) |
| `minMarketCap` | Integer | `0` | Minimum market cap threshold |
| `minVolume24h` | Integer | `0` | Minimum 24h trading volume threshold |
| `coinIds` | Array | `[]` | Explicit list of token IDs (e.g. `["bitcoin", "solana"]`) |
| `maxResults` | Integer | `100` | Maximum tokens to extract |
| `onlyNewItems` | Boolean | `false` | Monitoring mode: only emit newly tracked coins |
| `outputPreset` | String | `"full"` | `full`, `lean`, or `contacts` |

### Output Example

```json
{
  "coinId": "bitcoin",
  "symbol": "BTC",
  "name": "Bitcoin",
  "currentPrice": 96540,
  "marketCap": 1902000000000,
  "marketCapRank": 1,
  "totalVolume24h": 42100000000,
  "high24h": 97800,
  "low24h": 95200,
  "priceChangePct24h": 1.45,
  "priceChangePct1h": 0.12,
  "priceChangePct7d": 4.80,
  "circulatingSupply": 19780000,
  "ath": 104500,
  "athChangePct": -7.62,
  "lastUpdated": "2026-10-27T12:00:00.000Z",
  "scrapedAt": "2026-10-27T12:00:00.000Z"
}
```

***

### More from Spotless Studios

**[All actors on Apify](https://apify.com/spotless_studios)** · Support: spotless.studios.info@gmail.com

| Actor | Best for |
|-------|----------|
| [SLED Government Bids](https://apify.com/spotless_studios/sled-procurement-scraper) | Daily US gov RFP / bid alerts |
| [Webflow Experts](https://apify.com/spotless_studios/webflow-experts-scraper) | Webflow agency & freelancer leads |
| [Stripe Partners](https://apify.com/spotless_studios/stripe-partners-scraper) | Stripe implementation partner lists |
| [UK Planning Applications](https://apify.com/spotless_studios/uk-planning-applications-scraper) | UK planning leads + agent contacts |
| [Product Hunt](https://apify.com/spotless_studios/product-hunt-scraper) | Every PH launch + makers / websites |
| [Duunitori Jobs](https://apify.com/spotless_studios/duunitori-jobs-scraper) | Finland job listings |
| [Clutch Agencies](https://apify.com/spotless_studios/clutch-agencies-scraper) | Clutch agency prospecting |
| [Skool Communities](https://apify.com/spotless_studios/skool-communities-scraper) | Skool community & creator leads |

# Actor input Schema

## `searchQuery` (type: `string`):

Optional keyword search to discover matching coins/tokens via CoinGecko Search (e.g. 'ai', 'depin', 'solana', 'pepe'). Leave empty to browse top coins by market cap.

## `searchQueries` (type: `array`):

Optional list of multiple search keywords to resolve in a single run.

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

Fiat or crypto currency for price & market cap calculation.

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

Filter by CoinGecko category slug (e.g. 'artificial-intelligence', 'decentralized-finance-defi', 'layer-1', 'meme-token', 'real-world-assets-rwa').

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

Sort cryptocurrencies by market cap or 24h volume.

## `minPrice` (type: `number`):

Minimum token price in target currency.

## `maxPrice` (type: `number`):

Maximum token price in target currency.

## `minMarketCap` (type: `number`):

Minimum market capitalization in target currency (e.g. 10000000 for 10M+).

## `maxMarketCap` (type: `number`):

Maximum market capitalization in target currency (useful for micro-cap screening).

## `minVolume24h` (type: `number`):

Minimum 24-hour trading volume.

## `minChange24hPct` (type: `number`):

Filter for 24h gainers (e.g. 10 for +10% or higher).

## `maxChange24hPct` (type: `number`):

Filter for 24h pullbacks (e.g. -10 for -10% or lower).

## `minChange7dPct` (type: `number`):

Minimum 7-day percentage price change.

## `maxChange7dPct` (type: `number`):

Maximum 7-day percentage price change.

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

Scrape specific coins directly by CoinGecko ID or URL (e.g. 'bitcoin', 'ethereum', 'https://www.coingecko.com/en/coins/solana').

## `includeCoinDetails` (type: `boolean`):

Fetch each coin's metadata profile to enrich records with homepage, twitterHandle, telegramChannel, subredditUrl, githubRepos, categories, and genesisDate.

## `includeKeywords` (type: `array`):

Keep only coins matching these keywords or /regex/ in symbol, name, ID, or categories.

## `excludeKeywords` (type: `array`):

Skip coins matching any of these keywords or /regex/.

## `keywordMatch` (type: `string`):

Require any or all includeKeywords to match.

## `onlyNewItems` (type: `boolean`):

Remember seen coin IDs across runs and emit only newly listed or newly matching tokens.

## `stateKey` (type: `string`):

Separate state key per saved search or schedule.

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

Maximum number of coins to extract.

## `outputPreset` (type: `string`):

Choose full record, lean summary, or contacts & links only.

## `outputFields` (type: `array`):

Keep only these specific fields in each saved record.

## `excludeFields` (type: `array`):

Remove specific fields from each saved record.

## `includeEmptyFields` (type: `boolean`):

When disabled, strips null and empty values from each saved record.

## `requiredFields` (type: `array`):

Only save records where every listed field has a non-empty value.

## `maxPages` (type: `integer`):

Maximum pages to scan (250 coins per page).

## `maxRequestRetries` (type: `integer`):

Retries per failed or rate-limited HTTP request.

## `requestTimeoutSecs` (type: `integer`):

Timeout per HTTP request.

## `proxyConfiguration` (type: `object`):

Optional proxy settings.

## `proxyEscalation` (type: `boolean`):

Automatically step up from direct to Apify datacenter/residential proxies if rate-limited.

## Actor input object example

```json
{
  "currency": "usd",
  "order": "market_cap_desc",
  "includeCoinDetails": false,
  "keywordMatch": "any",
  "onlyNewItems": false,
  "stateKey": "default",
  "maxResults": 100,
  "outputPreset": "full",
  "includeEmptyFields": true,
  "maxPages": 10,
  "maxRequestRetries": 3,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyEscalation": true
}
```

# Actor output Schema

## `items` (type: `string`):

Scrape live cryptocurrency prices, market cap rankings, 24h trading volume, price fluctuations (1h, 24h, 7d), supply dynamics, and ATH/ATL statistics from CoinGecko.

# 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 = {
    "currency": "usd",
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("spotless_studios/coingecko-crypto-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 = {
    "currency": "usd",
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("spotless_studios/coingecko-crypto-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 '{
  "currency": "usd",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call spotless_studios/coingecko-crypto-scraper --silent --output-dataset

```

## MCP server setup

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