# Cryptocurrency Market Data — Live Prices, Caps & Rankings (`maged120/crypto`) Actor

Get real-time cryptocurrency market data including prices, market caps, 24h volume, percentage changes, and rankings. Covers thousands of coins.

- **URL**: https://apify.com/maged120/crypto.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Other, Integrations
- **Stats:** 4 total users, 0 monthly users, 89.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

### What does Cryptocurrency Market Data do?

**Cryptocurrency Market Data** delivers real-time market data for thousands of cryptocurrencies — prices, market capitalizations, 24-hour volume, percentage changes, and rankings — all in structured JSON. No CoinGecko or CoinMarketCap API key required.

This Actor runs on the [Apify platform](https://apify.com), making it easy to schedule regular data pulls, feed crypto dashboards, or power trading research workflows.

### Why use Cryptocurrency Market Data?

- **No API key** — avoid CoinGecko Pro and CoinMarketCap API subscription costs
- **Full market snapshot** — prices, caps, volume, % changes for thousands of coins
- **Scheduled pulls** — run every hour or minute to track price movements
- **Dashboard-ready** — clean JSON output that plugs into any BI or charting tool
- **Batch coins** — filter to only the coins you care about

### How to use Cryptocurrency Market Data

1. Open the Actor and click **Try for free**
2. Optionally filter by specific coin IDs or leave blank for all coins
3. Set the currency for price output (default: USD)
4. Click **Start** — results are ready in seconds
5. Download as JSON or CSV, or stream via the Apify API

### Input

```json
{
  "coinIds": ["bitcoin", "ethereum", "solana"],
  "currency": "usd",
  "maxCoins": 100
}
````

| Field | Type | Description | Default |
|---|---|---|---|
| `coinIds` | array | CoinGecko coin IDs to fetch (empty = top N by market cap) | `[]` |
| `currency` | string | Price currency code (e.g., `usd`, `eur`, `gbp`) | `usd` |
| `maxCoins` | integer | Max coins to return when no IDs specified | `100` |

### Output

Results are stored in the Apify dataset. Download in JSON, CSV, HTML, or Excel.

```json
{
  "id": "bitcoin",
  "symbol": "btc",
  "name": "Bitcoin",
  "currentPrice": 67432.15,
  "marketCap": 1327000000000,
  "marketCapRank": 1,
  "totalVolume": 28900000000,
  "priceChange24h": 1243.50,
  "priceChangePercent24h": 1.88,
  "high24h": 68100.00,
  "low24h": 65800.00,
  "circulatingSupply": 19678000,
  "ath": 73738.0,
  "athDate": "2024-03-14T07:10:36.635Z",
  "lastUpdated": "2024-03-20T12:00:00Z"
}
```

### Output fields

| Field | Type | Description |
|---|---|---|
| `id` | string | CoinGecko coin ID |
| `symbol` | string | Ticker symbol |
| `name` | string | Full coin name |
| `currentPrice` | number | Current price in target currency |
| `marketCap` | number | Market capitalization |
| `marketCapRank` | number | Global market cap ranking |
| `totalVolume` | number | 24-hour trading volume |
| `priceChangePercent24h` | number | 24h price change (%) |
| `high24h` | number | 24-hour high price |
| `low24h` | number | 24-hour low price |
| `circulatingSupply` | number | Circulating token supply |
| `ath` | number | All-time high price |

### Cost

Pay-per-result pricing:

| Volume | Estimated cost |
|---|---|
| 100 coins | ~$0.01–$0.05 |
| 1,000 coins | ~$0.10–$0.50 |
| 10,000 coins | ~$1–$5 |

### Tips

- Schedule this Actor to run every 15 minutes to track fast-moving markets
- Leave `coinIds` empty and set `maxCoins: 250` to get the full top-250 market snapshot
- Use `currency: "eur"` or `currency: "gbp"` for European price data
- Connect results to Google Sheets via Apify integrations for live spreadsheet dashboards

### FAQ

**Does this require a CoinGecko account or API key?**
No. The Actor accesses public cryptocurrency data without authentication.

**How current is the data?**
Prices are typically updated every 1–5 minutes, reflecting near-real-time market data.

**Can I get historical price data?**
This Actor returns current/live market data. For historical data, check the related actors in the Crypto collection.

**Is this Actor maintained?**
Yes. Report bugs or feature requests in the Issues tab.

**Need help or have questions?**
Open an issue in the Issues tab or reach out on Discord: **maged03211**

# Actor input Schema

## `start` (type: `integer`):

Starting index for pagination (default: 1)

## `limit` (type: `integer`):

Number of cryptocurrencies to fetch (default: 100)

## `sort_by` (type: `string`):

Field to sort results by

## `sort_type` (type: `string`):

Sort direction

## `convert` (type: `array`):

List of currencies to convert prices to

## `audited` (type: `boolean`):

Filter for audited cryptocurrencies only

## `tag_slugs` (type: `string`):

List of tag slugs to filter by

## `aux` (type: `array`):

Additional fields to include in response

## `market_cap_range` (type: `string`):

Range for market cap filtering (e.g., '10~20' for billions)

## `fdv_range` (type: `string`):

Range for fully diluted valuation filtering (e.g., '10~20' for billions)

## `percent_change_24h_range` (type: `string`):

Range for 24h price change percentage (e.g., '10~20')

## `volume_24h_range` (type: `string`):

Range for 24h trading volume (e.g., '10~20' for millions)

## `volume_change_24h_range` (type: `string`):

Range for 24h volume change percentage (e.g., '20~30')

## `age_range` (type: `string`):

Range for cryptocurrency age in days (e.g., '2880~4320')

## Actor input object example

```json
{
  "start": 1,
  "limit": 100,
  "sort_by": "trending_24h",
  "sort_type": "desc",
  "convert": [
    "USD",
    "BTC",
    "ETH"
  ],
  "aux": [
    "ath",
    "atl",
    "high24h",
    "low24h",
    "num_market_pairs",
    "cmc_rank",
    "date_added",
    "max_supply",
    "circulating_supply",
    "total_supply",
    "volume_7d",
    "volume_30d",
    "self_reported_circulating_supply",
    "self_reported_market_cap"
  ]
}
```

# 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 = {
    "start": 1,
    "limit": 100,
    "sort_by": "trending_24h",
    "sort_type": "desc",
    "convert": [
        "USD",
        "BTC",
        "ETH"
    ],
    "audited": false,
    "aux": [
        "ath",
        "atl",
        "high24h",
        "low24h",
        "num_market_pairs",
        "cmc_rank",
        "date_added",
        "max_supply",
        "circulating_supply",
        "total_supply",
        "volume_7d",
        "volume_30d",
        "self_reported_circulating_supply",
        "self_reported_market_cap"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/crypto").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 = {
    "start": 1,
    "limit": 100,
    "sort_by": "trending_24h",
    "sort_type": "desc",
    "convert": [
        "USD",
        "BTC",
        "ETH",
    ],
    "audited": False,
    "aux": [
        "ath",
        "atl",
        "high24h",
        "low24h",
        "num_market_pairs",
        "cmc_rank",
        "date_added",
        "max_supply",
        "circulating_supply",
        "total_supply",
        "volume_7d",
        "volume_30d",
        "self_reported_circulating_supply",
        "self_reported_market_cap",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/crypto").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 '{
  "start": 1,
  "limit": 100,
  "sort_by": "trending_24h",
  "sort_type": "desc",
  "convert": [
    "USD",
    "BTC",
    "ETH"
  ],
  "audited": false,
  "aux": [
    "ath",
    "atl",
    "high24h",
    "low24h",
    "num_market_pairs",
    "cmc_rank",
    "date_added",
    "max_supply",
    "circulating_supply",
    "total_supply",
    "volume_7d",
    "volume_30d",
    "self_reported_circulating_supply",
    "self_reported_market_cap"
  ]
}' |
apify call maged120/crypto --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Cryptocurrency Market Data — Live Prices, Caps & Rankings",
        "description": "Get real-time cryptocurrency market data including prices, market caps, 24h volume, percentage changes, and rankings. Covers thousands of coins.",
        "version": "0.0",
        "x-build-id": "U4dqDyERk3b34zva9"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/maged120~crypto/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-maged120-crypto",
                "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/maged120~crypto/runs": {
            "post": {
                "operationId": "runs-sync-maged120-crypto",
                "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/maged120~crypto/run-sync": {
            "post": {
                "operationId": "run-sync-maged120-crypto",
                "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": {
                    "start": {
                        "title": "Start Index",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Starting index for pagination (default: 1)"
                    },
                    "limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Number of cryptocurrencies to fetch (default: 100)"
                    },
                    "sort_by": {
                        "title": "Sort By",
                        "enum": [
                            "trending_1h",
                            "trending_6h",
                            "trending_24h",
                            "trending_7d",
                            "rank",
                            "gainer_loser_1h",
                            "gainer_loser_6h",
                            "gainer_loser_24h",
                            "gainer_loser_7d",
                            "most_visited_1h",
                            "most_visited_6h",
                            "most_visited_24h",
                            "most_visited_7d",
                            "date_added"
                        ],
                        "type": "string",
                        "description": "Field to sort results by"
                    },
                    "sort_type": {
                        "title": "Sort Type",
                        "enum": [
                            "asc",
                            "desc"
                        ],
                        "type": "string",
                        "description": "Sort direction"
                    },
                    "convert": {
                        "title": "Convert Currencies",
                        "type": "array",
                        "description": "List of currencies to convert prices to",
                        "items": {
                            "type": "string"
                        }
                    },
                    "audited": {
                        "title": "Audited Only",
                        "type": "boolean",
                        "description": "Filter for audited cryptocurrencies only"
                    },
                    "tag_slugs": {
                        "title": "Tag Slugs",
                        "type": "string",
                        "description": "List of tag slugs to filter by"
                    },
                    "aux": {
                        "title": "Additional Fields",
                        "type": "array",
                        "description": "Additional fields to include in response",
                        "items": {
                            "type": "string",
                            "enum": [
                                "ath",
                                "atl",
                                "high24h",
                                "low24h",
                                "num_market_pairs",
                                "cmc_rank",
                                "date_added",
                                "max_supply",
                                "circulating_supply",
                                "total_supply",
                                "volume_7d",
                                "volume_30d",
                                "self_reported_circulating_supply",
                                "self_reported_market_cap"
                            ]
                        }
                    },
                    "market_cap_range": {
                        "title": "Market Cap Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for market cap filtering (e.g., '10~20' for billions)"
                    },
                    "fdv_range": {
                        "title": "FDV Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for fully diluted valuation filtering (e.g., '10~20' for billions)"
                    },
                    "percent_change_24h_range": {
                        "title": "24h Change Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for 24h price change percentage (e.g., '10~20')"
                    },
                    "volume_24h_range": {
                        "title": "24h Volume Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for 24h trading volume (e.g., '10~20' for millions)"
                    },
                    "volume_change_24h_range": {
                        "title": "24h Volume Change Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for 24h volume change percentage (e.g., '20~30')"
                    },
                    "age_range": {
                        "title": "Age Range",
                        "pattern": "^\\d+~\\d+$",
                        "type": "string",
                        "description": "Range for cryptocurrency age in days (e.g., '2880~4320')"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
