OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
CoinGecko Coin Market Data API

Get CoinGecko coin market data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as ids, vs_currency, and retrieve structured data including coinGecko coin identifier, current price, market cap, total volume, and reported circulating token quantity for market tables, and filtered research, ready for production pipelines and AI agent automation.

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

CoinGecko Coin Market Data 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 Market Data API

CoinGecko Coin Market Data API

Set the required vs_currency and optionally choose coins by ids, names or symbols, or filter by category. page and per_page control pagination; order, locale, sparkline and price_change_percentage request supported presentation or market sections.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: vs_currency, ids, names, symbols, include_tokens, category, order, per_page, page, sparkline, price_change_percentage, locale, precision, include_rehypothecated
Selected implementation coingecko · CoinGecko — Coins List with Market Data
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Market tables: Compare prices, capitalization and volumes in one target currency.
  • Filtered research: Use exact coin or category IDs to build a focused asset view.

Documented Response Fields

Field Meaning
[].id CoinGecko coin identifier
[].current_price Reported price in the selected target currency
[].market_cap Reported market capitalization in the target currency
[].total_volume Reported trading volume in the target currency
[].circulating_supply Reported circulating token quantity
[].last_updated Reported record update timestamp

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/coins/markets \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-urlencode ids=bitcoin \
  --data-urlencode vs_currency=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 Market Data 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 and market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)
Optional parameters (13)
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.
Filter based on coins' category. *refers to [`/coins/categories/list`](/reference/coins-categories-list)
Sort result by field. Default: market_cap_desc
Total results per page. Default: 100 Valid values: 1...250
Page through results. Default: 1
Include sparkline 7-day data. Default: false
Include price change percentage timeframe, comma-separated if querying more than 1 timeframe. Valid values: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y`
Language background. Default: en
Decimal places for currency price value
Include rehypothecated tokens in results. When true, returns `market_cap_rank_with_rehypothecated` field. Default: false

Sample response

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

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
CoinGeckoCurrent
CoinGecko — Coins List with Market Data · GET · View API reference
$0 / call1
100.00%successP50580ms
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/coins/markets
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_currencyURL query parametersquerystringYes

Target currency of coins and market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)

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"

categoryURL query parametersquerystringNo

Filter based on coins' category. *refers to [`/coins/categories/list`](/reference/coins-categories-list)

orderURL query parametersquerystringNo

Sort result by field. Default: market_cap_desc

enum: "market_cap_asc", "market_cap_desc", "volume_asc", "volume_desc", "id_asc", "id_desc"

per_pageURL query parametersqueryintegerNo

Total results per page. Default: 100 Valid values: 1...250

pageURL query parametersqueryintegerNo

Page through results. Default: 1

sparklineURL query parametersquerybooleanNo

Include sparkline 7-day data. Default: false

price_change_percentageURL query parametersquerystringNo

Include price change percentage timeframe, comma-separated if querying more than 1 timeframe. Valid values: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y`

localeURL query parametersquerystringNo

Language background. Default: en

enum: "ar", "bg", "cs", "da", "de", "el", "en", "es", "fi", "fr", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "th", "tr", "uk", "vi", "zh", "zh-tw"

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"

include_rehypothecatedURL query parametersquerybooleanNo

