# CoinGecko — Coin Price by IDs, Symbols, or Names

Get CoinGecko prices by coin IDs, names or symbols via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as ids, vs_currencies, and retrieve structured data including usd market cap, usd 24h change, and last updated at for compact quote panels, and multi-currency displays.

Documentation: https://openany.si/coingecko/coingecko-coin-price-by-ids-symbols-or-names/e74d98c1-5b36-42f5-b73f-be88db97da92/
API ID: e74d98c1-5b36-42f5-b73f-be88db97da92
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price
Page update time: 2026-12-03T02:49:15.827Z
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.183Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## CoinGecko Coin Price Lookup API

Supply vs\_currencies and an asset selector such as ids. The response is keyed by resolved coin IDs and currency fields. Optional flags control market capitalization, 24-hour volume, 24-hour change and the last\_updated\_at field.

## What You Can Build

- **Compact quote panels**: Read selected coin and currency values from the keyed response.
- **Multi-currency displays**: Keep optional market metrics and update times with each quote.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `<coin>.usd` | Reported price for the USD currency key |
| `<coin>.usd_market_cap` | Reported USD market capitalization when included |
| `<coin>.usd_24h_vol` | Reported USD 24-hour volume when included |
| `<coin>.usd_24h_change` | Reported USD 24-hour price change percentage when included |
| `<coin>.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 IDs, Symbols, or Names 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": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "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)."
        },
        "ids": {
          "type": "string",
          "description": "Coins' IDs, comma-separated if querying more than 1 coin. \n*refers to [`/coins/list`](/reference/coins-list)"
        },
        "names": {
          "type": "string",
          "description": "Coins' names, comma-separated if querying more than 1 coin."
        },
        "symbols": {
          "type": "string",
          "description": "Coins' symbols, comma-separated if querying more than 1 coin."
        },
        "include_tokens": {
          "type": "string",
          "description": "For `symbols` lookups, specify `all` to include all matching tokens. \nDefault `top` returns top-ranked tokens by market cap or volume.",
          "enum": [
            "top",
            "all"
          ]
        },
        "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": [
        "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": {
    "bitcoin": {
      "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/price?ids=bitcoin&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
{
  "bitcoin": {
    "last_updated_at": 1779092258,
    "usd": 76975,
    "usd_24h_change": -1.4093297098441402,
    "usd_24h_vol": 29096603418.89408,
    "usd_market_cap": 1542226908349.8406
  }
}
```

## 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
### Which selector takes priority if I provide several?
The official endpoint documents ids before names before symbols. Prefer one unambiguous selector, and use exact IDs when known.

### What does include_tokens=all apply to?
It applies to symbol lookups and requests all matching tokens instead of the default top matches. Keep returned coin IDs to distinguish shared symbols.

### Can I request several target currencies?
Yes. Send comma-separated currency codes in vs_currencies, preserving the returned currency keys.

### How can I inspect price freshness?
Request include_last_updated_at=true and read the returned Unix timestamp. Do not treat an omitted or null change field as a fresh zero change.

### 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-ids-symbols-or-names/e74d98c1-5b36-42f5-b73f-be88db97da92/

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