Crypto Prices & OHLC History Export (Apify Actor)
Export crypto prices, market cap, 24h volume and 24h change for coins by name or ticker, or history: OHLC candles from Binance or Kraken, price and market cap from CoinGecko. Clear not-found rows and a run summary. No login or API key. Price: $0.30 per 1,000 coin snapshots, $0.10 per 1,000 history candles, plus $0.0015 per run start. Runs as an Apify Actor, callable from MCP clients via the Apify MCP server (https://mcp.apify.com/?tools=cliqtomedia/crypto-market-data).
Hosted MCP Server
npx add-mcp 'https://mcp.apify.com/?tools=cliqtomedia/crypto-market-data'Installs into Claude Code, Codex, Cursor and more
Documentation
Crypto Prices & OHLC History Export - No Login (cliqtomedia/crypto-market-data) Actor
Export crypto prices, market cap, 24h volume and change for coins by name or ticker, or OHLC candle history from Binance, Kraken or CoinGecko. Public data, no login or API key. Clear not-found rows and run summary.
- URL: https://apify.com/cliqtomedia/crypto-market-data.md
- Developed by: Cliqto Media (community)
- Categories: Business, Developer tools
- Features: Limited permissions
- Stats: 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- User rating: No ratings yet
Pricing
from $0.21 / 1,000 coin snapshots
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/store.md#pay-per-event
What's an Apify Actor?
An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes. In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours, and optionally produces a well-defined JSON output, datasets with results, or files in key-value store. In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.
How to integrate an Actor?
If asked about integration, you help developers integrate Actors into their projects. You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.
For examples already wired to this Actor's own input schema, see the API section below.
Each client library has reference documentation the quickstart does not restate: JavaScript/TypeScript (npm install apify-client) and Python (pip install apify-client).
README
Export crypto prices for the coins you choose: current price, market cap, 24h volume and 24h change, or OHLC candle history from Binance, Kraken or CoinGecko. No login and no API key.
Add coins by name or ticker (bitcoin, eth), click Start, and get one row per coin in a few seconds. A run with 2 coins costs $0.0021 at the Free-plan price.

Table of contents
- What it does
- How it works
- Quick start
- Use cases
- Input
- Output
- Pricing
- Limits
- API, export and integrations
- Troubleshooting
- FAQ
- Related Actors
- Support
What it does
The Actor has two modes:
snapshot: one row per coin with the current price, market cap, market cap rank, 24h volume, 24h change, 24h high and low, supply and all-time high. Data comes from the CoinGecko public API. You can list coins, take the top N coins by market cap, or both.history: price history for each coin. Withbinanceorkrakenyou get OHLC candles (open, high, low, close, volume) for1h,4h,1dor1w. Withcoingeckoyou get daily or hourly price, market cap and volume.
You can write a coin as a CoinGecko ID (bitcoin, ethereum) or as a ticker (btc, ETH, $sol). The Actor finds the coin and shows how it matched it in matchedBy.
Good fit
- Daily price and market cap table for a list of coins in a spreadsheet.
- OHLC candles for charts, back-tests or reports, back to 2017 on Binance.
- Top 100 coins by market cap, ready to export as CSV or Excel.
How it works
- You list coins (names or tickers) or ask for the top N coins by market cap, and choose snapshot or history.
- The Actor looks each coin up on CoinGecko, then reads the price or the candles from the public CoinGecko, Binance or Kraken API.
- It saves one row per coin or per candle to the Dataset, adds
not_foundrows for coins it could not match, and writes a short run summary. The run status line says how many rows were saved.
Quick start
-
Open the Input tab. Mode is
snapshot(box 1 in the picture). -
Keep the prefilled Coins:
bitcoinandethereum, or add your own (box 2). -
Keep Quote currency
usdor choose another one (box 3). -
Click Start.
-
Open the Output tab and check the Prices (snapshot) view:
price,marketCap,volume24h,change24hPct(boxes 1 to 4 below).
Expected result: 2 rows, one for Bitcoin and one for Ethereum, in a few seconds.
For candles, set Mode to history, then open History options and choose the source, interval and days.
What the run status line tells you
When a run ends, the status line at the top of the run shows the result.
| Symbol | Meaning | What you see |
|---|---|---|
| ā | All requested rows saved, or the run stopped at your max candle rows and no coin was left undone | ā
2 rows saved (or Stopped at your max candle rows) and a link to rate the Actor |
| ā ļø | Some rows saved, but not everything you asked for (some coins not found, history shorter than asked, max candle rows reached with coins left undone, or max cost per run reached, or the run time ran out) | The number of rows saved, the reason in plain words, and a link to report a problem. A run you abort ends ABORTED (set by Apify); the status line may show ā ļø Run aborted with the rows saved so far |
| ā¹ļø | Nothing was saved because no requested coin was found | ā¹ļø 0 rows saved: no requested coin was found |
| ā | The run failed, for example the data source stopped answering | ā with the reason, the number of rows saved when the run got that far, a link to report it and a link to the run |
| ā ļø (nothing saved) | Wrong or empty input, or a Timeout in Run options that ended before the first row. The run ends SUCCEEDED, saves nothing and says what to fix | The message with a field example, or the Timeout to set |
Use cases
| Buyer job | Input path | Output entity | Key fields | Next integration |
|---|---|---|---|---|
| Track prices of my coins every day | coins, mode: snapshot | coin snapshot | price, marketCap, volume24h, change24hPct | Google Sheets, CSV, scheduled run |
| Top coins by market cap | topN: 100 | coin snapshot | marketCapRank, price, marketCap | Excel, BI tool |
| Candles for charts or back-tests | mode: history, exchange: binance, interval, days | OHLC candle | timestamp, open, high, low, close, volume | Python, pandas, database |
| Long price and market cap history | mode: history, exchange: coingecko, interval: 1d, days: 365 | history point | timestamp, price, marketCap, volume | Spreadsheet, chart |
Input
Input fields
| Field | Plain name | Type | Required | Default / prefill | Allowed values | Effect | Example | Recommendation |
|---|---|---|---|---|---|---|---|---|
mode | Mode | string | no | default and prefill snapshot | snapshot, history | Current values or history | history | Start with snapshot |
coins | Coins | array of strings | yes, unless topN > 0 | prefill ["bitcoin", "ethereum"]; no runtime default | CoinGecko ID or ticker; up to 250 in snapshot, 25 in history | Which coins to export | ["btc", "solana"] | Use IDs when a ticker is shared by many coins |
topN | Top coins by market cap | integer | no | 0 (off) | 0ā250 | Snapshot only: adds the top N coins | 100 | Combine with coins for extra coins |
vsCurrency | Quote currency | string | no | usd | 63 CoinGecko codes; Binance and Kraken: usd, eur, gbp, jpy, try, brl, aud, cad, chf, btc, eth, bnb, sol, xrp | Price currency | eur | Binance quotes usd in USDT |
exchange | History source | string | no | binance | binance, kraken, coingecko | History only: where candles come from | kraken | binance for long history |
interval | Candle interval | string | no | 1d | 1h, 4h, 1d, 1w | History only: one row per interval | 1h | CoinGecko: 1d, or 1h up to 90 days |
days | Days of history | integer | no | 30 | 1ā1825 (CoinGecko 1ā365) | History only: how far back from now | 365 | Fewer days = fewer rows = lower cost |
maxRows | Max candle rows | integer | no | 10000 | 1ā50000 | History only: stop after this many candles | 2000 | Keep it low to cap cost |
Empty or wrong input: the run ends without failing, writes no rows and says which field to fix, in the run status and in RUN_SUMMARY (status is invalid_input). Add at least one coin or set topN.
Duplicates: if two entries mean the same coin (btc and bitcoin), the coin is exported once. The second entry is marked skipped in RUN_SUMMARY.
Unknown coins: the Actor writes a not_found row with the reason and goes on with the other coins.
Interacting settings
| When | Input A | Input B | Effective behavior | Example | Cost/result effect |
|---|---|---|---|---|---|
| Snapshot with both | coins | topN | Listed coins first, then top coins; no duplicates | coins: ["dogecoin"], topN: 10 | Up to 11 rows |
| History | days | interval | Rows ā days Ć candles per day, per coin | days: 30, interval: 1h | 720 rows per coin |
| History | maxRows | coins | Stops at maxRows in total, coin by coin | 25 coins, maxRows: 1000 | Last coins may be partial or skipped |
| History on Kraken | days | interval | Only about 720 recent candles | 1h, days: 90 | About 30 days, status SOURCE_LIMIT |
| Ticker shared by several coins | coins | ā | Coin with the largest market cap wins | uni | Check coin and matchedBy |
Input examples
Prices of a few coins
{
"mode": "snapshot",
"coins": ["bitcoin", "ethereum"]
}
Expected behavior: the Actor looks up both coins on CoinGecko and saves 2 rows.
Expected output: coin snapshots with price, marketCap, volume24h, change24hPct.
Limit or cost note: $0.0021 per run at the Free-plan price (start fee plus 2 snapshots).
Daily candles for 30 days
{
"mode": "history",
"coins": ["btc", "eth"],
"exchange": "binance",
"interval": "1d",
"days": 30
}
Expected behavior: BTCUSDT and ETHUSDT daily candles from Binance.
Expected output: about 61 candle rows (roughly 30 per coin) with open, high, low, close, volume. The newest candle has isClosed: false.
Limit or cost note: about $0.0076 per run (61 candles at the Free-plan price).
Output
The default Dataset has 3 views: Prices (snapshot), History (OHLC candles) and Not found & errors. Every row has recordType: snapshot, candle or status. Views choose columns; they do not filter rows, so not_found rows also appear in Prices (snapshot) with empty price cells. To keep only one kind, filter by recordType or status in your spreadsheet or code.
Output fields
| Field | Meaning | Type | Can be empty? | Example / enum | Source / notes |
|---|---|---|---|---|---|
recordType | Row kind | string | no | snapshot, candle, status | ā |
status | Row result | string | no | ok, not_found, error | ā |
query | Your entry | string | yes | btc | As you typed it, trimmed, lower case, without $; empty for topN rows |
matchedBy | How the coin was found | string | yes | id, symbol, topN, ticker | ā |
coin | CoinGecko ID | string | yes | bitcoin | Empty for Binance/Kraken tickers not checked on CoinGecko |
symbol, name | Ticker and name | string | yes | BTC, Bitcoin | ā |
vsCurrency | Price currency | string | no | usd | ā |
price | Price (last close for candles) | number | yes | 82947 | ā |
marketCap, marketCapRank | Market cap and rank | number | yes | 1667051393162, 1 | Snapshot and CoinGecko history |
volume24h | 24h trading volume | number | yes | 32352326234 | Snapshot |
change24h, change24hPct | 24h price change and percent | number | yes | 521.38, 0.63249 | Snapshot |
high24h, low24h | 24h high and low | number | yes | 84074, 81018 | Snapshot |
circulatingSupply, totalSupply, maxSupply | Supply | number | yes | 20097687 | maxSupply is empty when there is no cap |
ath, athDate, atl, atlDate | All-time high and low | number / string | yes | 126080 | Snapshot |
exchange, pair, quoteAsset, interval | Candle source | string | yes | binance, BTCUSDT, USDT, 1d | History |
timestamp, timestampMs | Data time (candle open time in history) | string / number | no for data rows | 2026-09-14T00:00:00.000Z | UTC |
open, high, low, close | OHLC prices | number | yes | 76842.01 | Empty for CoinGecko history except open/close |
volume, quoteVolume, trades | Candle volume, quote volume, trade count | number | yes | 15413.49 | trades only on Binance and Kraken |
isClosed | Candle is final | boolean | yes | true | The newest candle is still open and can change |
message | Why a row is not_found or error | string | yes | No CoinGecko coin has this ID or ticker. | Status rows |
source, sourceUrl, fetchedAt | Where and when | string | no | coingecko | ā |
Output entities and surfaces
| Situation | Dataset/API/KVS/live view | Result shape | User action |
|---|---|---|---|
| Normal item | Dataset rows with recordType snapshot or candle (views Prices (snapshot), History (OHLC candles) show their columns) | One row per coin or per candle | Export or read the fields |
| Coin not found | Dataset rows with recordType: status (view Not found & errors shows their columns) | status: not_found row with message; after 20 such rows, one more row lists the rest | Fix the entry or use the CoinGecko ID |
| Partial result | Dataset + RUN_SUMMARY in the key-value store | Rows saved so far; RUN_SUMMARY.status is PARTIAL with reason (MAX_ROWS, SOURCE_LIMIT, SOME_NOT_FOUND, CHARGE_LIMIT, DEADLINE) | Read reason and message |
| Invalid input | RUN_SUMMARY, run status SUCCEEDED, empty Dataset | status: invalid_input, message, inputErrors (field, message, example) | Fix the named field and run again |
| Source down or blocked | Run status FAILED with a ā status line, RUN_SUMMARY | status: ERROR, reason: SOURCE_ERROR, no fake rows | Run again later |
Output example
{
"recordType": "snapshot",
"status": "ok",
"query": "bitcoin",
"matchedBy": "id",
"coin": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"vsCurrency": "usd",
"price": 82947,
"marketCap": 1667051393162,
"marketCapRank": 1,
"volume24h": 32352326234,
"change24h": 521.38,
"change24hPct": 0.63249,
"high24h": 84074,
"low24h": 81018,
"maxSupply": 21000000,
"timestamp": "2026-10-13T17:53:53.000Z",
"open": null,
"close": null,
"source": "coingecko",
"sourceUrl": "https://www.coingecko.com/en/coins/bitcoin",
"fetchedAt": "2026-10-13T17:55:08.988Z"
}
This example is trimmed and shows one snapshot row from the first input example. null means the field does not apply to this row kind or the source has no value.
A candle row from the second example:
{
"recordType": "candle",
"status": "ok",
"query": "btc",
"matchedBy": "symbol",
"coin": "bitcoin",
"symbol": "BTC",
"exchange": "binance",
"pair": "BTCUSDT",
"interval": "1d",
"timestamp": "2026-09-14T00:00:00.000Z",
"open": 76842.01,
"high": 79600,
"low": 76388.72,
"close": 78189.21,
"volume": 15413.48971,
"trades": 3225517,
"isClosed": true,
"source": "binance"
}
Pricing
Pricing unit
You pay per event (pay-per-event). The platform usage is included in these prices. The start fee is charged once per GB of run memory, minimum one event. This Actor runs on 256 MB, so you pay one start event.
| Event | When it is charged | Free | Bronze | Silver | Gold |
|---|---|---|---|---|---|
| Actor start | Once per run | $0.0015 | $0.0015 | $0.0015 | $0.0015 |
| Coin snapshot | One saved snapshot row | $0.0003 | $0.00027 | $0.00024 | $0.00021 |
| History candle | One saved candle or history point | $0.0001 | $0.000095 | $0.00009 | $0.000085 |
| Coin lookup with no match | One requested coin that matched no coin or pair | $0.0002 | $0.0002 | $0.0002 | $0.0002 |
Platinum and Diamond pay the Gold prices.
A run where no coin is found costs the start fee plus $0.0002 per coin. A run that ends on invalid input, or whose Timeout ended before the first row was saved, costs only the start fee. If a source is down, you pay the start fee and only the rows that were saved. Rows not_found and error are free, apart from the small lookup fee. Set Max cost per run to stop early: the Actor saves only the rows that fit in it and says so in the run status line.
Cost examples
| Scenario | Input scope | Expected item/event count | Base charge | Optional charge | Stop/cap behavior |
|---|---|---|---|---|---|
| Prefill | 2 coins, snapshot | 2 snapshots | $0.0021 | none | none |
| Top 100 | topN: 100 | 100 snapshots | $0.0315 | none | none |
| One coin, daily candles for a year | days: 365, 1d | 366 candles | $0.0381 | none | maxRows |
| 25 coins, hourly for 30 days | 1h, days: 30, maxRows: 18000 | 18,000 candles | $1.8015 | none | maxRows |
| Largest run | maxRows: 50000 | 50,000 candles | $5.0015 | none | Stops at maxRows |
| Nothing found | 1 unknown coin | 1 lookup with no match | $0.0017 | none | none |
Free-plan prices. The real number of rows depends on how much history the exchange has.
Limits
- Snapshot: up to 250 coins plus
topNup to 250 per run. - History: up to 25 coins and 50,000 rows per run. Binance has data back to 2017, Kraken only about 720 recent candles, CoinGecko up to 365 days.
- A run stops source work after about 4 minutes and keeps what it saved.
- Not real-time. Prices are as fresh as the public API at run time (CoinGecko updates about every minute). Do not use it for trading signals.
- Not investment advice. The Actor only copies public market data.
- No order books, trades, wallets, DEX pools or derivatives.
API, export and integrations
- API: start a run with
POST https://api.apify.com/v2/acts/cliqtomedia~crypto-market-data/runsand the input JSON. Read rows from the run's default Dataset. - Export: download the Dataset as JSON, CSV, Excel, XML or RSS from the Output tab or the API.
- Scheduling: create a schedule in Apify Console (for example every day at 00:05 UTC) to build a daily price table.
- Webhooks / no-code: use Apify integrations for Google Sheets, Zapier, Make or a webhook after each run.
Use with AI agents (MCP)
- MCP server URL with only this Actor:
https://mcp.apify.com?tools=cliqtomedia/crypto-market-data. - Smallest useful input:
{"mode": "snapshot", "coins": ["bitcoin", "ethereum"]}. - Key output fields:
coin(CoinGecko ID),price(invsCurrency),marketCap,change24hPct(24h change in percent),timestamp(UTC time of the value). - A snapshot run takes a few seconds and costs $0.0021 for 2 coins at the Free-plan price. History is up to 25 coins and 50,000 rows per run. Data is not real-time and is not investment advice.
Troubleshooting
A coin is not_found
Symptom: a row with status: not_found and a message.
Likely reason: a typo, or the ticker is not listed on CoinGecko (snapshot) or the pair is not on the exchange (history).
Check: open the coin on coingecko.com; the ID is the last part of the URL (/coins/the-graph).
Action: use the CoinGecko ID, another currency, or another exchange.
A ticker returns a different coin
Symptom: coin is not the coin you meant.
Likely reason: many coins share the same ticker. The Actor picks the one with the largest market cap.
Check: matchedBy is symbol.
Action: use the CoinGecko ID instead of the ticker.
Kraken history is shorter than days
Symptom: RUN_SUMMARY.reason is SOURCE_LIMIT.
Likely reason: Kraken returns only about 720 recent candles.
Action: use exchange: binance or a larger interval.
The run failed with SOURCE_ERROR
Symptom: run status FAILED, RUN_SUMMARY.status is ERROR.
Likely reason: the public API was down or limited requests for a while.
Action: run again in a few minutes. You pay only the start fee and saved rows.
The run ran out of time
Symptom: the status line starts with ā ļø and says "run time ran out". The run is SUCCEEDED and the rows saved before the stop stay in the Dataset. RUN_SUMMARY.status is PARTIAL with reason: DEADLINE, and coins lists what was not done.
Likely reason: the Timeout in Run options is too short for the number of coins and days you asked for. Work stops about 45 seconds before the Timeout (or 10% of it, if that is more), so the results and the summary are always saved. The Actor also stops its own work after 240 seconds.
Action: set a longer Timeout, or ask for fewer coins or days, and run again. If the Timeout is below 300 seconds and nothing was saved, the run ends SUCCEEDED with a message to set Timeout to 300 seconds or more. With 300 seconds or more and nothing saved, the run is FAILED.
The run finished with no results and a message
Symptom: the run status line names a field and gives an example. Likely reason: the input was empty or wrong. Action: fix the named field and run again. You pay only the start fee.
FAQ
Do I need an account or API key on CoinGecko, Binance or Kraken?
No. The Actor uses public endpoints. No login, no API key.
Is the data real-time?
No. You get the values at run time. CoinGecko updates about every minute. The newest candle has isClosed: false and can still change.
Why does my history have fewer rows than days Ć interval?
The coin may be newer than your period, the exchange may not have old data, or maxRows stopped the run. Check RUN_SUMMARY for each coin.
Where does the data come from?
Data provided by CoinGecko, and public market data from Binance and Kraken. The Actor does not change the values; it only renames fields to one schema.
Is this investment advice?
No. This is a data export tool. It does not give buy or sell signals.
Related Actors
- Polymarket & Kalshi Prediction Market Data, No Login: market odds and volumes when you track events as well as prices.
- Historical Exchange Rates & Currency Converter (ECB): daily fiat exchange rates to convert crypto prices into other currencies.
- SEC Form D Filing Monitor: Private Offering Data: private funding filings for market research next to price data.
- World Bank Indicators Export ā GDP & Population: macro indicators to put prices in context.
Support
For bugs, questions or feature requests, use the Issues tab of this Actor. Include the run ID, the input mode and the error text. Never send API tokens, passwords or account data.
ā Found it useful? Rate this Actor. Something wrong? Report a problem. We fix reported problems.
Changelog
This Actor's version history is a separate document: https://apify.com/cliqtomedia/crypto-market-data/changelog.md
Actor input Schema
mode (type: string):
snapshot: one row per coin with current price, market cap, 24h volume and change (CoinGecko). history: OHLC candles for each coin from Binance, Kraken or CoinGecko.
coins (type: array):
CoinGecko IDs (bitcoin, ethereum) or tickers (btc, eth, $sol). For a ticker shared by several coins the one with the largest market cap is used; check matchedBy and coin in the output. Up to 250 in snapshot mode, 25 in history mode. Duplicates are exported once.
topN (type: integer):
Snapshot mode only: also export the top N coins by market cap (0ā250). 0 = off.
vsCurrency (type: string):
Currency for prices, e.g. usd, eur, gbp, jpy, btc. Snapshot and coingecko history accept 63 CoinGecko codes. Binance and Kraken history accept usd, eur, gbp, jpy, try, brl, aud, cad, chf, btc, eth, bnb, sol, xrp where the exchange lists the pair; Binance quotes usd in USDT.
exchange (type: string):
History mode only. binance: OHLC back to 2017 (up to 1825 days). kraken: OHLC, latest 720 candles only. coingecko: price, market cap and 24h volume (no open/high/low), up to 365 days.
interval (type: string):
History mode only: 1h, 4h, 1d or 1w. CoinGecko supports 1d, and 1h for up to 90 days.
days (type: integer):
History mode only: how many days back from now (1ā1825 for Binance and Kraken, 1ā365 for CoinGecko).
maxRows (type: integer):
History mode only: stop after this many candle rows in total (1ā50000). Keeps cost predictable.
Actor input object example
{
"mode": "snapshot",
"coins": [
"bitcoin",
"ethereum"
],
"topN": 0,
"vsCurrency": "usd",
"exchange": "binance",
"interval": "1d",
"days": 30,
"maxRows": 10000
}
Actor output Schema
snapshot (type: string):
All rows with snapshot columns (price, market cap, volume). Filter recordType=snapshot for snapshot rows only.
candles (type: string):
All rows with candle columns (open, high, low, close, volume). Filter recordType=candle for candles only.
issues (type: string):
All rows with status columns (query, status, message). Filter recordType=status for not_found and error rows only.
runSummary (type: string):
Status, counts, per-coin outcomes, source attribution and request statistics.
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
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 = {
"mode": "snapshot",
"coins": [
"bitcoin",
"ethereum"
]
};
// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/crypto-market-data").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`š¾ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
// š Want to learn more š? Go to ā https://docs.apify.com/api/client/js/docs
Python example
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 = {
"mode": "snapshot",
"coins": [
"bitcoin",
"ethereum",
],
}
# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/crypto-market-data").call(run_input=run_input)
# Fetch and print Actor results from the run's dataset (if there are any)
print(f"š¾ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)
# š Want to learn more š? Go to ā https://docs.apify.com/api/client/python/docs/quick-start
CLI example
echo '{
"mode": "snapshot",
"coins": [
"bitcoin",
"ethereum"
]
}' |
apify call cliqtomedia/crypto-market-data --silent --output-dataset
MCP server setup
{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/crypto-market-data"
}
}
}
The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an Authorization: Bearer <APIFY_API_TOKEN> header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).
OpenAPI specification
Download the OpenAPI definition: https://api.apify.com/v2/actors/lYwghzsejJtUIegzU/builds/9bcdWxXAqCyu83JxP/openapi.json


