# Crypto Market Data - Prices, Market Cap and Trending Coins (`turboextract/crypto-market-data`) Actor

Export live cryptocurrency market data from CoinGecko: price, market cap, rank, volume, 1h/24h/7d/30d change, supply and all-time high for the top coins, a category or your own list, plus trending coins. Any fiat currency. No API key.

- **URL**: https://apify.com/turboextract/crypto-market-data.md
- **Developed by:** [Moses Ndambuki](https://apify.com/turboextract) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 coin delivereds

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

## Crypto Market Data: Prices, Market Cap, Volume and Trending Coins

**Export live cryptocurrency market data from CoinGecko: price, market cap, rank, 24h volume, 1h/24h/7d/30d/1y change, supply and all-time high and low.** Pull the top coins by market cap, one category like layer-1 or meme tokens, your own coin list, or what's trending right now. Any currency. No API key.

In one test, the top 30 coins plus Solana, Pepe and the 15 trending coins returned 41 rows in about 5 seconds.

***

### Who this is for

- **Crypto traders and analysts** tracking prices and momentum in a spreadsheet
- **Fintech and dashboard builders** who need a simple market data feed
- **Researchers** studying market cap, supply and drawdowns
- **Content creators** writing daily market recaps
- **AI teams** feeding market context into agents

***

### What you get

```json
{
  "id": "bitcoin",
  "symbol": "BTC",
  "name": "Bitcoin",
  "rank": 1,
  "currency": "usd",
  "price": 60560,
  "marketCap": 1218213635410,
  "volume24h": 28407135282,
  "change1hPct": -0.09,
  "change24hPct": 0.34,
  "change7dPct": -6.24,
  "change30dPct": -25.46,
  "circulatingSupply": 20115865,
  "maxSupply": 21000000,
  "allTimeHigh": 126080,
  "fromAllTimeHighPct": -51.97,
  "url": "https://www.coingecko.com/en/coins/bitcoin",
  "source": "top 30"
}
```

***

### How it works

```mermaid
flowchart LR
    A[Top coins] --> D[CoinGecko market data]
    B[Category] --> D
    C[Coin IDs and trending] --> D
    D --> E[Filter: market cap]
    E --> F[Coin rows]
```

***

### Quick start

1. Click **Try for free**.
2. Set **Top coins by market cap**, like 100.
3. Optional: add a **Category**, like `meme-token`, or **Coin IDs**, like `solana`.
4. Optional: turn on **Include trending coins**, or change **Currency** to `eur`.
5. Click **Start**, then export to CSV, JSON, Excel or Google Sheets. Schedule it for a daily snapshot.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~crypto-market-data/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"topCoins": 250, "vsCurrency": "usd", "includeTrending": true}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/crypto-market-data").call(run_input={
    "topCoins": 50,
    "category": "artificial-intelligence",
})
for c in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(c["symbol"], c["price"], c["change24hPct"])
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `topCoins` | 100 | Largest coins by market cap, up to 5,000 |
| `category` | – | CoinGecko category ID |
| `coinIds` | – | Specific coins, like bitcoin |
| `includeTrending` | false | Adds the coins trending now |
| `vsCurrency` | usd | Price currency |
| `minMarketCap` | 0 | Skip smaller coins |

***

### Pricing

**$0.0005 per coin row delivered.** A daily top 100 snapshot costs $0.05.

| Option | Top 100, daily for a month |
|---|---|
| **Crypto Market Data** | **$1.50** |
| Paid crypto data APIs | $100+ a month |

***

### Use cases

- **Daily snapshots**: schedule the top 250 and build your own price history
- **Momentum screens**: sort by 7-day change inside a category
- **Drawdown research**: compare each coin to its all-time high
- **Trend spotting**: watch which coins hit CoinGecko's trending list
- **Dashboards**: send rows to Google Sheets, Looker Studio or a database

***

### Tips

- Category IDs are in the address of each category on coingecko.com/en/categories, like `layer-1`.
- Coin IDs are in the address of each coin page, like `coingecko.com/en/coins/solana`.
- CoinGecko's free API limits calls per minute. The actor waits and retries, so big runs take a bit longer.
- This is market data for research, not financial advice.

***

### Pairs well with

- [Google News Feed](https://apify.com/Turboextract/google-news-feed): crypto news for the same coins
- [Bluesky Posts and Profiles](https://apify.com/Turboextract/bluesky-posts-profiles): what people are saying about them
- [Wikipedia Trending Articles](https://apify.com/Turboextract/wikipedia-trending): public interest by pageviews

***

### FAQ

**Do I need a CoinGecko API key?** No. The actor uses CoinGecko's free public API.

**How fresh are prices?** CoinGecko updates them every minute or two, and each run reads them live.

**Can I get historical prices?** Not directly. Schedule a daily run to build your own history.

**Does it place trades?** No. It only reads market data.

**Is it legal?** It uses CoinGecko's public API. Credit CoinGecko if you publish the data.

***

### SEO keywords

crypto market data API, cryptocurrency prices scraper, CoinGecko scraper, crypto market cap export, top 100 crypto to CSV, trending crypto coins, crypto price tracker, altcoin screener data, bitcoin price API no key, crypto dataset

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/crypto-market-data
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

## `topCoins` (type: `integer`):

How many of the largest coins to export, like 100. 0 skips this.

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

Optional CoinGecko category ID, like layer-1, meme-token, decentralized-finance-defi or artificial-intelligence.

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

CoinGecko coin IDs like bitcoin, ethereum or solana.

## `includeTrending` (type: `boolean`):

Adds the coins trending on CoinGecko right now.

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

Price currency, like usd, eur, gbp or btc.

## `minMarketCap` (type: `integer`):

Skip coins with a smaller market cap than this, in the chosen currency.

## Actor input object example

```json
{
  "topCoins": 100,
  "includeTrending": false,
  "vsCurrency": "usd",
  "minMarketCap": 0
}
```

# Actor output Schema

## `results` (type: `string`):

One row per coin with price, market cap, volume, changes and supply.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/crypto-market-data").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("turboextract/crypto-market-data").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 '{}' |
apify call turboextract/crypto-market-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,turboextract/crypto-market-data"
        }
    }
}
```

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/HilWDQOKnsEbaHUCY/builds/4boJgxCGmEDdnxDdJ/openapi.json
