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

# Keyless Public API

> Start testing CoinGecko data instantly — no API key, no sign-up

The Keyless Public API lets you query crypto market data and onchain DEX data without creating an account or managing API keys. Useful for quick prototyping, open-source projects, and educational use.

```bash theme={null}
curl -X GET \
  "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum,solana&vs_currencies=usd"
```

No headers, no auth — just send a request.

***

## Base URLs

| Data                                                                    | Base URL                               |
| ----------------------------------------------------------------------- | -------------------------------------- |
| **CoinGecko**<br />Prices, market data, trending, global stats          | `https://api.coingecko.com/api/v3`     |
| **GeckoTerminal (Onchain DEX)**<br />Pools, tokens, trades, OHLCV chart | `https://api.geckoterminal.com/api/v2` |

<Note>
  The onchain base URL (`api.geckoterminal.com`) differs from the `/onchain` path used with keyed API plans. See [GeckoTerminal DEX API](https://www.geckoterminal.com/dex-api) for full endpoint docs.
</Note>

<Warning>
  **Do NOT** include `x-cg-demo-api-key` or `x-cg-pro-api-key` headers — they are not needed and will be ignored.
</Warning>

***

## Rate Limits

All keyless requests share an IP-based rate pool:

* **CoinGecko endpoints:** \~10–30 calls/min (dynamic, varies by server load)
* **GeckoTerminal endpoints:** \~10 calls/min

If you hit a `429 Too Many Requests`, back off exponentially before retrying.

<Warning>
  Rate limits are significantly lower than any keyed plan. The keyless API is not suitable for production workloads, scheduled polling, or high-frequency updates.

  [Upgrade to a paid plan](https://www.coingecko.com/en/api/pricing) for dedicated rate limits and higher credits.
</Warning>

***

## Available Endpoints

50+ CoinGecko endpoints and 20 onchain DEX endpoints — no sign-up required.<br />
See the full list in the [Demo Endpoint Overview](/demo/reference/endpoint-overview).

### CoinGecko

| Endpoint                                                            | Description                                    |
| ------------------------------------------------------------------- | ---------------------------------------------- |
| [/simple/price](/demo/reference/simple-price)                       | Prices of one or more coins by Coin API IDs    |
| [/simple/token\_price/\{id}](/demo/reference/simple-token-price)    | Token prices by contract addresses             |
| [/coins/markets](/demo/reference/coins-markets)                     | All coins with price, market cap, volume       |
| [/coins/\{id}](/demo/reference/coins-id)                            | Metadata and market data of a coin             |
| [/coins/\{id}/market\_chart](/demo/reference/coins-id-market-chart) | Historical price, market cap, and volume chart |
| [/coins/\{id}/ohlc](/demo/reference/coins-id-ohlc)                  | OHLC candlestick chart                         |
| [/coins/categories](/demo/reference/coins-categories)               | All coin categories with market data           |
| [/search/trending](/demo/reference/trending-search)                 | Trending coins, NFTs, and categories           |
| [/global](/demo/reference/crypto-global)                            | Global crypto market stats                     |
| [/exchange\_rates](/demo/reference/exchange-rates)                  | BTC exchange rates with other currencies       |
|  [Explore more →](/demo/reference/endpoint-overview#coingecko)      |                                                |

### GeckoTerminal (Onchain DEX)

| Endpoint                                                                                                            | Description                                      |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [/simple/networks/\{network}/token\_price<br />/\{addresses}](/demo/reference/onchain-simple-price)                 | Token prices by contract addresses on a network  |
| [/networks/\{network}/pools/\{address}](/demo/reference/pool-address)                                               | Pool data by network and pool address            |
| [/networks/\{network}/tokens/\{address}](/demo/reference/token-data-contract-address)                               | Token data by contract address on a network      |
| [/networks/trending\_pools](/demo/reference/trending-pools-list)                                                    | Trending pools across all networks               |
| [/networks/\{network}/trending\_pools](/demo/reference/trending-pools-network)                                      | Trending pools on a specific network             |
| [/networks/new\_pools](/demo/reference/latest-pools-list)                                                           | Newest pools across all networks                 |
| [/networks/\{network}/pools/\{pool\_address}<br />/ohlcv/\{timeframe}](/demo/reference/pool-ohlcv-contract-address) | OHLCV chart by pool address                      |
| [/networks/\{network}/pools/\{pool\_address}<br />/trades](/demo/reference/pool-trades-contract-address)            | Last 300 trades in past 24 hours by pool address |
|  [Explore more →](/demo/reference/endpoint-overview#onchain)                                                        |                                                  |

***

## Examples

### CoinGecko

* Get the top 10 coins by market cap:

  ```bash theme={null}
  curl -X GET \
    "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&per_page=10&page=1"
  ```

* Get Bitcoin's past 30 days of daily price data:

  ```bash theme={null}
  curl -X GET \
    "https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=usd&days=30&interval=daily"
  ```

* Get trending coins, NFTs, and categories:

  ```bash theme={null}
  curl -X GET \
    "https://api.coingecko.com/api/v3/search/trending"
  ```

### GeckoTerminal (Onchain DEX)

* Get trending pools on Solana:

  ```bash theme={null}
  curl -X GET \
    "https://api.geckoterminal.com/api/v2/networks/solana/trending_pools"
  ```

* Get newest pools across all networks:

  ```bash theme={null}
  curl -X GET \
    "https://api.geckoterminal.com/api/v2/networks/new_pools?include=base_token"
  ```

* Get OHLCV chart for a pool on Ethereum:

  ```bash theme={null}
  curl -X GET \
    "https://api.geckoterminal.com/api/v2/networks/eth/pools/0xa43fe16908251ee70ef74718545e4fe6c5ccec9f/ohlcv/hour?token=base&aggregate=4&limit=100&currency=usd"
  ```

***

## Ready for More?

<CardGroup cols={2}>
  <Card title="Free Demo API Key" icon="code" href="/demo/reference/authentication">
    Sign up for a free Demo key — same endpoints, higher rate limits, and usage tracking.
  </Card>

  <Card title="Upgrade to Pro" icon="rocket" href="https://www.coingecko.com/en/api/pricing">
    Unlock 80+ endpoints, WebSocket, Webhooks, and production-grade rate limits.
  </Card>
</CardGroup>
