Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APICoinGecko

    coingecko.coin

    A coin on CoinGecko: price, market capitalisation, volume, changes over an hour to a year, all-time high and low, supply, categories, links and contract addresses.

    Id
    coingecko.coin
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/coingecko.coin/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of coingecko.coin
    FieldTypeDescription
    coinrequiredstringThe coin's id on CoinGecko, the last part of its page's address, e.g. bitcoin, usd-coin; or that address (https://www.coingecko.com/en/coins/bitcoin). coingecko.markets lists the ids.Limit: at least 1 characters, at most 300 characters.
    currencystringThe currency to state amounts in: usd, eur, gbp, jpy, btc, eth and the others CoinGecko quotes.Limit: at most 6 characters. Default: "usd".

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of coingecko.coin
    FieldTypeNotes
    idstringCoinGecko's id of the coin, e.g. bitcoin, usd-coin.
    symbolstringThe ticker symbol, in lower case as CoinGecko writes it, e.g. btc.
    namestringThe coin's name.
    urlstringThe coin's page on coingecko.com.
    currencystringThe currency every amount of this record is in, e.g. usd.
    rankinteger or nullThe coin's rank by market capitalisation. Null for a coin CoinGecko does not rank.
    pricenumber or nullThe current price of one coin.
    market_capnumber or nullThe market capitalisation: price times circulating supply.
    fully_diluted_valuationnumber or nullThe price times the total supply.
    volume_24hnumber or nullThe amount traded in the last 24 hours.
    high_24hnumber or nullThe highest price of the last 24 hours.
    low_24hnumber or nullThe lowest price of the last 24 hours.
    price_change_24hnumber or nullThe change in price over the last 24 hours, as an amount.
    price_change_percentage_1hnumber or nullThe change in price over the last hour, in percent.
    price_change_percentage_24hnumber or nullThe change in price over the last 24 hours, in percent.
    price_change_percentage_7dnumber or nullThe change in price over the last 7 days, in percent.
    price_change_percentage_30dnumber or nullThe change in price over the last 30 days, in percent.
    price_change_percentage_1ynumber or nullThe change in price over the last year, in percent.
    market_cap_change_percentage_24hnumber or nullThe change in market capitalisation over the last 24 hours, in percent.
    athnumber or nullThe highest price the coin has ever had.
    ath_datestring (date-time) or nullWhen that highest price was reached, in UTC.
    ath_change_percentagenumber or nullHow far the current price is from the highest ever, in percent (negative: below it).
    atlnumber or nullThe lowest price the coin has ever had.
    atl_datestring (date-time) or nullWhen that lowest price was reached, in UTC.
    atl_change_percentagenumber or nullHow far the current price is from the lowest ever, in percent.
    circulating_supplynumber or nullThe number of coins in circulation.
    total_supplynumber or nullThe number of coins that exist now, locked ones included.
    max_supplynumber or nullThe most coins that will ever exist. Null for a coin without a cap.
    categoriesarray of stringThe categories CoinGecko files the coin under, e.g. Layer 1 (L1).
    descriptionstring or nullCoinGecko's description of the coin in English, as plain text.
    homepagestring or nullThe project's own website.
    whitepaperstring or nullThe address of the project's white paper.
    explorersarray of stringBlock explorers for the coin.
    source_codearray of stringThe project's public source code repositories.
    twitterstring or nullThe project's account name on X, without the @.
    subredditstring or nullThe address of the project's subreddit.
    genesis_datestring or nullThe day the coin's chain or token started, as YYYY-MM-DD.
    hashing_algorithmstring or nullThe proof-of-work algorithm, e.g. SHA-256. Null for a coin that is not mined.
    contractsarray of objectThe token's contract address on each chain it is deployed on. Empty for a chain's own coin.
    platform (in contracts[])stringThe chain the token is deployed on, as CoinGecko names it, e.g. ethereum, solana.
    address (in contracts[])stringThe token's contract address on that chain.
    imagestring or nullThe coin's logo.
    sentiment_votes_up_percentagenumber or nullThe share of CoinGecko visitors' votes today that are positive, in percent.
    watchlist_usersinteger or nullThe number of CoinGecko users who have the coin on a watchlist.
    last_updatedstring (date-time) or nullWhen CoinGecko last updated these figures, in UTC.
    fetched_atstring (date-time)When the answer was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/coingecko.coin/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"coin":"usd-coin"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("coingecko.coin", {"coin": "usd-coin"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("coingecko.coin", { coin: "usd-coin" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "coingecko.coin", map[string]any{"coin": "usd-coin"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("coingecko.coin", Map.of("coin", "usd-coin"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run coingecko.coin --input coin=usd-coin

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "coin": "usd-coin"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "coingecko.coin",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "coin": "usd-coin"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "id": "usd-coin",
          "symbol": "usdc",
          "name": "USDC",
          "url": "https://www.coingecko.com/en/coins/usdc",
          "currency": "usd",
          "rank": 5,
          "price": 0.999508,
          "market_cap": 68284744082,
          "fully_diluted_valuation": 68213222422,
          "volume_24h": 13059103644,
          "high_24h": 0.999841,
          "low_24h": 0.999379,
          "price_change_24h": -0.000103780779165952,
          "price_change_percentage_1h": -0.00303,
          "price_change_percentage_24h": -0.01038,
          "price_change_percentage_7d": -0.00811,
          "price_change_percentage_30d": -0.0365,
          "price_change_percentage_1y": -0.0203,
          "market_cap_change_percentage_24h": -0.8604,
          "ath": 1.043,
          "ath_date": "2018-11-14T16:00:00Z",
          "ath_change_percentage": -4.21252,
          "atl": 0.877647,
          "atl_date": "2023-03-11T00:02:13Z",
          "atl_change_percentage": 13.88507,
          "circulating_supply": 68318329725.77859,
          "total_supply": 68246772888.67647,
          "max_supply": null,
          "categories": [
            "Stablecoins",
            "USD Stablecoin",
            "Solana Ecosystem"
          ],
          "description": "USDC is a fully collateralized US dollar stablecoin. USDC is the bridge between dollars and trading on cryptocurrency exchanges. The technology behind CENTRE makes it possible to exchange value between people, businesses and financial … [truncated]",
          "homepage": "https://www.circle.com/en/usdc",
          "whitepaper": "https://www.circle.com/legal/mica-usdc-whitepaper",
          "explorers": [
            "https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "https://bscscan.com/token/0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
            "https://nearblocks.io/token/17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1"
          ],
          "source_code": [
            "https://github.com/centrehq/centre-tokens"
          ],
          "twitter": null,
          "subreddit": null,
          "genesis_date": null,
          "hashing_algorithm": null,
          "contracts": [
            {
              "platform": "ethereum",
              "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            {
              "platform": "monad",
              "address": "0x754704bc059f8c67012fed69bc8a327a5aafb603"
            },
            {
              "platform": "sui",
              "address": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"
            }
          ],
          "image": "https://coin-images.coingecko.com/coins/images/6319/large/USDC.png?1769615602",
          "sentiment_votes_up_percentage": 33.33,
          "watchlist_users": 261487,
          "last_updated": "2026-11-18T22:47:48Z",
          "fetched_at": "2026-11-19T18:07:39.646771Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: categories: 43 items, the first 3 shown.
    • Shortened: description: 417 characters, the first 234 shown.
    • Shortened: explorers: 10 items, the first 3 shown.
    • Shortened: contracts: 36 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the CoinGecko scrapers are in their own section there.