Include rehypothecated tokens in results. When true, returns `market_cap_rank_with_rehypothecated` field. Default: false

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
responseobject[]
  • athinteger
  • ath_change_percentagenumber
  • ath_datestring
  • atlnumber
  • atl_change_percentagenumber
  • atl_datestring
  • circulating_supplynumber
  • current_priceinteger
  • fully_diluted_valuationinteger
  • high_24hinteger
  • idstring
  • imagestring
  • last_updatedstring
  • low_24hinteger
  • market_capinteger
  • market_cap_change_24hnumber
  • market_cap_change_percentage_24hnumber
  • market_cap_rankinteger
  • market_cap_rank_with_rehypothecatedinteger
  • max_supplynumber
  • namestring
  • price_change_24hnumber
  • price_change_percentage_14d_in_currencynumber
  • price_change_percentage_1h_in_currencynumber
  • price_change_percentage_1y_in_currencynumber
  • price_change_percentage_200d_in_currencynumber
  • price_change_percentage_24hnumber
  • price_change_percentage_24h_in_currencynumber
  • price_change_percentage_30d_in_currencynumber
  • price_change_percentage_7d_in_currencynumber
  • roinull
  • sparkline_in_7dobject
    • pricenumber[]
  • symbolstring
  • total_supplynumber
  • total_volumeinteger

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 14

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

    vs_currency
    Target currency of coins and market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)
    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.
    category
    Filter based on coins' category. *refers to [`/coins/categories/list`](/reference/coins-categories-list)
    order
    Sort result by field. Default: market_cap_desc
    per_page
    Total results per page. Default: 100 Valid values: 1...250
    page
    Page through results. Default: 1
    sparkline
    Include sparkline 7-day data. Default: false
    price_change_percentage
    Include price change percentage timeframe, comma-separated if querying more than 1 timeframe. Valid values: `1h`, `24h`, `7d`, `14d`, `30d`, `200d`, `1y`
    locale
    Language background. Default: en
    precision
    Decimal places for currency price value
    include_rehypothecated
    Include rehypothecated tokens in results. When true, returns `market_cap_rank_with_rehypothecated` field. Default: false
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/markets?ids=bitcoin&vs_currency=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
    [
      {
        "ath": 126080,
        "ath_change_percentage": -38.39571,
        "ath_date": "2025-10-06T18:57:42.558Z",
        "atl": 67.81,
        "atl_change_percentage": 114443.23093,
        "atl_date": "2013-07-06T00:00:00.000Z",
        "circulating_supply": 20030493.0,
        "current_price": 77671,
        "fully_diluted_valuation": 1555914058873,
        "high_24h": 78419,
        "id": "bitcoin",
        "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400",
        "last_updated": "2026-05-18T12:49:21.599Z",
        "low_24h": 76696,
        "market_cap": 1555886872303,
        "market_cap_change_24h": -15184401491.513184,
        "market_cap_change_percentage_24h": -0.9665,
        "market_cap_rank": 1,
        "market_cap_rank_with_rehypothecated": 1,
        "max_supply": 21000000.0,
        "name": "Bitcoin",
        "price_change_24h": -747.3360347281705,
        "price_change_percentage_14d_in_currency": -1.5720857443461431,
        "price_change_percentage_1h_in_currency": 0.5823392426906319,
        "price_change_percentage_1y_in_currency": -25.214612207475373,
        "price_change_percentage_200d_in_currency": -29.452371850925864,
        "price_change_percentage_24h": -0.95302,
        "price_change_percentage_24h_in_currency": -0.9530164743774191,
        "price_change_percentage_30d_in_currency": 1.9453890367549207,
        "price_change_percentage_7d_in_currency": -4.042267423689584,
        "roi": null,
        "sparkline_in_7d": {
          "price": [
            81045.84776489827,
            81001.73089268175,
            80898.20817826076
          ]
        },
        "symbol": "btc",
        "total_supply": 20030843.0,
        "total_volume": 33235034316
      }
    ]

Common questions

How do I avoid ambiguity in symbol lookups?

Prefer exact ids when known. For symbols, include_tokens accepts top or all; keep returned IDs with their records.

What page size can I request?

The input description allows per_page from 1 to 250, defaulting to 100; page defaults to 1.

How do I request seven-day charts or change periods?

Set sparkline=true for the supported seven-day sparkline and use price_change_percentage with documented comma-separated timeframes such as 1h, 24h or 7d.

Does locale change the denomination?

No. locale controls localized presentation. vs_currency selects the target currency; token supply fields remain quantities.

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 Market Data API with your agent

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