# CoinGecko — Token Price by Token Addresses

Get on-chain token prices by network and addresses 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 <address> for token price tables, and metric displays, ready for production pipelines and AI agent automation using a single OpenAny API key.

Documentation: https://openany.si/market/apis/coingecko/coingecko-token-price-by-token-addresses/?offering=7a04af1e-03c0-401f-b839-b27bd00ced0d
API ID: 7a04af1e-03c0-401f-b839-b27bd00ced0d
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/onchain/simple/networks/{network}/token_price/{addresses}
Page update time: 2026-12-03T02:49:14.425Z
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
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:13.966Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Token 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": {
        "network": {
          "type": "string",
          "description": "Network ID. \n*refers to [`/onchain/networks`](/reference/networks-list)."
        },
        "addresses": {
          "type": "string",
          "description": "Token contract address, comma-separated if more than one token contract address."
        }
      },
      "required": [
        "network",
        "addresses"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "include_market_cap": {
          "type": "boolean",
          "description": "Include market capitalization. \nDefault: `false`"
        },
        "mcap_fdv_fallback": {
          "type": "boolean",
          "description": "Return FDV if market cap is not available. \nDefault: `false`"
        },
        "include_24hr_vol": {
          "type": "boolean",
          "description": "Include 24hr volume. \nDefault: `false`"
        },
        "include_24hr_price_change": {
          "type": "boolean",
          "description": "Include 24hr price change. \nDefault: `false`"
        },
        "include_total_reserve_in_usd": {
          "type": "boolean",
          "description": "Include total reserve in USD. \nDefault: `false`"
        },
        "include_inactive_source": {
          "type": "boolean",
          "description": "Include token price data from inactive pools using the most recent swap. \nDefault: `false`"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "h24_price_change_percentage": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            },
            "h24_volume_usd": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            },
            "last_trade_timestamp": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            },
            "market_cap_usd": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            },
            "token_prices": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            },
            "total_reserve_in_usd": {
              "type": "object",
              "properties": {
                "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                  "type": "string"
                }
              }
            }
          }
        },
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official response / contract request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/coingecko/api/v3/onchain/simple/networks/eth/token_price/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' \
  -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
{
  "data": {
    "attributes": {
      "h24_price_change_percentage": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "-1.8867250098940773"
      },
      "h24_volume_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "313441016.145429"
      },
      "last_trade_timestamp": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "1779882383"
      },
      "market_cap_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "4706652516.682727"
      },
      "token_prices": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "2084.57379936447"
      },
      "total_reserve_in_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "1015673598.896450024556193850116628967"
      }
    },
    "id": "49dd0b90-d99d-48b6-8fe2-03e826fbcef2",
    "type": "simple_token_price"
  }
}
```

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

## Available implementations
- CoinGecko: https://openany.si/market/apis/coingecko/coingecko-token-price-by-token-addresses/?offering=7a04af1e-03c0-401f-b839-b27bd00ced0d

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