# CoinGecko Crypto Data - Prices & Market | $0.002 (`pink_comic/coingecko-crypto-data`) Actor

Real-time crypto data from CoinGecko API. Prices, market caps, volume, ATH, trending coins, global stats for 17,000+ cryptocurrencies. Market rankings, coin details, trending, and global overview modes. For crypto traders, portfolio trackers, DeFi researchers, fintech apps. Pay per result.

- **URL**: https://apify.com/pink\_comic/coingecko-crypto-data.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Business, E-commerce, MCP servers
- **Stats:** 0 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## CoinGecko Crypto Data - Prices, Market Cap & Trends

Pull real-time cryptocurrency data from CoinGecko. Get prices, market caps, 24h volume, all-time highs, trending coins, and global market statistics for 17,000+ cryptocurrencies.

### What you get

#### Market rankings (searchType: "market")

| Field | Example |
|-------|---------|
| Coin ID | "bitcoin" |
| Symbol | "btc" |
| Current price | $67,432.00 |
| Market cap | $1.32T |
| 24h volume | $28.5B |
| 24h high/low | $68,100 / $66,800 |
| Price change 24h | +2.3% |
| All-time high | $73,750 |
| Circulating supply | 19,650,000 |

#### Coin details (searchType: "coin")

Full profile for specific coins: categories, genesis date, hashing algorithm, price changes (24h/7d/30d/1y), developer stats, community data, and links.

#### Trending (searchType: "trending")

Top trending coins on CoinGecko right now with price and market data.

#### Global overview (searchType: "global")

Total market cap, 24h volume, BTC/ETH dominance, active cryptocurrencies count, and market cap change percentage.

### Who uses this

- **Crypto traders** -- Monitor prices, volume, and market cap rankings across thousands of coins. Track ATH distance and 24h movements.
- **Portfolio trackers** -- Pull current prices and market data for portfolio valuation and performance dashboards.
- **DeFi researchers** -- Analyze market trends, category performance, and trending coins for alpha generation.
- **Fintech apps** -- Integrate live crypto pricing into payment platforms, wallets, or financial dashboards via the Apify API.
- **Data analysts** -- Build datasets of historical market snapshots for backtesting and market research.

### How to use

#### Get top 50 coins by market cap

```json
{
  "searchType": "market",
  "currency": "usd",
  "orderBy": "market_cap_desc",
  "maxResults": 50
}
````

#### Get details for specific coins

```json
{
  "searchType": "coin",
  "coinIds": ["bitcoin", "ethereum", "solana"],
  "currency": "usd"
}
```

#### Get trending coins

```json
{
  "searchType": "trending"
}
```

#### Get global market overview

```json
{
  "searchType": "global"
}
```

### API and integrations

Use via the [Apify API](https://docs.apify.com/api/v2), [Python client](https://docs.apify.com/api/client/python), [JavaScript client](https://docs.apify.com/api/client/js), or connect with [MCP](https://mcp.apify.com), [n8n](https://n8n.io), [Make](https://make.com), or [Zapier](https://zapier.com).

### Data source

All data comes from the [CoinGecko API](https://www.coingecko.com/en/api). Prices and market data are updated in real-time by CoinGecko.

# Actor input Schema

## `searchType` (type: `string`):

Type of data to fetch.

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

CoinGecko coin IDs for 'coin' search type (e.g. bitcoin, ethereum, solana). Find IDs at coingecko.com.

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

Quote currency for prices (e.g. usd, eur, btc, eth).

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

Optional category for market search (e.g. decentralized-finance-defi, layer-1, meme-token).

## `orderBy` (type: `string`):

Sort order for market rankings.

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

Maximum number of coins to return (1-250).

## Actor input object example

```json
{
  "searchType": "market",
  "coinIds": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "currency": "usd",
  "category": "",
  "orderBy": "market_cap_desc",
  "maxResults": 25
}
```

# 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 = {
    "searchType": "market",
    "coinIds": [
        "bitcoin",
        "ethereum",
        "solana"
    ],
    "currency": "usd",
    "category": "",
    "orderBy": "market_cap_desc",
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/coingecko-crypto-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 = {
    "searchType": "market",
    "coinIds": [
        "bitcoin",
        "ethereum",
        "solana",
    ],
    "currency": "usd",
    "category": "",
    "orderBy": "market_cap_desc",
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/coingecko-crypto-data").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 '{
  "searchType": "market",
  "coinIds": [
    "bitcoin",
    "ethereum",
    "solana"
  ],
  "currency": "usd",
  "category": "",
  "orderBy": "market_cap_desc",
  "maxResults": 25
}' |
apify call pink_comic/coingecko-crypto-data --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CoinGecko Crypto Data - Prices & Market | $0.002",
        "description": "Real-time crypto data from CoinGecko API. Prices, market caps, volume, ATH, trending coins, global stats for 17,000+ cryptocurrencies. Market rankings, coin details, trending, and global overview modes. For crypto traders, portfolio trackers, DeFi researchers, fintech apps. Pay per result.",
        "version": "0.1",
        "x-build-id": "rWHpN5hmNU3cLh6P1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/pink_comic~coingecko-crypto-data/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-pink_comic-coingecko-crypto-data",
                "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/pink_comic~coingecko-crypto-data/runs": {
            "post": {
                "operationId": "runs-sync-pink_comic-coingecko-crypto-data",
                "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/pink_comic~coingecko-crypto-data/run-sync": {
            "post": {
                "operationId": "run-sync-pink_comic-coingecko-crypto-data",
                "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": {
                    "searchType": {
                        "title": "Search Type",
                        "enum": [
                            "market",
                            "coin",
                            "trending",
                            "global"
                        ],
                        "type": "string",
                        "description": "Type of data to fetch.",
                        "default": "market"
                    },
                    "coinIds": {
                        "title": "Coin IDs",
                        "type": "array",
                        "description": "CoinGecko coin IDs for 'coin' search type (e.g. bitcoin, ethereum, solana). Find IDs at coingecko.com.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "Quote currency for prices (e.g. usd, eur, btc, eth).",
                        "default": "usd"
                    },
                    "category": {
                        "title": "Category Filter",
                        "type": "string",
                        "description": "Optional category for market search (e.g. decentralized-finance-defi, layer-1, meme-token).",
                        "default": ""
                    },
                    "orderBy": {
                        "title": "Sort Order",
                        "enum": [
                            "market_cap_desc",
                            "market_cap_asc",
                            "volume_desc",
                            "volume_asc"
                        ],
                        "type": "string",
                        "description": "Sort order for market rankings.",
                        "default": "market_cap_desc"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 250,
                        "type": "integer",
                        "description": "Maximum number of coins to return (1-250).",
                        "default": 100
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
