CoinGecko On-Chain Token Data API
Get on-chain token data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, configure supported query parameters and filters, and retrieve structured data including returned token contract address, source total-supply representation, and decimal-normalized total supply for token research pages, and pool context panels, ready for production pipelines and AI agent automation.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
CoinGecko On-Chain Token Data API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
CoinGecko On-Chain Token Data API
Provide the on-chain network ID and token address. data is one token object with market and supply attributes. include=top_pools requests related pools; include_composition and include_inactive_source control separate optional behavior.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | path: network, address; query: include, include_composition, include_inactive_source |
| Selected implementation | coingecko · CoinGecko — Token Data by Token Address |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Token research pages: Display identity, supply and reported market measures.
- Pool context panels: Request supported top-pool resources alongside the token.
Documented Response Fields
| Field | Meaning |
|---|---|
data.attributes.address |
Returned token contract address |
data.attributes.price_usd |
Reported token price in USD |
data.attributes.market_cap_usd |
Reported market capitalization in USD when available |
data.attributes.fdv_usd |
Reported fully diluted valuation in USD |
data.attributes.total_supply |
Source total-supply representation |
data.attributes.normalized_total_supply |
Decimal-normalized total supply |
data.attributes.last_trade_timestamp |
Reported most recent trade timestamp |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/coingecko/api/v3/onchain/networks/solana/tokens/8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is an official documentation reference that may contain historical values or optional sections. The calling template is independent; match returned resource identifiers, timestamps and requested options before using the data.
Published CoinGecko On-Chain Token Data API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
CoinGeckoCurrent CoinGecko — Token Data by Token Address · GET · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/onchain/networks/{network}/tokens/{address}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
network | URL path parameterspath | string | Yes | Network ID. *refers to [`/onchain/networks`](/reference/networks-list). |
address | URL path parameterspath | string | Yes | Token contract address. |
include | URL query parametersquery | string | No | Attributes to include. enum: "top_pools" |
include_composition | URL query parametersquery | boolean | No | Include pool composition. Default: `false` |
include_inactive_source | URL query parametersquery | boolean | No | Include token data from inactive pools using the most recent swap. Default: `false` |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
dataobjectattributesobjectaddressstringcoingecko_coin_idstringdecimalsintegerfdv_usdstringimage_urlstringlast_trade_timestampstringlaunchpad_detailsobjectcompletedbooleancompleted_atstringgraduation_percentagenumbermigrated_destination_pool_addressstring
market_cap_usdstringnamestringnormalized_total_supplystringprice_usdstringsymbolstringtotal_reserve_in_usdstringtotal_supplystringvolume_usdobjecth24string
idstringrelationshipsobjecttop_poolsobjectdataobject[]idstringtypestring
typestring
includedobject[]attributesobjectaddressstringbase_token_balancestringbase_token_liquidity_usdstringbase_token_price_native_currencystringbase_token_price_quote_tokenstringbase_token_price_usdstringfdv_usdstringlast_trade_timestampstringmarket_cap_usdstringnamestringpool_created_atstringprice_change_percentageobjecth1stringh24stringh6stringm15stringm30stringm5string
quote_token_balancestringquote_token_liquidity_usdstringquote_token_price_base_tokenstringquote_token_price_native_currencystringquote_token_price_usdstringreserve_in_usdstringtoken_price_usdstringtransactionsobjecth1objectbuyersintegerbuysintegersellersintegersellsinteger
h24objectbuyersintegerbuysintegersellersintegersellsinteger
h6objectbuyersintegerbuysintegersellersintegersellsinteger
m15objectbuyersintegerbuysintegersellersintegersellsinteger
m30objectbuyersintegerbuysintegersellersintegersellsinteger
m5objectbuyersintegerbuysintegersellersintegersellsinteger
volume_usdobjecth1stringh24stringh6stringm15stringm30stringm5string
idstringrelationshipsobjectbase_tokenobjectdataobjectidstringtypestring
dexobjectdataobjectidstringtypestring
quote_tokenobjectdataobjectidstringtypestring
typestring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Official response / contract request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 5
Review these request fields before running. Keep the published provider and request method unchanged.
network- Network ID. *refers to [`/onchain/networks`](/reference/networks-list).
address- Token contract address.
include- Attributes to include.
include_composition- Include pool composition. Default: `false`
include_inactive_source- Include token data from inactive pools using the most recent swap. Default: `false`
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/coingecko/api/v3/onchain/networks/solana/tokens/8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "data": { "attributes": { "address": "8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump", "coingecko_coin_id": "wojak-4", "decimals": 6, "fdv_usd": "2107721.35423239", "image_url": "https://coin-images.coingecko.com/coins/images/70552/large/o6zl61yh9k32fu3rimuoe4sxlfeq.?1762469550", "last_trade_timestamp": "1790730160", "launchpad_details": { "completed": true, "completed_at": "2025-11-03T20:41:29.000Z", "graduation_percentage": 100.0, "migrated_destination_pool_address": "FDrY5i5kuadZ1ik8gPS26qjj9Rw9mpufXMegGC2HNSP7" }, "market_cap_usd": "2107721.3542324", "name": "Wojak", "normalized_total_supply": "999846202.569505", "price_usd": "0.002108045566", "symbol": "WOJAK", "total_reserve_in_usd": "324836.697324327524302253045722035111416063520235345591137965837590196823952", "total_supply": "999846202569505.0", "volume_usd": { "h24": "235212.154504941" } }, "id": "solana_8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump", "relationships": { "top_pools": { "data": [ { "id": "solana_FDrY5i5kuadZ1ik8gPS26qjj9Rw9mpufXMegGC2HNSP7", "type": "pool" } ] } }, "type": "token" }, "included": [ { "attributes": { "address": "FDrY5i5kuadZ1ik8gPS26qjj9Rw9mpufXMegGC2HNSP7", "base_token_balance": "89850308.783025", "base_token_liquidity_usd": "189262.4977768931995821450829183274527396144422153271057", "base_token_price_native_currency": "0.0000176991479492709", "base_token_price_quote_token": "0.00001769914795", "base_token_price_usd": "0.00210804556622384486732684033609689566750787551092744720636443282", "fdv_usd": "2107721.35400858", "last_trade_timestamp": "1790730702", "market_cap_usd": "2107721.35400859", "name": "WOJAK / SOL", "pool_created_at": "2025-11-03T20:41:29Z", "price_change_percentage": { "h1": "0.29", "h24": "-18.37", "h6": "-4.34", "m15": "0.21", "m30": "0.36", "m5": "0" }, "quote_token_balance": "1587.903236302", "quote_token_liquidity_usd": "188980.3581231072840151000952817560870073139787", "quote_token_price_base_token": "56499.8949591353", "quote_token_price_native_currency": "1.0", "quote_token_price_usd": "119.104353060718103222982579358448975276457545138", "reserve_in_usd": "378242.8559", "token_price_usd": "0.00210804556622384486732684033609689566750787551092744720636443282", "transactions": { "h1": { "buyers": 7, "buys": 10, "sellers": 3, "sells": 3 }, "h24": { "buyers": 449, "buys": 718, "sellers": 478, "sells": 756 }, "h6": { "buyers": 60, "buys": 90, "sellers": 74, "sells": 103 }, "m15": { "buyers": 2, "buys": 2, "sellers": 0, "sells": 0 }, "m30": { "buyers": 4, "buys": 7, "sellers": 3, "sells": 3 }, "m5": { "buyers": 1, "buys": 1, "sellers": 0, "sells": 0 } }, "volume_usd": { "h1": "418.5146583339", "h24": "196594.914390978", "h6": "21670.2337988852", "m15": "101.6537126364", "m30": "412.9239965688", "m5": "95.7039366558" } }, "id": "solana_FDrY5i5kuadZ1ik8gPS26qjj9Rw9mpufXMegGC2HNSP7", "relationships": { "base_token": { "data": { "id": "solana_8J69rbLTzWWgUJziFY8jeu5tDwEPBwUz4pKBMr5rpump", "type": "token" } }, "dex": { "data": { "id": "pumpswap", "type": "dex" } }, "quote_token": { "data": { "id": "solana_So11111111111111111111111111111111111111112", "type": "token" } } }, "type": "pool" } ] }