Finance
CoinGecko logo

CoinGecko API

coingecko.com

CoinGecko — live crypto prices, market data, OHLC charts, trending coins, exchange rankings, DeFi stats, derivatives, NFTs, and global 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

    Crypto market categories with market cap, volume, and top coins.

    order
    string
    limit
    integer
  • Coin Details

    cg_coin_detailsread1 credit / call

    Full details for a coin: description, sentiment, categories, market data with price changes across timeframes.

    coin_id
    string · required
  • Coin Markets

    cg_coin_marketsread1 credit / call

    Live prices and market data for top coins or a specific list. Filter by category, sort by market cap or volume.

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

    cg_defi_globalread1 credit / call

    Global DeFi market stats: market cap, volume, dominance, top DeFi coin.

  • Derivatives

    cg_derivativesread1 credit / call

    Crypto derivatives (futures/perpetuals): open interest, funding rates, basis, spreads.

    limit
    integer
  • Exchange Details

    cg_exchange_detailsread1 credit / call

    Detailed info for an exchange: description, trust score, volume, social links.

    exchange_id
    string · required
  • Exchange Volume Chart

    cg_exchange_volume_chartread1 credit / call

    Hourly BTC volume history for an exchange over 1-365 days.

    exchange_id
    string · required
    days
    integer
  • Exchanges

    cg_exchangesread1 credit / call

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

    limit
    integer
    page
    integer
  • Global Market

    cg_global_marketread1 credit / call

    Global crypto market summary: total market cap, volume, BTC/ETH dominance, coin counts.

  • NFTs

    cg_nftsread1 credit / call

    NFT collections list with platform and contract info.

    limit
    integer
    page
    integer
  • OHLC

    cg_ohlcread1 credit / call

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

    coin_id
    string · required
    vs_currency
    string
    days
    string
  • Price History

    cg_price_historyread1 credit / call

    Historical price, market cap, and volume for any coin over 1-365 days or max.

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

    cg_searchread1 credit / call

    Search for coins, exchanges, categories, and NFTs by keyword.

    query
    string · required
  • Trending

    cg_trendingread1 credit / call

    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