# CoinPaprika Crypto Extractor (`kawsar/coinpaprika-crypto-extractor`) Actor

CoinPaprika Crypto Extractor fetches live price, market cap, volume, and change data for any cryptocurrency, so traders and researchers can track market performance without manual lookups.

- **URL**: https://apify.com/kawsar/coinpaprika-crypto-extractor.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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

## CoinPaprika Crypto Extractor: live cryptocurrency market data scraper

Extract live price, market cap, trading volume, supply metrics, and all-time high records from CoinPaprika for any listed cryptocurrency. Input a list of coin IDs, and the actor returns one structured JSON record per coin, ready for spreadsheets, dashboards, databases, or data pipelines.

CoinPaprika tracks over 10,000 cryptocurrencies with market data refreshed every 60 seconds. This actor gives you programmatic access to that data at scale: process up to 1,000 coins per run with no manual steps.

---

### What data does this actor extract?

Each record contains 23 fields organized into five groups:

#### Identification

| Field | Type | Description |
|-------|------|-------------|
| `coinId` | string | CoinPaprika coin identifier (e.g., `btc-bitcoin`) |
| `name` | string | Full coin name (e.g., Bitcoin) |
| `symbol` | string | Ticker symbol (e.g., BTC) |
| `rank` | integer | Market cap rank, where 1 is the largest |

#### Price and volume

| Field | Type | Description |
|-------|------|-------------|
| `priceUsd` | number | Current price in USD |
| `volume24hUsd` | number | 24-hour trading volume in USD |
| `volume24hChange` | number | 24-hour change in trading volume (%) |

#### Market capitalization

| Field | Type | Description |
|-------|------|-------------|
| `marketCapUsd` | number | Market cap in USD (price x circulating supply) |
| `marketCapChange24h` | number | 24-hour market cap change (%) |

#### Price performance

| Field | Type | Description |
|-------|------|-------------|
| `percentChange1h` | number | Price change over the last 1 hour (%) |
| `percentChange24h` | number | Price change over the last 24 hours (%) |
| `percentChange7d` | number | Price change over the last 7 days (%) |

#### All-time high

| Field | Type | Description |
|-------|------|-------------|
| `athPrice` | number | All-time high price in USD |
| `athDate` | string | Date the ATH was reached (ISO 8601) |
| `percentFromAth` | number | How far below ATH the current price is (negative %) |

#### Supply

| Field | Type | Description |
|-------|------|-------------|
| `totalSupply` | number | Total coins in existence |
| `maxSupply` | number | Hard cap on supply; null if uncapped |

#### Metadata

| Field | Type | Description |
|-------|------|-------------|
| `coinPageUrl` | string | Link to the coin's CoinPaprika page |
| `lastUpdated` | string | When CoinPaprika last updated the data |
| `scrapedAt` | string | When this actor ran |
| `error` | string | Error message if the coin failed; null if successful |

---

### Use cases

- **Portfolio tracking**: pull fresh data for every coin you hold and push it to Google Sheets or a database on a schedule
- **Price alerting**: compare `percentChange24h` against thresholds to trigger Slack or email notifications
- **Market research**: batch-collect metrics for the top 100, top 500, or any custom coin list in one run
- **ATH analysis**: find which coins are closest to or furthest from their all-time highs
- **Data journalism**: build time-series snapshots of crypto market metrics for charts and reporting
- **App data feeds**: supply a live crypto dashboard with structured JSON without writing API client code
- **Academic research**: collect historical price snapshots across hundreds of assets for quantitative analysis

---

### How to find a coin ID

Coin IDs follow the format `symbol-name`. Some common examples:

| Coin | ID |
|------|----|
| Bitcoin | `btc-bitcoin` |
| Ethereum | `eth-ethereum` |
| Solana | `sol-solana` |
| Dogecoin | `doge-dogecoin` |
| Cardano | `ada-cardano` |
| BNB | `bnb-binance-coin` |
| XRP | `xrp-xrp` |
| Avalanche | `avax-avalanche` |
| Polkadot | `dot-polkadot` |
| Chainlink | `link-chainlink` |

The fastest way to find any coin's ID: open its page on CoinPaprika. The segment after `/coin/` in the URL is the ID. For example, `coinpaprika.com/coin/btc-bitcoin/` gives you the ID `btc-bitcoin`.

---

### Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `coinIds` | array | Yes | | List of coin IDs to extract, one per line |
| `maxItems` | integer | No | 100 | Maximum number of coins to process (up to 1,000) |
| `requestTimeoutSecs` | integer | No | 30 | Per-request timeout in seconds |

#### Example input

