Skip to main content
Three ways to access CoinGecko data. Pick the one that fits your application — or combine them.
Diagram showing three data delivery methods: REST API uses HTTP request-response, WebSocket maintains a persistent connection, and Webhook sends event-driven HTTP callbacks
REST APIWebSocket BETAWebhooks NEW
CommunicationRequest → ResponsePersistent connectionEvent-driven callback
Data flowYou pullPushed to youPushed to you
LatencyPer-requestReal-timeNear real-time
Use caseOn-demand queries, pollingLive streaming, tradingReacting to data changes

Share Feedback

Tell us how you use CoinGecko’s data delivery methods and what you’d like to see next.

REST API — You ask, we answer

Send an HTTP request, get a JSON response. The simplest way to query prices, market data, historical charts, and more.
curl "https://pro-api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd" \
  -H "x-cg-pro-api-key: YOUR_API_KEY"

Best for

  • On-demand data fetches (prices, coin info, historical charts)
  • Periodic polling on a schedule
  • Backfilling or one-time data pulls
  • Prototyping and quick integrations

Coverage

  • 50+ endpoints on Demo & Basic plans
  • 80+ endpoints on Analyst plan & above
  • Prices, market data, exchanges, NFTs, onchain DEX data, and more
Available on all plans, including the free Demo plan.

Explore REST API Endpoints

Browse all available endpoints across CoinGecko and Onchain APIs.

WebSocket — Stream data in real time

A persistent connection that pushes updates to your application as they happen. Subscribe once, receive continuous data — no repeated requests.

Best for

  • Live price tickers and trading dashboards
  • Real-time DEX trade monitoring
  • Streaming OHLCV candlestick charts
  • Any application where latency matters

Channels

  • C1 — CoinGecko coin prices
  • G1 — Onchain token prices
  • G2 — Onchain trades
  • G3 — Onchain OHLCV candles

Explore WebSocket Channels

Stream real-time prices, trades, and OHLCV data.

Webhooks — Get notified when data changes

Event-driven callbacks that push notifications to your server when specific changes happen on CoinGecko — no polling required.

Best for

  • Keeping your database in sync with CoinGecko
  • Reacting to coin metadata changes (rebrands, new chains, alerts)
  • Compliance and risk monitoring
  • Replacing cron jobs with event-driven updates

Events

  • cg.coin.info.updated — coin metadata changes across all active coins
  • cg.coin.price.updated — price target alerts (Private Beta)
  • cg.coin.listed — new token listings (Private Beta)

Explore Webhook Events

Set up event-driven notifications for coin data changes.

Plan Access

REST APIWebSocket BETAWebhooks NEW
Demo (Free)50+ endpoints
Basic50+ endpoints
Analyst & above80+ endpoints
Enterprise80+ endpoints
Credit cost1 per call0.1 per response10 per event
Not sure which plan to choose? Check out the pricing page for a full breakdown.

Which Method Should You Use?

Use REST API to fetch prices and historical data on a schedule. Add WebSocket if you need live price updates on a dashboard.
Use WebSocket for real-time price feeds and trade data. Supplement with REST API for reference data like coin metadata or historical OHLC.
Use Webhooks to receive notifications when data changes — no constant polling. Use REST API to backfill or fetch full records on demand.
Start with REST API — available on all plans including the free Demo. Add WebSocket or Webhooks later as your needs grow.

Share Feedback

Tell us how you use CoinGecko’s data delivery methods and what you’d like to see next.