Finance
CoinGecko logo

CoinGecko API

coingecko.com

Crypto prices, charts, trending coins, exchange rankings, DeFi stats, and market overview.

Actions
14
Category
Finance
Login
Not required
Output
JSON

Call the CoinGecko API

Submit a task, then poll the job until it settles. This example runs cg_categories.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "cg_categories",
    "params": {
      "order": "<order>",
      "limit": 10
    }
  }'

14 actions on coingecko.com

Read

  • Categories

    cg_categoriesread1 credit / call

    Returns crypto market categories with market cap, volume, and top coins.

    order
    string
    limit
    integer
  • Coin Details

    cg_coin_detailsread1 credit / call

    Returns full coin details including description, sentiment, categories, and market data across timeframes.

    coin_id
    string · required
  • Coin Markets

    cg_coin_marketsread1 credit / call

    Returns live prices and market data for top coins or a specific list, with filtering and sorting.

    vs_currency
    string
    ids
    string
    category
    string
    order
    string
    limit
    integer
    page
    integer
  • DeFi Global

    cg_defi_globalread1 credit / call

    Returns global DeFi market stats including market cap, volume, dominance, and top DeFi coin.

  • Derivatives

    cg_derivativesread3 credits / call

    Returns crypto derivatives data including open interest, funding rates, basis, and spreads.

    limit
    integer
  • Exchange Details

    cg_exchange_detailsread1 credit / call

    Returns detailed exchange info including description, trust score, volume, and social links.

    exchange_id
    string · required
  • Exchanges

    cg_exchangesread1 credit / call

    Returns top crypto exchanges ranked by trust score and 24h BTC volume.

    limit
    integer
    page
    integer
  • Exchange Volume Chart

    cg_exchange_volume_chartread1 credit / call

    Returns hourly BTC volume history for an exchange over 1 to 365 days.

    exchange_id
    string · required
    days
    integer
  • Global Market

    cg_global_marketread1 credit / call

    Returns a global crypto market summary including total market cap, volume, dominance, and coin counts.

  • NFTs

    cg_nftsread1 credit / call

    Returns an NFT collections list with platform and contract info.

    limit
    integer
    page
    integer
  • OHLC

    cg_ohlcread1 credit / call

    Returns OHLC candlestick price data for any coin over 1 to 365 days.

    coin_id
    string · required
    vs_currency
    string
    days
    string
  • Price History

    cg_price_historyread1 credit / call

    Returns historical price, market cap, and volume for any coin over 1 to 365 days or max.

    coin_id
    string · required
    vs_currency
    string
    days
    string
    interval
    string
  • Search

    cg_searchread1 credit / call

    Returns matching coins, exchanges, categories, and NFTs for a keyword.

    query
    string · required
  • Trending

    cg_trendingread1 credit / call

    Returns top trending coins, NFTs, and categories by search volume in the last 24 hours.

CoinGecko API questions

Is there an API for CoinGecko?
CoinGecko does not offer a public data API for this, but Anakin Wire provides 14 maintained endpoints for coingecko.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape CoinGecko data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when coingecko.com changes its markup, Anakin updates the action.
Do I need a CoinGecko account?
No. Every CoinGecko action listed here runs anonymously — no account and no credentials required.
What does the CoinGecko API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Finance APIs

All Finance sites