CoinGecko Contract Price Lookup API
Get CoinGecko token prices by platform and contract addresses via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as contract_addresses, vs_currencies, and retrieve structured data including usd market cap, usd 24h vol, and last updated at for contract quote panels, and multi-currency token views.
- 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 Contract Price Lookup API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
CoinGecko Contract Price Lookup API
Pass the asset-platform id in the path and contract_addresses plus vs_currencies in the query. The root response maps contract addresses to currency values and optional metrics. This route is separate from the on-chain network token-price API.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | path: id; query: contract_addresses, vs_currencies, include_market_cap, include_24hr_vol, include_24hr_change, include_last_updated_at, precision |
| Selected implementation | coingecko · CoinGecko — Coin Price by Token Addresses |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Contract quote panels: Map returned address keys to known token identities.
- Multi-currency token views: Keep optional metrics with their selected denominations.
Documented Response Fields
| Field | Meaning |
|---|---|
<address>.usd |
Reported price for the USD currency key |
<address>.usd_market_cap |
Reported USD market capitalization when included |
<address>.usd_24h_vol |
Reported USD 24-hour trading volume when included |
<address>.last_updated_at |
Reported price update time as Unix seconds when included |
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/simple/token_price/ethereum \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json' \
--data-urlencode contract_addresses=0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 \
--data-urlencode vs_currencies=usd
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 Contract Price Lookup 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 Price by Token Addresses · 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/simple/token_price/{id}- 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's ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list) |
contract_addresses | URL query parametersquery | string | Yes | Token contract addresses, comma-separated if querying more than 1 token |
vs_currencies | URL query parametersquery | string | Yes | Target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). For the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support). |
include_market_cap | URL query parametersquery | boolean | No | Include market capitalization. Default: false |
include_24hr_vol | URL query parametersquery | boolean | No | Include 24-hour trading volume. Default: false |
include_24hr_change | URL query parametersquery | boolean | No | Include 24-hour change percentage. Default: false |
include_last_updated_at | URL query parametersquery | boolean | No | Include last updated price time as a UNIX timestamp. Default: false |
precision | URL query parametersquery | string | No | Decimal places for currency price value enum: "full", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599objectlast_updated_atintegerusdintegerusd_24h_changenumberusd_24h_volnumberusd_market_capnumber
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 8
Review these request fields before running. Keep the published provider and request method unchanged.
id- Asset platform's ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list)
contract_addresses- Token contract addresses, comma-separated if querying more than 1 token
vs_currencies- Target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). For the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support).
include_market_cap- Include market capitalization. Default: false
include_24hr_vol- Include 24-hour trading volume. Default: false
include_24hr_change- Include 24-hour change percentage. Default: false
include_last_updated_at- Include last updated price time as a UNIX timestamp. Default: false
precision- Decimal places for currency price value
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/token_price/ethereum?contract_addresses=0x2260fac5e5542a773aa44fbcfedf7c193bc2c599&vs_currencies=usd' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": { "last_updated_at": 1779094527, "usd": 76721, "usd_24h_change": -1.6069562341774564, "usd_24h_vol": 181232010.10689816, "usd_market_cap": 9008047197.715635 } }