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
CoinGecko Coin by Contract API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
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
- 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/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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
CoinGeckoCurrent CoinGecko — Coin 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: 3. Price update time: not supplied.
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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | URL path parameterspath | string | Yes | Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list). |
contract_address | URL path parameterspath | string | Yes | The contract address of token. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
additional_noticesunknown[]asset_platform_idstringblock_time_in_minutesintegercategoriesstring[]contract_addressstringcountry_originstringdescriptionobjectenstring
detail_platformsobjectethereumobjectcontract_addressstringdecimal_placeintegergeckoterminal_urlstring
terra-2objectcontract_addressstringdecimal_placeinteger
tronobjectcontract_addressstringdecimal_placeintegergeckoterminal_urlstring
genesis_datestringhas_supply_breakdownbooleanhashing_algorithmnullidstringimageobjectlargestringsmallstringthumbstring
last_updatedstringlinksobjectannouncement_urlunknown[]bitcointalk_thread_identifiernullblockchain_sitestring[]chat_urlunknown[]facebook_usernamestringhomepagestring[]official_forum_urlunknown[]repos_urlobjectbitbucketunknown[]githubunknown[]
snapshot_urlnullsubreddit_urlnulltelegram_channel_identifierstringtwitter_screen_namestringwhitepaperstring
localizationobjectdestringenstringesstringfrstringhustringitstringnlstringplstringptstringrostring
market_cap_ranknullmarket_cap_rank_with_rehypothecatedintegermarket_dataobjectathobjectbtcnumberethnumberusdnumber
ath_change_percentageobjectbtcnumberethnumberusdnumber
ath_dateobjectbtcstringethstringusdstring
atlobjectbtcnumberethnumberusdnumber
atl_change_percentageobjectbtcnumberethnumberusdnumber
atl_dateobjectbtcstringethstringusdstring
circulating_supplynumbercurrent_priceobjectbtcnumberethnumberusdnumber
fdv_to_tvl_rationullfully_diluted_valuationobjectbtcintegerethintegerusdinteger
high_24hobjectbtcnumberethnumberusdnumber
last_updatedstringlow_24hobjectbtcnumberethnumberusdnumber
market_capobjectbtcintegerethintegerusdinteger
market_cap_change_24hnumbermarket_cap_change_24h_in_currencyobjectbtcnumberethnumberusdnumber
market_cap_change_percentage_24hnumbermarket_cap_change_percentage_24h_in_currencyobjectbtcnumberethnumberusdnumber
market_cap_fdv_rationumbermarket_cap_ranknullmarket_cap_rank_with_rehypothecatedintegermax_supplynullmax_supply_infinitebooleanmcap_to_tvl_rationulloutstanding_supplynulloutstanding_token_value_usdnullprice_change_24hnumberprice_change_24h_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_14dnumberprice_change_percentage_14d_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_1h_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_1ynumberprice_change_percentage_1y_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_200dnumberprice_change_percentage_200d_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_24hnumberprice_change_percentage_24h_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_30dnumberprice_change_percentage_30d_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_60dnumberprice_change_percentage_60d_in_currencyobjectbtcnumberethnumberusdnumber
price_change_percentage_7dnumberprice_change_percentage_7d_in_currencyobjectbtcnumberethnumberusdnumber
roinulltotal_supplynumbertotal_value_lockednulltotal_volumeobjectbtcnumberethintegerusdinteger
namestringplatformsobjectethereumstringterra-2stringtronstring
preview_listingbooleanpublic_noticenullsentiment_votes_down_percentagenullsentiment_votes_up_percentagenullstatus_updatesunknown[]symbolstringtickersobject[]basestringbid_ask_spread_percentagenumbercoin_idstringcoin_mcap_usdnumberconverted_lastobjectbtcnumberethnumberusdnumber
converted_volumeobjectbtcnumberethintegerusdinteger
is_anomalybooleanis_stalebooleanlastnumberlast_fetch_atstringlast_traded_atstringmarketobjecthas_trading_incentivebooleanidentifierstringnamestring
targetstringtarget_coin_idstringtimestampstringtoken_info_urlnulltrade_urlstringtrust_scorenullvolumenumber
watchlist_portfolio_usersintegerweb_slugstring
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 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 · cURLcurl \ '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'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" }