OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
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
USE THIS API

CoinGecko On-Chain Token Data API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
CoinGecko On-Chain Token Data API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Network ID. *refers to [`/onchain/networks`](/reference/networks-list).
Token contract address.
Optional parameters (3)
Attributes to include.
Include pool composition. Default: `false`
Include token data from inactive pools using the most recent swap. Default: `false`

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
CoinGeckoCurrent
CoinGecko — Token Data by Token Address · GET · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · CoinGeckoUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
networkURL path parameterspathstringYes

Network ID. *refers to [`/onchain/networks`](/reference/networks-list).

addressURL path parameterspathstringYes

Token contract address.

includeURL query parametersquerystringNo

Attributes to include.

enum: "top_pools"

include_compositionURL query parametersquerybooleanNo

Include pool composition. Default: `false`

include_inactive_sourceURL query parametersquerybooleanNo

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

Inferred from examples
  • dataobject
    • attributesobject
      • addressstring
      • coingecko_coin_idstring
      • decimalsinteger
      • fdv_usdstring
      • image_urlstring
      • last_trade_timestampstring
      • launchpad_detailsobject
        • completedboolean
        • completed_atstring
        • graduation_percentagenumber
        • migrated_destination_pool_addressstring
      • market_cap_usdstring
      • namestring
      • normalized_total_supplystring
      • price_usdstring
      • symbolstring
      • total_reserve_in_usdstring
      • total_supplystring
      • volume_usdobject
        • h24string
    • idstring
    • relationshipsobject
      • top_poolsobject
        • dataobject[]
          • idstring
          • typestring
    • typestring
  • includedobject[]
    • attributesobject
      • addressstring
      • base_token_balancestring
      • base_token_liquidity_usdstring
      • base_token_price_native_currencystring
      • base_token_price_quote_tokenstring
      • base_token_price_usdstring
      • fdv_usdstring
      • last_trade_timestampstring
      • market_cap_usdstring
      • namestring
      • pool_created_atstring
      • price_change_percentageobject
        • h1string
        • h24string
        • h6string
        • m15string
        • m30string
        • m5string
      • quote_token_balancestring
      • quote_token_liquidity_usdstring
      • quote_token_price_base_tokenstring
      • quote_token_price_native_currencystring
      • quote_token_price_usdstring
      • reserve_in_usdstring
      • token_price_usdstring
      • transactionsobject
        • h1object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
        • h24object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
        • h6object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
        • m15object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
        • m30object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
        • m5object
          • buyersinteger
          • buysinteger
          • sellersinteger
          • sellsinteger
      • volume_usdobject
        • h1string
        • h24string
        • h6string
        • m15string
        • m30string
        • m5string
    • idstring
    • relationshipsobject
      • base_tokenobject
        • dataobject
          • idstring
          • typestring
      • dexobject
        • dataobject
          • idstring
          • typestring
      • quote_tokenobject
        • dataobject
          • idstring
          • typestring
    • typestring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      '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'
  3. 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"
        }
      ]
    }

Common questions

Is this a token or pool address lookup?

Supply a token contract address. Pool addresses identify separate resources.

How do I request related top pools?

Set include=top_pools. Keep the main token data object separate from related included pool records.

Are total_supply and normalized_total_supply the same representation?

No. Retain the source representation and decimals when interpreting raw supply, and use the normalized value according to its meaning.

Does including inactive sources ensure a fresh price?

No. It allows the most recent swap from inactive pools. Inspect last_trade_timestamp and preserve unavailable market-cap fields.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

Use CoinGecko On-Chain Token Data API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.