CoinGecko On Chain API

The On Chain API from CoinGecko — 38 operation(s) for on chain.

GitHub OpenAPI
Business capability
On-Chain Data & Indexing AE-240.30

Operations 38

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /onchain/networks/{network}/pools/{address} Get a pool's data by address · Specific Pool Data by Pool Address #
Ask an LLM
“What are the base and quote tokens of a pool at a given address?”
“Can I see the DEX a pool belongs to from its address?”
Tell an agent
Get pool {address} on {network}.
Show the base and quote tokens of pool {address} on {network}.
GET /onchain/networks/{network}/pools List top pools on a network · Top Pools by Network #
Ask an LLM
“Which pools rank highest on a network by volume?”
“Can I sort a network's top pools by transaction count?”
Tell an agent
List top pools on {network}.
Show top pools on {network} sorted by {sort}.
GET /onchain/networks/{network}/dexes/{dex}/pools List top pools of a DEX · Top Pools by DEX #
Ask an LLM
“What are the largest liquidity pools on a decentralized exchange?”
“Can I sort a DEX's pools by 24-hour transaction count?”
Tell an agent
List the top pools on {network} DEX {dex}.
Show {dex} pools on {network} sorted by {sort}.
GET /onchain/pools/megafilter Filter pools across all networks · Megafilter for Pools #
Ask an LLM
“Can I find pools with low buy tax and high holder count across all networks?”
“What's the maximum number of pools a megafilter can return?”
Tell an agent
Find pools across all networks with buy tax under {buy_tax_percentage_max}.
Filter pools by quote token {quote_token_addresses} and 24-hour volume over {h24_volume_usd_min}.
GET /onchain/networks/{network}/tokens/{token_address}/pools List top pools of a token · Top Pools by Token Address #
Ask an LLM
“Which liquidity pools hold a particular token?”
“Can I include pools using inactive sources when looking up a token's pools?”
Tell an agent
List the top pools holding token {token_address} on {network}.
Show {network} pools for {token_address} sorted by {sort}.
GET /onchain/networks/{network}/tokens/{address} Get a token's data by address · Token Data by Token Address #
Ask an LLM
“What is the name, symbol and website of a token at a given address?”
“Can I see a token's social links from its contract address?”
Tell an agent
Get token {address} on {network}.
Show the name, symbol and websites of {address} on {network}.
GET /onchain/networks/{network}/tokens/multi/{addresses} Get several tokens' data by address · Tokens Data by Token Addresses #
Ask an LLM
“Can I look up multiple tokens' data in one request?”
“What's the maximum number of token addresses I can pass to a multi-token lookup?”
Tell an agent
Get tokens {addresses} on {network}.
Show the websites of {addresses} on {network}.
GET /onchain/tokens/multi Get tokens' data across networks · Tokens Data by Token Addresses across Networks #
Ask an LLM
“Can I look up tokens on different networks in a single request?”
“What's the maximum number of network:token pairs I can pass to a cross-network token lookup?”
Tell an agent
Get tokens {tokens} in one request.
Look up the websites of {tokens} across networks.
GET /onchain/networks/{network}/tokens/{address}/info Get on-chain info for a token · Token Info by Token Address #
Ask an LLM
“What is the name, symbol and website of a token by its contract address?”
“Can I get a token's CoinGecko ID and social links from its address?”
Tell an agent
Get on-chain info for token {address} on {network}.
Look up the metadata of {address} on {network}.
GET /onchain/networks/{network}/pools/{pool_address}/info Get on-chain info for a pool · Pool Tokens Info by Pool Address #
Ask an LLM
“Which base and quote tokens does a pool use?”
“Where can I find a pool's contract address and image?”
Tell an agent
Get on-chain info for pool {pool_address} on {network}.
Show base and quote details for pool {pool_address} on {network}.
GET /onchain/tokens/info_recently_updated List recently updated token info · Most Recently Updated Tokens List #
Ask an LLM
“Which tokens had their info updated most recently on GeckoTerminal?”
“Can I see the 100 most recently updated token profiles on one network?”
Tell an agent
List the 100 most recently updated token profiles across all networks.
Show the latest updated token info on {network}.
GET /onchain/networks/{network_id}/tokens/{token_address}/top_traders List top traders of a token · Top Token Traders by Token Address #
Ask an LLM
“Who are the top traders of a token on a network?”
“Can I sort a token's top traders by PnL?”
Tell an agent
List the top traders of {token_address} on {network_id}.
Show top {traders} traders of {token_address} on {network_id} sorted by {sort}.
GET /onchain/networks/{network}/tokens/{address}/top_holders List top holders of a token · Top Token Holders by Token Address #
Ask an LLM
“Who holds the most of a token on a network?”
“Can I see PnL details for a token's top holders?”
Tell an agent
List the top holders of {address} on {network}.
Show top {holders} holders of {address} on {network} with PnL details.
GET /onchain/networks/{network}/tokens/{token_address}/holders_chart Get a token's holder count history · Historical Token Holders Chart by Token Address #
Ask an LLM
“How has a token's holder count changed over time?”
“Can I get a token's holders chart for a set number of days?”
Tell an agent
Get the holders chart for {token_address} on {network}.
Show {days} days of holder history for {token_address} on {network}.
GET /onchain/networks/{network}/pools/{pool_address}/ohlcv/{timeframe} Get a pool's OHLCV chart · Pool OHLCV Chart by Pool Address #
Ask an LLM
“What are the open, high, low and close prices of a pool over time?”
“Can I get a pool's OHLCV chart for a specific timeframe?”
Tell an agent
Get the {timeframe} OHLCV chart for pool {pool_address} on {network}.
Show {limit} {timeframe} candles for {pool_address} on {network}.
GET /onchain/networks/{network}/tokens/{token_address}/ohlcv/{timeframe} Get a token's OHLCV chart · Token OHLCV Chart by Token Address #
Ask an LLM
“What is the price and volume history of a token over time?”
“Can I get token OHLCV data for a specific timeframe and currency?”
Tell an agent
Get the {timeframe} OHLCV chart for token {token_address} on {network}.
Chart {network} token {token_address} priced in {currency} for {timeframe}.
GET /onchain/networks/{network}/pools/{pool_address}/trades List trades for a pool · Trades by Pool Address #
Ask an LLM
“Which trades happened on a pool?”
“Can I filter a pool's trades by volume and lookback period?”
Tell an agent
List trades on pool {pool_address} on {network}.
Show trades on {pool_address} on {network} with volume over {trade_volume_in_usd_greater_than}.
GET /onchain/networks/{network}/pools/{pool_address}/trades/range Get trades for a pool in a time range · Trades within Time Range by Pool Address #
Ask an LLM
“How much volume did a specific pool trade over a given date range?”
“Can I filter a pool's trades to only those above a certain USD volume?”
Tell an agent
Get trades for pool {pool_address} on {network} from {from} to {to}.
Show {network} trades for pool {pool_address} between {from} and {to} with volume over {volume}.
GET /onchain/networks/{network}/pools/{pool_address}/liquidity_events Get add and remove liquidity events for a pool · Liquidity Events by Pool Address #
Ask an LLM
“Which liquidity events has a pool had recently?”
“Can I see only the adds or only the removes for a pool?”
Tell an agent
Get liquidity events for pool {pool_address} on {network}.
Show {kind} events for pool {pool_address} on {network}.
GET /onchain/networks/{network}/tokens/{token_address}/trades Get trades for a token across all pools · Trades by Token Address #
Ask an LLM
“What has been traded for a token across every pool on a network?”
“Can I limit token trades to a specific time period?”
Tell an agent
Get trades for token {token_address} on {network}.
Show {network} trades for {token_address} over the last {period}.
GET /onchain/networks/{network}/tokens/{token_address}/trades/range List trades of a token in a date range · Trades within Time Range by Token Address #
Ask an LLM
“What has every exchange traded a token for over the last month?”
“Can I filter a token's trades by volume and page through old trades?”
Tell an agent
List trades of {token_address} on {network} from {from} to {to}.
Show {network} trades in {token_address} between {from} and {to} above {volume_usd}.
GET /onchain/wallets/{address}/balances Get a wallet's token balances · Token Balances by Wallet Address #
Ask an LLM
“What tokens does a wallet hold and how much are they worth?”
“Can I filter a wallet's balances to only tokens worth more than a value?”
Tell an agent
Get token balances for wallet {address} on {networks}.
Show {networks} balances for {address} worth at least {value} USD.
GET /onchain/networks/{network}/wallets/{address}/transfers Get a wallet's token transfers · Token Transfers by Wallet Address #
Ask an LLM
“Which tokens has a wallet sent or received?”
“Can I see only incoming or outgoing transfers for a wallet?”
Tell an agent
Get token transfers for wallet {address} on {network}.
Show {direction} transfers for {address} on {network} from {from} to {to}.
GET /onchain/networks/{network}/wallets/{address}/trades Get a wallet's trades · Trades by Wallet Address #
Ask an LLM
“What has a wallet traded on a network?”
“Can I see only the trades a wallet made involving one token?”
Tell an agent
Get trades for wallet {address} on {network}.
Show {network} trades for {address} involving token {token}.
GET /onchain/wallets/{address}/pnl Get a wallet's PnL across networks · PnL by Wallet Address #
Ask an LLM
“What is a wallet's profit and loss across all its trades?”
“Can I sort a wallet's PnL by network?”
Tell an agent
Get PnL for wallet {address} across {networks}.
Show {networks} PnL for {address}.
GET /onchain/categories List supported token categories · Categories List #
Ask an LLM
“What categories of tokens does the on-chain data support?”
“Which category has the highest volume?”
Tell an agent
List supported token categories.
Show categories sorted by {sort}.
GET /onchain/categories/{category_id}/pools List pools in a category · Pools by Category ID #
Ask an LLM
“Which pools belong to a given category?”
“Can I include the base and quote tokens in a category's pools?”
Tell an agent
List pools in category {category_id}.
Show category {category_id} pools with {include} included.
GET /onchain/networks/new_pools List the newest pools across all networks · New Pools List #
Ask an LLM
“What are the latest pools launched on GeckoTerminal?”
“Can I include community data when listing new pools?”
Tell an agent
List the newest pools across all networks.
Show new pools with community data {include_gt_community_data}.
GET /onchain/networks/{network}/new_pools List the newest pools on a network · New Pools by Network #
Ask an LLM
“Which pools were launched most recently on a single network?”
“Can I include the base and quote tokens when listing new pools on a network?”
Tell an agent
List the newest pools on {network}.
Show new {network} pools with {include} included.
GET /onchain/networks/{network}/pools/multi/{addresses} Get several pools' data by address · Multiple Pools Data by Pool Addresses #
Ask an LLM
“Can I fetch data for multiple pools in one request?”
“Can I include pool composition when fetching several pools?”
Tell an agent
Get pools {addresses} on {network}.
Fetch {network} pools {addresses} with composition {include_composition}.
GET /onchain/search/pools Search pools and tokens by address or name · Search Pools & Tokens #
Ask an LLM
“Can I find a pool by its contract address?”
“Is there a way to search pools and tokens by symbol across networks?”
Tell an agent
Search pools and tokens for {query}.
Find pools and tokens matching {query} on {network}.
GET /onchain/simple/networks/{network}/token_price/{addresses} Get token prices on a network · Token Price by Token Addresses #
Ask an LLM
“What is the price of a token on a given network?”
“Can I get a token's market cap and 24-hour volume along with its price?”
Tell an agent
Get the price of {addresses} on {network}.
Show {network} prices for {addresses} with market cap {include_market_cap}.
GET /onchain/simple/token_price/multi Get token prices across networks in one request · Token Price by Token Addresses across Networks #
Ask an LLM
“Can I get token prices for the same token on several networks in a single call?”
“What is the fastest way to compare a token's price across networks?”
Tell an agent
Get prices for {tokens} across networks.
Compare {tokens} prices across networks with 24-hour volume {include_24hr_vol}.
GET /onchain/networks List supported networks · Networks List #
Ask an LLM
“Which blockchains does the on-chain data support?”
“What network IDs can I use for on-chain queries?”
Tell an agent
List all supported networks.
Show network {page} of supported chains.
GET /onchain/networks/{network}/dexes List DEXs on a network · DEXs List by Network #
Ask an LLM
“Which decentralized exchanges operate on a given network?”
“Can I page through the DEXs supported on a network?”
Tell an agent
List DEXs on {network}.
Show {page} of DEXs for {network}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coingecko:coingecko-on-chain-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coingecko-on-chain-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CoinGecko Pro Onchain API
  version: 3.0.0
servers:
- url: https://pro-api.coingecko.com/api/v3
security:
- headerAuth: []
- queryAuth: []
tags:


# --- truncated at 32 KB (314 KB total) ---
# Full source: https://artifacts.apis.io/coingecko/openapi/coingecko-on-chain-api-openapi.yml