# 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:** 2 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/actors/running/actors-in-store.md#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

### 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(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 '{
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maged120/crypto"
        }
    }
}

```

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/d46dxPbZwfTW59SVW/builds/U4dqDyERk3b34zva9/openapi.json