```json
{
    "coinIds": [
        "btc-bitcoin",
        "eth-ethereum",
        "sol-solana",
        "doge-dogecoin",
        "ada-cardano",
        "bnb-binance-coin",
        "xrp-xrp"
    ],
    "maxItems": 100,
    "requestTimeoutSecs": 30
}
````

***

### Output

The actor stores one record per coin in an Apify dataset. Records are available for download as JSON, CSV, XML, Excel, or HTML.

#### Example output record

```json
{
    "coinId": "btc-bitcoin",
    "name": "Bitcoin",
    "symbol": "BTC",
    "rank": 1,
    "totalSupply": 19500000,
    "maxSupply": 21000000,
    "priceUsd": 67234.56,
    "volume24hUsd": 28450000000,
    "volume24hChange": -3.21,
    "marketCapUsd": 1310000000000,
    "marketCapChange24h": 1.45,
    "percentChange1h": 0.22,
    "percentChange24h": 1.65,
    "percentChange7d": 5.4,
    "athPrice": 68789.63,
    "athDate": "2021-11-10T17:41:00Z",
    "percentFromAth": -2.25,
    "coinPageUrl": "https://coinpaprika.com/coin/btc-bitcoin/",
    "lastUpdated": "2024-10-28T22:59:00Z",
    "scrapedAt": "2024-10-28T23:00:00Z",
    "error": null
}
```

If a coin fails (wrong ID, network error, etc.), the row contains only `coinId`, `error`, and `scrapedAt`. The actor continues processing the rest of the list.

***

### How it works

1. You provide a list of coin IDs in the `coinIds` field
2. The actor fetches live market data for each coin through built-in bypass infrastructure
3. Each response is validated and mapped to a flat 23-field record
4. Records are pushed to the Apify dataset as they complete
5. Failed coins are captured with an `error` field so the run never stops mid-list

***

### Running on a schedule

Open the actor in Apify Console, go to **Schedules**, and create a new schedule. Useful intervals:

- **Hourly**: fresh market data for a watchlist
- **Daily**: daily portfolio snapshot with market context
- **Every 5 minutes**: high-frequency price monitoring for active traders

***

### Exporting results

From the dataset view in Apify Console, click **Export** and pick your format:

| Format | Use case |
|--------|----------|
| JSON | APIs, databases, Python/JavaScript scripts |
| CSV | Excel, Google Sheets, pandas |
| XML | Legacy integrations |
| Excel (.xlsx) | Direct spreadsheet analysis |

***

### FAQ

**How do I get a list of all available coin IDs?**
Browse CoinPaprika at coinpaprika.com. Each coin's page URL contains the ID. For a full programmatic list, you can also visit `coinpaprika.com/api/` for their public API documentation, which lists all coins in JSON format.

**Can I process hundreds of coins at once?**
Yes. Add all IDs to `coinIds` and set `maxItems` to your target count (up to 1,000 per run). For larger lists, split into multiple runs.

**How often does CoinPaprika update prices?**
Market data is updated approximately every 60 seconds. For most use cases, running the actor every few minutes or hourly is sufficient.

**What happens if a coin ID is wrong?**
The actor logs the error for that coin, continues with the rest, and writes an error message to the dataset row under the `error` field. You can filter error rows by checking `error !== null`.

**Does this work for all coins on CoinPaprika?**
It works for any coin with a CoinPaprika listing, which covers thousands of cryptocurrencies across all market cap tiers, including small-cap and newly listed assets.

**Can I filter only coins above a certain market cap?**
Not as an input filter, but you can filter the output dataset in Apify Console or post-process the JSON/CSV using standard tools (Excel, pandas, Google Sheets filter views).

**What is the `percentFromAth` field?**
It shows how far below the all-time high the current price is, expressed as a percentage. A value of `-50` means the coin is trading at half its ATH price. A value close to `0` means the coin is near its ATH.

***

### Integrations

Connect CoinPaprika Crypto Extractor with other apps using [Apify integrations](https://apify.com/integrations). Available integrations include Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. You can also use [webhooks](https://docs.apify.com/integrations/webhooks) to trigger downstream actions as soon as new results arrive in the dataset.

# Actor input Schema

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

List of CoinPaprika coin IDs to extract. Enter one ID per line. Format: symbol-name (e.g., btc-bitcoin, eth-ethereum, sol-solana). Find any coin ID from its CoinPaprika URL: coinpaprika.com/coin/{coin-id}/

## `maxItems` (type: `integer`):

Maximum number of coins to process per run. Useful to cap usage during testing.

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

Per-request timeout in seconds. Increase if you see timeout errors on slow connections.

## Actor input object example

```json
{
  "coinIds": [
    "btc-bitcoin",
    "eth-ethereum",
    "sol-solana",
    "doge-dogecoin",
    "ada-cardano"
  ],
  "maxItems": 100,
  "requestTimeoutSecs": 30
}
```

# 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 = {
    "coinIds": [
        "btc-bitcoin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/coinpaprika-crypto-extractor").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 = { "coinIds": ["btc-bitcoin"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/coinpaprika-crypto-extractor").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 '{
  "coinIds": [
    "btc-bitcoin"
  ]
}' |
apify call kawsar/coinpaprika-crypto-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CoinPaprika Crypto Extractor",
        "description": "CoinPaprika Crypto Extractor fetches live price, market cap, volume, and change data for any cryptocurrency, so traders and researchers can track market performance without manual lookups.",
        "version": "0.0",
        "x-build-id": "uZotTm1xbnwaQxfKQ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/kawsar~coinpaprika-crypto-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-kawsar-coinpaprika-crypto-extractor",
                "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/kawsar~coinpaprika-crypto-extractor/runs": {
            "post": {
                "operationId": "runs-sync-kawsar-coinpaprika-crypto-extractor",
                "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/kawsar~coinpaprika-crypto-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-kawsar-coinpaprika-crypto-extractor",
                "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",
                "required": [
                    "coinIds"
                ],
                "properties": {
                    "coinIds": {
                        "title": "Coin IDs",
                        "type": "array",
                        "description": "List of CoinPaprika coin IDs to extract. Enter one ID per line. Format: symbol-name (e.g., btc-bitcoin, eth-ethereum, sol-solana). Find any coin ID from its CoinPaprika URL: coinpaprika.com/coin/{coin-id}/",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of coins to process per run. Useful to cap usage during testing.",
                        "default": 100
                    },
                    "requestTimeoutSecs": {
                        "title": "Request timeout (seconds)",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Per-request timeout in seconds. Increase if you see timeout errors on slow connections.",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
