OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
CoinGecko Coin by Contract API

Look up CoinGecko coin data by asset-platform ID and token contract address 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 resolved CoinGecko coin identifier, associated asset-platform identifier, english coin description, and reported data update timestamp for token-to-coin mapping, and asset detail pages.

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 Coin by Contract 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 Coin by Contract API

CoinGecko Coin by Contract API

In this route, id is the asset-platform ID, not a coin ID. Supply the token’s contract_address separately. The response is a coin-profile object and may describe mappings to other platforms as well as the queried contract.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs path: id, contract_address
Selected implementation coingecko · CoinGecko — Coin Data by Token Address
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Token-to-coin mapping: Resolve a contract to a CoinGecko coin profile.
  • Asset detail pages: Attach available profile and market metadata to a known token address.

Documented Response Fields

Field Meaning
id Resolved CoinGecko coin identifier
contract_address Token contract address in the response
asset_platform_id Associated asset-platform identifier
description.en English coin description
detail_platforms.<platform>.contract_address Contract mapping for a returned platform
last_updated Reported data update 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/coins/ethereum/contract/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 \
  -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 Coin by Contract 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
Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list).
The contract address of token.

Sample response

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

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
CoinGeckoCurrent
CoinGecko — Coin 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: 3. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/{id}/contract/{contract_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
idURL path parameterspathstringYes

Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list).

contract_addressURL path parameterspathstringYes

