vøiddo guidesAll Actors on Apify

CoinGecko Scraper: how to get Crypto Market Data by Category as JSON/CSV (API, Python, no code)

For each CoinGecko category ID (layer-1, defi, meme-token, etc.), pull its coins by market cap: 250 per category by default, more if you raise the cap. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/coingecko-category-snapshot on Apify.

Open CoinGecko Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
categoryCategorytextlayer-1
vsCurrencyVs Currencytextusd
snapshotAtSnapshot Atdate2026-10-26T04:25:15+00:00
idIdtextbitcoin
symbolSymboltextbtc
nameNametextBitcoin
imageImageURLhttps://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?...
currentPriceCurrent Pricenumber79813
marketCapMarket Capnumber1604707813147
marketCapRankMarket Cap Ranknumber1
fdvFdvnumber1604707813147
totalVolumeTotal Volumenumber17466480099
high24hnumber80852
low24hnumber79332
priceChange24hnumber-984.5553934622294
priceChangePct24hnumber-1.21855
marketCapChange24hnumber-19574182630.254395
marketCapChangePct24hnumber-1.2051
circulatingSupplynumber20103596
totalSupplynumber20103596
maxSupplynumber21000000
athnumber126080
athChangePctnumber-36.69656
athDatetext2025-10-06T10:57:42.000Z
atlnumber67.81
atlChangePctnumber117602.52951
atlDatetext2013-07-05T16:00:00.000Z
lastUpdatedtext2026-10-26T04:24:58.000Z

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "categories": [
    "layer-1",
    "meme-token"
  ],
  "maxCoinsPerCategory": 20
}
Input fieldTypeWhat it does
categories (required)arrayCoinGecko category identifiers (lower-case, kebab-cased).
vsCurrencystringISO code for the price quote.
maxCoinsPerCategoryintegerHard cap per category. CoinGecko pages 250 at a time on its public API.
include24hChangebooleanAdds priceChangePct24h field.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "category": "layer-1",
    "vsCurrency": "usd",
    "snapshotAt": "2026-10-26T04:25:15+00:00",
    "id": "bitcoin",
    "symbol": "btc",
    "name": "Bitcoin",
    "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400",
    "currentPrice": 79813,
    "marketCap": 1604707813147,
    "marketCapRank": 1,
    "fdv": 1604707813147,
    "totalVolume": 17466480099,
    "high24h": 80852,
    "low24h": 79332,
    "priceChange24h": -984.5553934622294,
    "priceChangePct24h": -1.21855,
    "marketCapChange24h": -19574182630.254395,
    "marketCapChangePct24h": -1.2051,
    "circulatingSupply": 20103596,
    "totalSupply": 20103596,
    "maxSupply": 21000000,
    "ath": 126080,
    "athChangePct": -36.69656,
    "athDate": "2025-10-06T10:57:42.000Z",
    "atl": 67.81,
    "atlChangePct": 117602.52951,
    "atlDate": "2013-07-05T16:00:00.000Z",
    "lastUpdated": "2026-10-26T04:24:58.000Z"
  },
  {
    "category": "layer-1",
    "vsCurrency": "usd",
    "snapshotAt": "2026-10-26T04:25:15+00:00",
    "id": "ethereum",
    "symbol": "eth",
    "name": "Ethereum",
    "image": "https://coin-images.coingecko.com/coins/images/279/large/ethereum.png?1696501628",
    "currentPrice": 2309.01,
    "marketCap": 282153814077,
    "marketCapRank": 2,
    "fdv": 282153814077,
    "totalVolume": 7790574891,
    "high24h": 2366.34,
    "low24h": 2293.2,
    "priceChange24h": -53.66912234900292,
    "priceChangePct24h": -2.27154,
    "marketCapChange24h": -6473594986.255005,
    "marketCapChangePct24h": -2.24289,
    "circulatingSupply": 122164245.29589781,
    "totalSupply": 122164245.29589781,
    "ath": 4946.05,
    "athChangePct": -53.31612,
    "athDate": "2025-08-24T11:21:03.000Z",
    "atl": 0.432979,
    "atlChangePct": 533184.10331,
    "atlDate": "2015-10-19T16:00:00.000Z",
    "lastUpdated": "2026-10-26T04:24:58.000Z"
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/coingecko-category-snapshot.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'categories': ['layer-1', 'meme-token'], 'maxCoinsPerCategory': 20}

run = client.actor("v0iddo/coingecko-category-snapshot").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "categories": [
    "layer-1",
    "meme-token"
  ],
  "maxCoinsPerCategory": 20
};

const run = await client.actor('v0iddo/coingecko-category-snapshot').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~coingecko-category-snapshot/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"categories": ["layer-1", "meme-token"], "maxCoinsPerCategory": 20}'

Price

$0.10 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.07 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

FAQ

What data does the CoinGecko Scraper return?

Each result is one row in an Apify dataset. Fields include category, vsCurrency, snapshotAt, id, symbol, name, image, currentPrice, and more. The table above shows every field with an example value.

How do I use the CoinGecko Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/coingecko-category-snapshot with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$0.10 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.07 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open CoinGecko Scraper on Apify

Related guides