OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
CoinGecko Coin Price Lookup API

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.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
17Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

CoinGecko Coin Price Lookup API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
CoinGecko Coin Price Lookup API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: vs_currencies, ids, names, symbols, include_tokens, include_market_cap, include_24hr_vol, include_24hr_change, include_last_updated_at, precision
Selected implementation coingecko · CoinGecko — Coin Price by IDs, Symbols, or Names
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-urlencode ids=bitcoin \
  --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 Coin 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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
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).
Optional parameters (9)
Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list)
Coins' names, comma-separated if querying more than 1 coin.
Coins' symbols, comma-separated if querying more than 1 coin.
For `symbols` lookups, specify `all` to include all matching tokens. Default `top` returns top-ranked tokens by market cap or volume.
Include market capitalization. Default: false
Include 24-hour trading volume. Default: false
Include 24-hour change percentage. Default: false
Include last updated price time as a UNIX timestamp. Default: false
Decimal places for currency price value

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
CoinGeckoCurrent
CoinGecko — Coin Price by IDs, Symbols, or Names · GET · View API reference
$0 / call17
100.00%successP50355ms
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · CoinGeckoUSD / call
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.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/simple/price
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
vs_currenciesURL query parametersquerystringYes

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

idsURL query parametersquerystringNo

Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list)

namesURL query parametersquerystringNo

Coins' names, comma-separated if querying more than 1 coin.

symbolsURL query parametersquerystringNo

Coins' symbols, comma-separated if querying more than 1 coin.

include_tokensURL query parametersquerystringNo

For `symbols` lookups, specify `all` to include all matching tokens. Default `top` returns top-ranked tokens by market cap or volume.

enum: "top", "all"

include_market_capURL query parametersquerybooleanNo

Include market capitalization. Default: false

include_24hr_volURL query parametersquerybooleanNo

Include 24-hour trading volume. Default: false

include_24hr_changeURL query parametersquerybooleanNo

Include 24-hour change percentage. Default: false

include_last_updated_atURL query parametersquerybooleanNo

Include last updated price time as a UNIX timestamp. Default: false

precisionURL query parametersquerystringNo

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

Inferred from examples
  • bitcoinobject
    • last_updated_atinteger
    • usdinteger
    • usd_24h_changenumber
    • usd_24h_volnumber
    • usd_market_capnumber

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 10

    Review these request fields before running. Keep the published provider and request method unchanged.

    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).
    ids
    Coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list)
    names
    Coins' names, comma-separated if querying more than 1 coin.
    symbols
    Coins' symbols, comma-separated if querying more than 1 coin.
    include_tokens
    For `symbols` lookups, specify `all` to include all matching tokens. Default `top` returns top-ranked tokens by market cap or volume.
    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 · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "bitcoin": {
        "last_updated_at": 1779092258,
        "usd": 76975,
        "usd_24h_change": -1.4093297098441402,
        "usd_24h_vol": 29096603418.89408,
        "usd_market_cap": 1542226908349.8406
      }
    }

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.

Use CoinGecko Coin Price Lookup API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.