# CoinGecko — Coin Price by Token Addresses

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.

Documentation: https://openany.si/coingecko/coingecko-coin-price-by-token-addresses/796cc48a-6efa-49c3-9263-3c708726e694/
API ID: 796cc48a-6efa-49c3-9263-3c708726e694
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/token_price/{id}
Page update time: 2026-12-03T02:49:15.852Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:15.242Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Coin Price by Token Addresses request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Asset platform's ID. \n*refers to [`/asset_platforms`](/reference/asset-platforms-list)"
        }
      },
      "required": [
        "id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "contract_addresses": {
          "type": "string",
          "description": "Token contract addresses, comma-separated if querying more than 1 token"
        },
        "vs_currencies": {
          "type": "string",
          "description": "Target currency of coins, comma-separated if querying more than 1 currency. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). \n\nFor the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support)."
        },
        "include_market_cap": {
          "type": "boolean",
          "description": "Include market capitalization. \nDefault: false"
        },
        "include_24hr_vol": {
          "type": "boolean",
          "description": "Include 24-hour trading volume. \nDefault: false"
        },
        "include_24hr_change": {
          "type": "boolean",
          "description": "Include 24-hour change percentage. \nDefault: false"
        },
        "include_last_updated_at": {
          "type": "boolean",
          "description": "Include last updated price time as a UNIX timestamp. \nDefault: false"
        },
        "precision": {
          "type": "string",
          "description": "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": [
        "contract_addresses",
        "vs_currencies"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
      "type": "object",
      "properties": {
        "last_updated_at": {
          "type": "integer"
        },
        "usd": {
          "type": "integer"
        },
        "usd_24h_change": {
          "type": "number"
        },
        "usd_24h_vol": {
          "type": "number"
        },
        "usd_market_cap": {
          "type": "number"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official response / contract request
```bash
curl \
  '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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
    "last_updated_at": 1779094527,
    "usd": 76721,
    "usd_24h_change": -1.6069562341774564,
    "usd_24h_vol": 181232010.10689816,
    "usd_market_cap": 9008047197.715635
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What does id identify in this route?
It is the asset-platform ID, such as ethereum. It is not a coin ID or the on-chain network ID eth.

### Where do multiple contract addresses belong?
Put comma-separated values in contract_addresses. They are query values, not the addresses path segment used by the on-chain route.

### Can I request more than one target currency?
Yes. Use comma-separated vs_currencies and read the returned currency keys for each contract.

### Are optional market fields always included?
Their inclusion flags default to false. Request the needed capitalization, volume, change or update-time fields explicitly.

### 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.

## Available implementations
- CoinGecko: https://openany.si/coingecko/coingecko-coin-price-by-token-addresses/796cc48a-6efa-49c3-9263-3c708726e694/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
