# Crypto Prices $0.10/1K Prices: CoinGecko, Coinbase, Kraken, OKX (`zaiqltd/crypto-prices`) Actor

Crypto prices, 24h volumes, bid/ask spreads and DEX liquidity from CoinGecko, Coinbase, Kraken, OKX, Bybit and GeckoTerminal. One schema plus a free per-coin comparison and DefiLlama chain TVL. Public spot market data; no keys required. $0.10 per 1,000 prices.

- **URL**: https://apify.com/zaiqltd/crypto-prices.md
- **Developed by:** [Zaiq](https://apify.com/zaiqltd) (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.08 / 1,000 crypto prices

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?

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](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Crypto Prices: CoinGecko, Coinbase, Kraken, OKX & DEXs

Get **crypto spot prices, 24-hour volumes, bid/ask spreads and DEX liquidity** from **CoinGecko, Coinbase Exchange, Kraken, OKX, Bybit and GeckoTerminal** in one run. **DefiLlama** adds free chain TVL context. Supply symbols such as BTC, ETH and SOL, coin names, or exact CoinGecko IDs. Every paid result has the same fields, with nulls where a provider does not supply a value.

Each distinct coin input also gets a **free comparison record**: prices per source, a median for the requested quote, the largest last-price difference between exchanges sharing that quote, the highest-volume delivered spot venue and source failures with reasons. Separate quote groups keep USD, USDT and other currencies distinct.

Use one call for dashboards, scheduled market snapshots, research tables and AI agents. This Actor reads public market data without exchange accounts, API keys or a browser. It provides no order execution, wallets, transfers or recommendations.

Tested in Apify's cloud: the default input delivered 24 paid rows. The example below is a real delivered cloud row.

### What you get

| Field | What it holds |
|---|---|
| recordType | `price` is one paid price from a source and market. `summary` is one free comparison per distinct input. Both record types use the same nullable schema. |
| Identity | `source`, `coin` (name), `coinId` (CoinGecko ID), `symbol` (canonical coin), `assetSymbol` (actual DEX token), `pair` and `url`. |
| Price and denomination | `price`, `quote`, `requestedQuote`, `quoteNote` and `priceBasis`. `quote` always states the number’s denomination. DEX pool symbols remain in `pair` even when `price` is a USD reference. |
| Volume | `volume24h` in `volumeCurrency`, `baseVolume24h` where the exchange reports it, `volumeBasis` and `volumeEstimated`. Coinbase quote turnover is an estimate and is marked as such. |
| Change and spread | `change24hPercent`, `bid`, `ask` and `spreadPercent`. The spread is 100 × (ask − bid) / midpoint. Missing or crossed quotes have a null spread. |
| Market cap | `marketCap` and `marketCapCurrency` from CoinGecko. Market cap is not filled from DEX FDV or liquidity. |
| DEX context | `liquidityUsd`, `chain`, `dex`, `tokenAddress`, `poolAddress`, `isWrapped` and `tokenSide`. Contract matching protects against same-symbol tokens. |
| Observation times | `observedAt` is the provider’s observation or last-trade time when supplied. `scrapedAt` records when this Actor produced the row. Small clock differences can occur. |
| Free comparison | `pricesBySource`, `comparisonsByQuote`, `medianPrice`, `maxSpreadBetweenExchangesPercent`, `highestVolumeVenue`, `failedSources`, `sourceStatuses`, `priceRowCount` and `partial`. |
| Free TVL | `tvlByChain` contains DefiLlama chain TVL in USD where the coin identifies a native chain. This is separate from token market cap and individual pool liquidity. |

### What people use it for

- **Research dashboards:** collect named coins across several providers, then display the actual quote, provider time and nullable fields without writing a different parser for each source.
- **Scheduled snapshots:** run a watchlist on a schedule and append the returned rows to your own time-series store. Each new run reads another snapshot; this Actor does not provide historical candles.
- **Market-data quality checks:** compare venue last prices in the same currency and inspect bid/ask widths, provider update times and low-volume markets before interpreting a difference.
- **DEX monitoring:** follow verified token pools, their USD reference prices, reported 24-hour pool volume and liquidity without looking up wallet activity.
- **AI agents and bots:** answer a factual request such as “show BTC, ETH and SOL prices across Coinbase, Kraken and DEX pools” with one structured tool call.

### How to use it

1. Enter up to 20 coin symbols, names or exact CoinGecko IDs. The default watchlist is BTC, ETH and SOL.
2. Choose the sources. All eight available sources are selected by default; DefiLlama contributes free context rather than paid prices.
3. Choose a quote currency. USD tries native USD spot markets first, then USDT only where a priced native USD market is absent. The row keeps its actual quote. Select USDT explicitly if you want USDT markets across exchanges.
4. Keep DEX pairs on for verified token pools, and set a per-coin pool maximum from 1 to 20. The default is 3. Each centralized exchange and CoinGecko contributes at most one row per coin.
5. Run, read the free summary first, then filter `recordType=price` for the flat market rows. Check `sourceStatuses` and `failedSources` before treating an incomplete comparison as complete.

### Input

| Field | Example | Notes |
|---|---|---|
| coins | \["BTC", "ETH", "SOL"] | 1–20 symbols, names or exact CoinGecko IDs; each input is at most 80 characters. Defaults work with an empty input object. |
| quoteCurrency | "USD" | USD, USDT, USDC, EUR, GBP, JPY, AUD, CAD, CHF, ZAR, BTC or ETH. No currency conversion is performed. Market availability differs by source. |
| sources | \["coingecko", "coinbase", "kraken", "okx", "bybit", "geckoterminal", "defillama"] | Select one or more. Failed sources are reported and the others continue. Unfamiliar coin identities may require a public CoinGecko catalog request even when CoinGecko prices are not selected. |
| includeDexPairs | true | False disables GeckoTerminal requests and rows. With it enabled, DEX prices are available for USD requests only. |
| maxPairsPerCoin | 3 | 1–20 pools from GeckoTerminal’s first returned page, ranked by reported liquidity after identity filtering. This does not paginate the complete market. |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "recordType": "price",
  "source": "coinbase",
  "coin": "Bitcoin",
  "coinId": "bitcoin",
  "symbol": "BTC",
  "assetSymbol": "BTC",
  "pair": "BTC/USD",
  "price": 71455.97,
  "quote": "USD",
  "requestedQuote": "USD",
  "quoteNote": null,
  "priceBasis": "spot-last-trade",
  "volume24h": 720352313.38,
  "volumeCurrency": "USD",
  "volumeBasis": "estimated-base-volume-times-last-price",
  "baseVolume24h": 10080.5505735,
  "volumeEstimated": true,
  "change24hPercent": -3.87034885,
  "bid": 71455.97,
  "ask": 71455.98,
  "spreadPercent": 1.399e-05,
  "marketCap": null,
  "marketCapCurrency": null,
  "liquidityUsd": null,
  "chain": null,
  "dex": null,
  "tokenAddress": null,
  "poolAddress": null,
  "isWrapped": null,
  "tokenSide": null,
  "url": "https://exchange.coinbase.com/trade/BTC-USD",
  "observedAt": "2026-11-12T19:04:11.931Z",
  "scrapedAt": "2026-11-12T19:04:13.190Z",
  "resultId": "3dedfbb9a4367a5f4de6353485fc0313caf8d815a1f0ebd9bb64037fae58c68f",
  "inputCoin": null,
  "pricesBySource": null,
  "medianPrice": null,
  "maxSpreadBetweenExchangesPercent": null,
  "highestVolumeVenue": null,
  "comparisonsByQuote": null,
  "failedSources": null,
  "sourceStatuses": null,
  "priceRowCount": null,
  "partial": null,
  "tvlByChain": null,
  "comparisonNote": null
}
```

Filter recordType to separate paid records from free search summaries. The SUMMARY key-value record includes delivered counts and source failures. Comparisons cover delivered records only.

### Pricing

- **$0.0001 per delivered price row ($0.10 per 1,000 prices).** One primary event, `price`. A price is one source and market, not one whole coin comparison.
- Coin summaries, DefiLlama TVL context, source failures, unsupported markets and empty results are free. A real pool for the same symbols on a different DEX or pool address is a separate price row.
- Apify charges $0.00005 per Actor start in addition to delivered price events.
- Launch price. It may rise later; Apify emails every user 14 days before any price increase takes effect, and a rise can happen at most once a month.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| Cloud default: 24 prices and three free summaries | $0.00245 including one start |
| 100 delivered prices | $0.01005 including one start |

Set Maximum cost per run in Apify. A cloud test on 12 November 2026 stopped cleanly at two paid rows with a $0.0013 limit; free summaries are retained.

### Tips

- Use `comparisonsByQuote` for currency-safe comparisons. The top-level median and exchange difference refer only to your requested quote. An OKX USDT fallback must not be compared numerically as though it were a USD price.
- A native USD market can be much less active than that exchange’s USDT market. Request USDT explicitly when you want to inspect the more active USDT pairs.
- Read `volumeBasis`. Coinbase does not publish quote turnover in these endpoints, so its estimate multiplies base volume by the last price. Kraken turnover is calculated from its reported 24-hour base volume and VWAP.
- The highest-volume venue is ranked by reported base-coin volume across delivered spot exchange rows. This avoids mixing quote currencies and does not double-count aggregator or DEX pool volume.
- An alias list such as BTC, Bitcoin and XBT shares the same paid price rows, with a free summary for each distinct input. Duplicate spelling/case inputs are normalized.
- DEX results require the requested contract plus a recognized counter-asset ID supplied by GeckoTerminal. Symbols alone are not proof of token identity; this filter intentionally excludes many memecoin pairs.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiqltd/crypto-prices").call(run_input={"coins": ["BTC", "ETH", "SOL"], "quoteCurrency": "USD", "sources": ["coingecko", "coinbase", "kraken", "okx", "bybit", "geckoterminal", "defillama"], "maxPairsPerCoin": 3})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiqltd/crypto-prices').call({"coins": ["BTC", "ETH", "SOL"], "quoteCurrency": "USD", "sources": ["coingecko", "coinbase", "kraken", "okx", "bybit", "geckoterminal", "defillama"], "maxPairsPerCoin": 3});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiqltd~crypto-prices/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"coins": ["BTC", "ETH", "SOL"], "quoteCurrency": "USD", "sources": ["coingecko", "coinbase", "kraken", "okx", "bybit", "geckoterminal", "defillama"], "maxPairsPerCoin": 3}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiqltd/crypto-prices`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for “Get BTC, ETH and SOL spot prices from Coinbase, Kraken and GeckoTerminal. Include the actual quote, volume, DEX liquidity and any source failures.”. AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Public market data only. No trading, wallets, account balances, authentication, browser challenges or paid provider keys. A refused address is retired by the shared transport; no CAPTCHA or login is solved.
- Sources may rate-limit, restrict access by location or return stale data. Public CoinGecko and GeckoTerminal request quotas are respected, including retries. There is no freshness SLA.
- USD falls back only to USDT where needed, and keeps USDT in the row. Other requested quotes are exact. CoinGecko does not provide USDT/USDC quotes through this keyless market route; GeckoTerminal reference prices here are USD only.
- BTC, ETH, SOL, BNB and AVAX DEX coverage uses explicitly flagged WBTC, WETH, wrapped SOL, WBNB and WAVAX contracts. Other coins use a verified catalog token address on one supported network. Bridged lookalikes are not silently substituted.
- DEX pools are drawn from the first page returned for one token/network and ranked by reported liquidity. They are not all pools on all chains. Source-reported liquidity can still be inaccurate.
- Kraken’s ticker open is midnight UTC, so change24hPercent remains null rather than presenting a daily change as rolling 24-hour change. For a DEX target on the quote side of a pool, the base token’s change is also not reused.
- Unrecognized or ambiguous symbols yield free notes. For non-bundled symbols reused by multiple catalog coins, an exact ID can resolve CoinGecko/contract prices while centralized-exchange prices are skipped if contract identity is not established.
- DexScreener is not an available source in this listing. Its public endpoint answered in evaluation, but its API terms restrict third-party API resale and directly competing API services.
- Source names and links identify the providers. Powered by [CoinGecko](https://www.coingecko.com/en/api); on-chain data from [GeckoTerminal](https://www.geckoterminal.com/dex-api); TVL from [DefiLlama](https://defillama.com/). Provider terms govern the underlying data. This Actor is independent of these services.
- Binance is unavailable in this release after its cloud endpoint returned HTTP 451. No alternate host or country was used.

### FAQ

**Is a median calculated from every returned DEX pool?**

No. Each source contributes one representative per exact quote. The highest-liquidity returned DEX pool represents GeckoTerminal, so asking for 20 pools does not give that provider 20 votes. All delivered pools remain in pricesBySource.

**What is maxSpreadBetweenExchangesPercent?**

It is 100 × (highest last price / lowest last price − 1) among delivered centralized exchanges with the same quote. It is null with fewer than two exchange sources. It is a snapshot price difference, not an executable return or a trading instruction.

**Why is a DEX pair SOL/USDC but quote is USD?**

GeckoTerminal reports a USD reference value for SOL in that pool. pair preserves the actual pool symbols; priceBasis is dex-usd-reference and quote gives the value’s unit. No USDC = USD conversion is invented by this Actor.

**Why is observedAt sometimes null?**

Some public endpoints provide no observation timestamp. scrapedAt still records collection time. A pool’s creation date is not used as its price observation date. Coinbase’s time is its last trade, which can be older than the current bid/ask.

**Does TVL affect the median or the bill?**

No. DefiLlama chain TVL appears only as free summary context. TVL measures value locked in chain protocols and is distinct from coin price, market cap and pool reserves.

**What happens if a provider fails?**

Its status and reason appear in the summary. The remaining providers continue. Missing or failed responses are not billed as prices. Unsupported quote and disabled DEX options also produce free status notes.

**Can I request any coin name?**

The Actor recognizes major aliases and exact CoinGecko catalog names, IDs or unique symbols. Fuzzy name matches are not charged. Use an exact ID to disambiguate a reused symbol; exchange rows may still be excluded where the token identity cannot be established.

**Does it return historical prices or advice?**

It returns a current public snapshot. Schedule repeated runs and store them for your own history. No historical candles, wallets, orders or recommendations are included.

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: crypto prices API, cryptocurrency price comparison, Coinbase Exchange ticker, Kraken crypto market data, OKX prices, Bybit spot ticker, DEX liquidity, GeckoTerminal pools, CoinGecko market cap, DefiLlama TVL, crypto prices for AI agents.

# Actor input Schema

## `coins` (type: `array`):

Enter 1–20 symbols, names or exact CoinGecko IDs. Major symbols have known aliases. Other coins require an exact catalog match; ambiguous symbols return free notes. Aliases share price rows.

## `quoteCurrency` (type: `string`):

USD uses native USD markets first, then USDT if needed; each row keeps its real quote. Other quotes are exact, with no conversion. DEX USD reference prices require USD. Unsupported markets return free notes.

## `sources` (type: `array`):

Choose public market sources. DefiLlama adds free chain TVL to summaries. A failed source does not stop the others. Resolving unfamiliar coin names may also read CoinGecko's public identity catalog.

## `includeDexPairs` (type: `boolean`):

Read GeckoTerminal pools for verified contracts and recognized counter-assets when selected. Native BTC, ETH, SOL, BNB and AVAX use explicitly flagged wrappers. Off: no DEX requests or rows.

## `maxPairsPerCoin` (type: `integer`):

Keep up to this many GeckoTerminal pools per coin, ranked by liquidity among the first page returned. One verified network per coin. Each exchange and CoinGecko returns at most one price per coin.

## Actor input object example

```json
{
  "coins": [
    "BTC",
    "ETH",
    "SOL"
  ],
  "quoteCurrency": "USD",
  "sources": [
    "coingecko",
    "coinbase",
    "kraken",
    "okx",
    "bybit",
    "geckoterminal",
    "defillama"
  ],
  "includeDexPairs": true,
  "maxPairsPerCoin": 3
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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 = {
    "coins": [
        "BTC",
        "ETH",
        "SOL"
    ],
    "sources": [
        "coingecko",
        "coinbase",
        "kraken",
        "okx",
        "bybit",
        "geckoterminal",
        "defillama"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiqltd/crypto-prices").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 = {
    "coins": [
        "BTC",
        "ETH",
        "SOL",
    ],
    "sources": [
        "coingecko",
        "coinbase",
        "kraken",
        "okx",
        "bybit",
        "geckoterminal",
        "defillama",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("zaiqltd/crypto-prices").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 '{
  "coins": [
    "BTC",
    "ETH",
    "SOL"
  ],
  "sources": [
    "coingecko",
    "coinbase",
    "kraken",
    "okx",
    "bybit",
    "geckoterminal",
    "defillama"
  ]
}' |
apify call zaiqltd/crypto-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zaiqltd/crypto-prices"
        }
    }
}
```

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/dAkPPJyF4dbCToRWD/builds/G3Niavngzr2zZe6JC/openapi.json
