> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# CoinGecko

> Crypto prices, market data, history, OHLC candles and trending coins from CoinGecko.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/coingecko.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=d622829182dc351b03eafeeab5a62470)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Key optional

Endpoints

11

Auth

Key in header

[Vendor docs](https://docs.coingecko.com/reference/introduction)

&#x20;·&#x20;

[Pricing](https://www.coingecko.com/en/api/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `COINGECKO_DEMO_API_KEY` | some calls | a CoinGecko Demo (free) API key (coingecko.com/en/developers/dashboard); use with host api.coingecko.com |
| `COINGECKO_PRO_API_KEY` | some calls | a CoinGecko paid-plan API key (coingecko.com/en/developers/dashboard); use with host pro-api.coingecko.com |
| `COINGECKO_HOST` | optional | api.coingecko.com for the Demo (free) plan, pro-api.coingecko.com for paid plans. Default `api.coingecko.com`. One of `api.coingecko.com`, `pro-api.coingecko.com`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Set COINGECKO\_HOST to pro-api.coingecko.com for a paid key; the default api.coingecko.com is the Demo (free) host. Each key is sent only to its own host: the Demo key to api.coingecko.com, the paid key to pro-api.coingecko.com.
* Each successful call spends 1 monthly credit; rate limits depend on the plan.
* Some endpoints and parameters need Analyst plan or above; the Demo plan covers a subset.
* Coin ids are CoinGecko slugs (bitcoin, not BTC); look them up with coingecko.search or coingecko.coins.list.

## Endpoints

GET

Get coin prices

Current price of one or more coins in one or more currencies, by id, name or symbol.

[Open](#coingecko-price-simple)

GET

List coins with market data

Price, market cap, volume and change for many coins at once, ranked.

[Open](#coingecko-coins-markets)

GET

Get a coin's metadata and market data

Everything CoinGecko holds on one coin: description, links, market data, tickers.

[Open](#coingecko-coins-get)

GET

Get a coin's price history

Prices, market caps and volumes over the last N days, as \[timestamp\_ms, value] pairs.

[Open](#coingecko-coins-market-chart)

GET

Get a coin's OHLC candles

Open, high, low, close candles for the last N days.

[Open](#coingecko-coins-ohlc)

GET

Get a coin's snapshot on a date

Price, market cap and volume at 00:00 UTC on a given day.

[Open](#coingecko-coins-history)

GET

List all coins

Every supported coin with its id, symbol and name; use it to map symbols to ids.

[Open](#coingecko-coins-list)

GET

Search coins, categories and markets

Search by name or symbol; results are sorted by market cap.

[Open](#coingecko-search)

GET

List trending searches

Coins, NFTs and categories most searched in the last 24 hours.

[Open](#coingecko-trending)

GET

Get global crypto market data

Total market cap, volume, dominance and active coin counts.

[Open](#coingecko-global)

GET

Check server status

Answers with a greeting when the API is up.

[Open](#coingecko-ping)

### Get coin prices

GET

`/simple/price`

`coingecko.price.simple`

Current price of one or more coins in one or more currencies, by id, name or symbol.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`vs_currencies` required</td><td>string</td><td>query</td><td>Comma-separated target currencies. Example `usd`</td></tr>
    <tr><td>`ids`</td><td>string</td><td>query</td><td>Comma-separated coin ids; wins over names and symbols. Example `bitcoin,ethereum`</td></tr>

    <tr>
      <td>
        `names`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated coin names.
      </td>
    </tr>

    <tr>
      <td>
        `symbols`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated symbols.
      </td>
    </tr>

    <tr>
      <td>
        `include_market_cap`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add market cap.
      </td>
    </tr>

    <tr>
      <td>
        `include_24hr_vol`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add 24-hour volume.
      </td>
    </tr>

    <tr>
      <td>
        `include_24hr_change`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add 24-hour change percentage.
      </td>
    </tr>

    <tr>
      <td>
        `include_last_updated_at`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the last-updated UNIX timestamp.
      </td>
    </tr>

    <tr>
      <td>
        `precision`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places for the price.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/simple-price) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("coingecko.price.simple", {'vs_currencies': 'usd', 'ids': 'bitcoin,ethereum'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.price.simple", params={"vs_currencies": "usd", "ids": "bitcoin,ethereum"})
```

> [!NOTE]
>
> * Up to 515 ids per call.
> * A symbol lookup returns only the top-ranked coin per symbol unless include\_tokens=all.

### List coins with market data

GET

`/coins/markets`

`coingecko.coins.markets`

Price, market cap, volume and change for many coins at once, ranked.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`vs_currency` required</td><td>string</td><td>query</td><td>Target currency, e.g. usd. Example `usd`</td></tr>

    <tr>
      <td>
        `ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated coin ids.
      </td>
    </tr>

    <tr>
      <td>
        `category`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Coin category id; wins over ids.
      </td>
    </tr>

    <tr>
      <td>
        `order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sort field, default market\_cap\_desc.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 250; default 100.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `sparkline`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add 7-day sparkline.
      </td>
    </tr>

    <tr>
      <td>
        `price_change_percentage`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Extra change windows, comma-separated, e.g. 1h,24h,7d.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-markets) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("coingecko.coins.markets", {'vs_currency': 'usd'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.markets", params={"vs_currency": "usd"})
```

> [!NOTE]
>
> * Page with page and per\_page; at most 250 ids per call.

### Get a coin's metadata and market data

GET

`/coins/{id}`

`coingecko.coins.get`

Everything CoinGecko holds on one coin: description, links, market data, tickers.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Coin API id, e.g. bitcoin (from coingecko.coins.list or search). Example `bitcoin`</td></tr>

    <tr>
      <td>
        `localization`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include all localized names; default true.
      </td>
    </tr>

    <tr>
      <td>
        `tickers`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include tickers; default true.
      </td>
    </tr>

    <tr>
      <td>
        `market_data`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include market data; default true.
      </td>
    </tr>

    <tr>
      <td>
        `sparkline`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include 7-day sparkline.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-id) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("coingecko.coins.get", {'id': 'bitcoin'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.get", params={"id": "bitcoin"})
```

> [!NOTE]
>
> * The payload is large; turn off localization and tickers to shrink it.

### Get a coin's price history

GET

`/coins/{id}/market_chart`

`coingecko.coins.market_chart`

Prices, market caps and volumes over the last N days, as \[timestamp\_ms, value] pairs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Coin API id, e.g. bitcoin (from coingecko.coins.list or search). Example `bitcoin`</td></tr>
    <tr><td>`vs_currency` required</td><td>string</td><td>query</td><td>Target currency, e.g. usd. Example `usd`</td></tr>
    <tr><td>`days` required</td><td>string</td><td>query</td><td>Days back: an integer or max. Example `30`</td></tr>

    <tr>
      <td>
        `interval`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        daily or hourly; leave empty for automatic granularity.
      </td>
    </tr>

    <tr>
      <td>
        `precision`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places for prices.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-id-market-chart) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("coingecko.coins.market_chart", {'id': 'bitcoin', 'vs_currency': 'usd', 'days': '30'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.market_chart", params={"id": "bitcoin", "vs_currency": "usd", "days": "30"})
```

> [!NOTE]
>
> * Automatic granularity: 5-minute for 1 day, hourly for 2 to 90 days, daily above 90 days.
> * Timestamps are epoch milliseconds. Basic plan history is limited to the past 2 years.

### Get a coin's OHLC candles

GET

`/coins/{id}/ohlc`

`coingecko.coins.ohlc`

Open, high, low, close candles for the last N days.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Coin API id, e.g. bitcoin (from coingecko.coins.list or search). Example `bitcoin`</td></tr>
    <tr><td>`vs_currency` required</td><td>string</td><td>query</td><td>Target currency, e.g. usd. Example `usd`</td></tr>
    <tr><td>`days` required</td><td>string</td><td>query</td><td>Days back, e.g. 1, 7, 14, 30, 90, 180, 365, max. Example `7`</td></tr>

    <tr>
      <td>
        `interval`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        daily or hourly, paid plans only.
      </td>
    </tr>

    <tr>
      <td>
        `precision`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Decimal places.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-id-ohlc) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("coingecko.coins.ohlc", {'id': 'bitcoin', 'vs_currency': 'usd', 'days': '7'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.ohlc", params={"id": "bitcoin", "vs_currency": "usd", "days": "7"})
```

> [!NOTE]
>
> * Each candle is \[close\_time\_ms, open, high, low, close]. Candle width is automatic: 30 minutes for 1 to 2 days, 4 hours for 3 to 30, 4 days beyond.

### Get a coin's snapshot on a date

GET

`/coins/{id}/history`

`coingecko.coins.history`

Price, market cap and volume at 00:00 UTC on a given day.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Coin API id, e.g. bitcoin (from coingecko.coins.list or search). Example `bitcoin`</td></tr>
    <tr><td>`date` required</td><td>string</td><td>query</td><td>Snapshot date, YYYY-MM-DD. Example `2025-12-30`</td></tr>

    <tr>
      <td>
        `localization`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include localized names.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-id-history) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("coingecko.coins.history", {'id': 'bitcoin', 'date': '2025-12-30'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.history", params={"id": "bitcoin", "date": "2025-12-30"})
```

> [!NOTE]
>
> * The data is a snapshot at 00:00:00 UTC; the last completed day appears 35 minutes after midnight UTC. Basic plan history is limited to 2 years.

### List all coins

GET

`/coins/list`

`coingecko.coins.list`

Every supported coin with its id, symbol and name; use it to map symbols to ids.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `include_platform`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add contract addresses per platform.
      </td>
    </tr>

    <tr>
      <td>
        `status`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        active (default) or inactive.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/coins-list)

```python Python theme={null}
router.call_data_api("coingecko.coins.list")
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.coins.list")
```

> [!NOTE]
>
> * Not paginated; the response holds many thousands of rows.

### Search coins, categories and markets

GET

`/search`

`coingecko.search`

Search by name or symbol; results are sorted by market cap.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Search text. Example `bitcoin`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/search-data)

```python Python theme={null}
router.call_data_api("coingecko.search", {'query': 'bitcoin'})
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.search", params={"query": "bitcoin"})
```

### List trending searches

GET

`/search/trending`

`coingecko.trending`

Coins, NFTs and categories most searched in the last 24 hours.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `show_max`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        coins, nfts or categories (comma-separated) to return the maximum; Analyst plan and above.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.coingecko.com/reference/trending-search)

```python Python theme={null}
router.call_data_api("coingecko.trending")
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.trending")
```

### Get global crypto market data

GET

`/global`

`coingecko.global`

Total market cap, volume, dominance and active coin counts.

Input

No inputs.

[Vendor docs](https://docs.coingecko.com/reference/crypto-global)

```python Python theme={null}
router.call_data_api("coingecko.global")
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.global")
```

### Check server status

GET

`/ping`

`coingecko.ping`

Answers with a greeting when the API is up.

Input

No inputs.

[Vendor docs](https://docs.coingecko.com/reference/ping-server)

```python Python theme={null}
router.call_data_api("coingecko.ping")
```

```text MCP theme={null}
call_data_api(endpoint="coingecko.ping")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.