The contract address of token.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • additional_noticesunknown[]
  • asset_platform_idstring
  • block_time_in_minutesinteger
  • categoriesstring[]
  • contract_addressstring
  • country_originstring
  • descriptionobject
    • enstring
  • detail_platformsobject
    • ethereumobject
      • contract_addressstring
      • decimal_placeinteger
      • geckoterminal_urlstring
    • terra-2object
      • contract_addressstring
      • decimal_placeinteger
    • tronobject
      • contract_addressstring
      • decimal_placeinteger
      • geckoterminal_urlstring
  • genesis_datestring
  • has_supply_breakdownboolean
  • hashing_algorithmnull
  • idstring
  • imageobject
    • largestring
    • smallstring
    • thumbstring
  • last_updatedstring
  • linksobject
    • announcement_urlunknown[]
    • bitcointalk_thread_identifiernull
    • blockchain_sitestring[]
    • chat_urlunknown[]
    • facebook_usernamestring
    • homepagestring[]
    • official_forum_urlunknown[]
    • repos_urlobject
      • bitbucketunknown[]
      • githubunknown[]
    • snapshot_urlnull
    • subreddit_urlnull
    • telegram_channel_identifierstring
    • twitter_screen_namestring
    • whitepaperstring
  • localizationobject
    • destring
    • enstring
    • esstring
    • frstring
    • hustring
    • itstring
    • nlstring
    • plstring
    • ptstring
    • rostring
  • market_cap_ranknull
  • market_cap_rank_with_rehypothecatedinteger
  • market_dataobject
    • athobject
      • btcnumber
      • ethnumber
      • usdnumber
    • ath_change_percentageobject
      • btcnumber
      • ethnumber
      • usdnumber
    • ath_dateobject
      • btcstring
      • ethstring
      • usdstring
    • atlobject
      • btcnumber
      • ethnumber
      • usdnumber
    • atl_change_percentageobject
      • btcnumber
      • ethnumber
      • usdnumber
    • atl_dateobject
      • btcstring
      • ethstring
      • usdstring
    • circulating_supplynumber
    • current_priceobject
      • btcnumber
      • ethnumber
      • usdnumber
    • fdv_to_tvl_rationull
    • fully_diluted_valuationobject
      • btcinteger
      • ethinteger
      • usdinteger
    • high_24hobject
      • btcnumber
      • ethnumber
      • usdnumber
    • last_updatedstring
    • low_24hobject
      • btcnumber
      • ethnumber
      • usdnumber
    • market_capobject
      • btcinteger
      • ethinteger
      • usdinteger
    • market_cap_change_24hnumber
    • market_cap_change_24h_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • market_cap_change_percentage_24hnumber
    • market_cap_change_percentage_24h_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • market_cap_fdv_rationumber
    • market_cap_ranknull
    • market_cap_rank_with_rehypothecatedinteger
    • max_supplynull
    • max_supply_infiniteboolean
    • mcap_to_tvl_rationull
    • outstanding_supplynull
    • outstanding_token_value_usdnull
    • price_change_24hnumber
    • price_change_24h_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_14dnumber
    • price_change_percentage_14d_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_1h_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_1ynumber
    • price_change_percentage_1y_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_200dnumber
    • price_change_percentage_200d_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_24hnumber
    • price_change_percentage_24h_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_30dnumber
    • price_change_percentage_30d_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_60dnumber
    • price_change_percentage_60d_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • price_change_percentage_7dnumber
    • price_change_percentage_7d_in_currencyobject
      • btcnumber
      • ethnumber
      • usdnumber
    • roinull
    • total_supplynumber
    • total_value_lockednull
    • total_volumeobject
      • btcnumber
      • ethinteger
      • usdinteger
  • namestring
  • platformsobject
    • ethereumstring
    • terra-2string
    • tronstring
  • preview_listingboolean
  • public_noticenull
  • sentiment_votes_down_percentagenull
  • sentiment_votes_up_percentagenull
  • status_updatesunknown[]
  • symbolstring
  • tickersobject[]
    • basestring
    • bid_ask_spread_percentagenumber
    • coin_idstring
    • coin_mcap_usdnumber
    • converted_lastobject
      • btcnumber
      • ethnumber
      • usdnumber
    • converted_volumeobject
      • btcnumber
      • ethinteger
      • usdinteger
    • is_anomalyboolean
    • is_staleboolean
    • lastnumber
    • last_fetch_atstring
    • last_traded_atstring
    • marketobject
      • has_trading_incentiveboolean
      • identifierstring
      • namestring
    • targetstring
    • target_coin_idstring
    • timestampstring
    • token_info_urlnull
    • trade_urlstring
    • trust_scorenull
    • volumenumber
  • watchlist_portfolio_usersinteger
  • web_slugstring

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 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    id
    Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list).
    contract_address
    The contract address of token.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/ethereum/contract/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "additional_notices": [],
      "asset_platform_id": "ethereum",
      "block_time_in_minutes": 0,
      "categories": [
        "Crypto-Backed Tokens",
        "Wrapped-Tokens",
        "Terra Ecosystem",
        "Ethereum Ecosystem",
        "FTX Holdings",
        "Tron Ecosystem",
        "Index Coop Defi Index"
      ],
      "contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "country_origin": "",
      "description": {
        "en": "What is WETH (Wrapped ETH)?\nWETH is the tokenized/packaged form of ETH..."
      },
      "detail_platforms": {
        "ethereum": {
          "contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "decimal_place": 18,
          "geckoterminal_url": "https://www.geckoterminal.com/eth/tokens/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
        },
        "terra-2": {
          "contract_address": "ibc/BC8A77AFBD872FDC32A348D3FB10CC09277C266CFE52081DE341C7EC6752E674",
          "decimal_place": 18
        },
        "tron": {
          "contract_address": "THb4CqiFdwNHsWsQCs4JhzwjMWys4aqCbF",
          "decimal_place": 18,
          "geckoterminal_url": "https://www.geckoterminal.com/tron/tokens/THb4CqiFdwNHsWsQCs4JhzwjMWys4aqCbF"
        }
      },
      "genesis_date": "2016-06-17",
      "has_supply_breakdown": false,
      "hashing_algorithm": null,
      "id": "weth",
      "image": {
        "large": "https://coin-images.coingecko.com/coins/images/2518/large/weth.png?1696503332",
        "small": "https://coin-images.coingecko.com/coins/images/2518/small/weth.png?1696503332",
        "thumb": "https://coin-images.coingecko.com/coins/images/2518/thumb/weth.png?1696503332"
      },
      "last_updated": "2026-05-25T10:09:02.821Z",
      "links": {
        "announcement_url": [],
        "bitcointalk_thread_identifier": null,
        "blockchain_site": [
          "https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "https://intel.arkm.com/explorer/token/weth"
        ],
        "chat_url": [],
        "facebook_username": "",
        "homepage": [
          "https://ethereum.org/en/wrapped-eth"
        ],
        "official_forum_url": [],
        "repos_url": {
          "bitbucket": [],
          "github": []
        },
        "snapshot_url": null,
        "subreddit_url": null,
        "telegram_channel_identifier": "",
        "twitter_screen_name": "",
        "whitepaper": ""
      },
      "localization": {
        "de": "",
        "en": "WETH",
        "es": "",
        "fr": "",
        "hu": "",
        "it": "",
        "nl": "",
        "pl": "",
        "pt": "",
        "ro": ""
      },
      "market_cap_rank": null,
      "market_cap_rank_with_rehypothecated": 30,
      "market_data": {
        "ath": {
          "btc": 0.14280504,
          "eth": 3.614831,
          "usd": 4950.08
        },
        "ath_change_percentage": {
          "btc": -80.89678,
          "eth": -72.33124,
          "usd": -57.2622
        },
        "ath_date": {
          "btc": "2018-09-02T00:00:00.000Z",
          "eth": "2018-09-13T00:00:00.000Z",
          "usd": "2025-08-24T19:28:11.411Z"
        },
        "atl": {
          "btc": 0.00890197,
          "eth": 0.22395179,
          "usd": 82.1
        },
        "atl_change_percentage": {
          "btc": 206.45314,
          "eth": 346.6045,
          "usd": 2476.69436
        },
        "atl_date": {
          "btc": "2025-09-02T07:56:48.935Z",
          "eth": "2025-09-02T07:56:48.935Z",
          "usd": "2018-12-15T00:00:00.000Z"
        },
        "circulating_supply": 2267926.915444636,
        "current_price": {
          "btc": 0.02728343,
          "eth": 0.99972363,
          "usd": 2115.04
        },
        "fdv_to_tvl_ratio": null,
        "fully_diluted_valuation": {
          "btc": 61868,
          "eth": 2267403,
          "usd": 4793905266
        },
        "high_24h": {
          "btc": 0.02756131,
          "eth": 1.00272,
          "usd": 2125.08
        },
        "last_updated": "2026-05-25T10:09:02.821Z",
        "low_24h": {
          "btc": 0.02717062,
          "eth": 0.99799697,
          "usd": 2068.79
        },
        "market_cap": {
          "btc": 61868,
          "eth": 2267403,
          "usd": 4793905266
        },
        "market_cap_change_24h": -12121742.79577,
        "market_cap_change_24h_in_currency": {
          "btc": -635.7460114267669,
          "eth": -986.7877555103041,
          "usd": -12121742.795770645
        },
        "market_cap_change_percentage_24h": -0.25222,
        "market_cap_change_percentage_24h_in_currency": {
          "btc": -1.01713,
          "eth": -0.0435,
          "usd": -0.25222
        },
        "market_cap_fdv_ratio": 1.0,
        "market_cap_rank": null,
        "market_cap_rank_with_rehypothecated": 30,
        "max_supply": null,
        "max_supply_infinite": true,
        "mcap_to_tvl_ratio": null,
        "outstanding_supply": null,
        "outstanding_token_value_usd": null,
        "price_change_24h": -3.316519511214,
        "price_change_24h_in_currency": {
          "btc": -0.000274386252168236,
          "eth": -0.000212661454704888,
          "usd": -3.3165195112137553
        },
        "price_change_percentage_14d": -9.45938,
        "price_change_percentage_14d_in_currency": {
          "btc": -5.49184,
          "eth": -0.04201,
          "usd": -9.45938
        },
        "price_change_percentage_1h_in_currency": {
          "btc": -0.19183,
          "eth": 0.00019,
          "usd": -0.00865
        },
        "price_change_percentage_1y": -14.56267,
        "price_change_percentage_1y_in_currency": {
          "btc": 18.09057,
          "eth": 0.19761,
          "usd": -14.56267
        },
        "price_change_percentage_200d": -37.57849,
        "price_change_percentage_200d_in_currency": {
          "btc": -17.15793,
          "eth": -0.10813,
          "usd": -37.57849
        },
        "price_change_percentage_24h": -0.15656,
        "price_change_percentage_24h_in_currency": {
          "btc": -0.99568,
          "eth": -0.02127,
          "usd": -0.15656
        },
        "price_change_percentage_30d": -8.82256,
        "price_change_percentage_30d_in_currency": {
          "btc": -8.68383,
          "eth": -0.02751,
          "usd": -8.82256
        },
        "price_change_percentage_60d": 1.63545,
        "price_change_percentage_60d_in_currency": {
          "btc": -8.8249,
          "eth": 0.0505,
          "usd": 1.63545
        },
        "price_change_percentage_7d": -0.0669,
        "price_change_percentage_7d_in_currency": {
          "btc": -0.89914,
          "eth": -0.05304,
          "usd": -0.0669
        },
        "roi": null,
        "total_supply": 2267926.915444636,
        "total_value_locked": null,
        "total_volume": {
          "btc": 107.294,
          "eth": 3931,
          "usd": 8317546
        }
      },
      "name": "WETH",
      "platforms": {
        "ethereum": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "terra-2": "ibc/BC8A77AFBD872FDC32A348D3FB10CC09277C266CFE52081DE341C7EC6752E674",
        "tron": "THb4CqiFdwNHsWsQCs4JhzwjMWys4aqCbF"
      },
      "preview_listing": false,
      "public_notice": null,
      "sentiment_votes_down_percentage": null,
      "sentiment_votes_up_percentage": null,
      "status_updates": [],
      "symbol": "weth",
      "tickers": [
        {
          "base": "WETH",
          "bid_ask_spread_percentage": 0.04287,
          "coin_id": "weth",
          "coin_mcap_usd": 4793905265.563903,
          "converted_last": {
            "btc": 0.02728106,
            "eth": 1.000065,
            "usd": 2114.1
          },
          "converted_volume": {
            "btc": 81.256,
            "eth": 2979,
            "usd": 6296774
          },
          "is_anomaly": false,
          "is_stale": false,
          "last": 2114.7318378964214,
          "last_fetch_at": "2026-05-25T10:04:42+00:00",
          "last_traded_at": "2026-05-25T10:04:42+00:00",
          "market": {
            "has_trading_incentive": false,
            "identifier": "native",
            "name": "Native"
          },
          "target": "USDC",
          "target_coin_id": "usd-coin",
          "timestamp": "2026-05-25T10:04:42+00:00",
          "token_info_url": null,
          "trade_url": "https://native.org/app/swap/",
          "trust_score": null,
          "volume": 2999.739679821518
        }
      ],
      "watchlist_portfolio_users": 34782,
      "web_slug": "weth"
    }

Common questions

What does id mean in this URL?

It is an asset-platform ID such as ethereum. The returned id identifies the resolved coin and can be different.

Can I query with a ticker symbol?

No. Supply the platform ID and token contract address. Symbols are not unique contract identifiers.

Why are several platform mappings returned?

A coin profile can include contracts on multiple platforms. Keep each platform key with its own address.

Does a matching profile prove the token is safe?

No. It maps token identity and market metadata; it is not an independent security assessment or transaction approval.

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 Coin by Contract API with your agent

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