Search all guides

Reference · Tools

CoinGecko integration

Retrieve cryptocurrency prices, market data, historical snapshots, OHLC candlestick charts, ticker information, and crypto events from the CoinGecko public API.

Action Finance v1

The CoinGecko node pulls live and historical cryptocurrency data directly into your workflows — prices, market metrics, OHLC candlestick charts, exchange tickers, and crypto events, all without an API key. You can build a price-monitoring workflow that checks a basket of coins every hour and triggers alerts when thresholds are crossed. It covers two resources: Coin (eight operations) and Event.

Works as
Action
Tool name
coingecko
Parameters
28
Outputs
Output, Error
Credentials
None required
Official docs
CoinGecko docs docs.coingecko.com

What you can build with CoinGecko

  • Get the current price of Bitcoin in USD.
  • List top 10 cryptocurrencies by market cap.
  • Get OHLC candlestick data for Ethereum over 30 days.
  • Get exchange ticker data for Bitcoin.
  • Get historical snapshot of a coin at a specific date.
  • List upcoming cryptocurrency events.
  • Get market chart data for a token by contract address.

Overview

CoinGecko is a cryptocurrency data aggregator providing comprehensive market data. This tool provides read-only access to the CoinGecko API v3 (https://api.coingecko.com/api/v3). It supports two resources: Coin (get, get many, market, price, ticker, history, market chart, candlestick) and Event (get many). The Coin resource provides current and historical price data, market metrics, exchange tickers, and OHLC charts. The Event resource lists cryptocurrency-related events. Supports searching by coin ID or contract address. Market and ticker operations support pagination via returnAll/limit pattern. No authentication is required — this is a public API.

Node Type

Action — processes input items and produces output

Input / Output

DirectionPort(s)
InputInput
OutputOutput, Error

Credentials

This tool does not require any credentials.

Resources

ResourceValue
Coincoin
Eventevent

Operations

Each resource has its own Operation list. Pick the resource first, then the operation.

ResourceOperationValueDescription
CoinCandlestickcandlestickGet a candlestick open-high-low-close chart for the selected currency
CoinGetgetGet current data for a coin
CoinGet ManygetAllGet many coins
CoinHistoryhistoryGet historical data (name, price, market, stats) at a given date for a coin
CoinMarketmarketGet prices and market related data for all trading pairs that match the selected currency
CoinMarket ChartmarketChartGet historical market data including price, market cap, and 24h volume
CoinPricepriceGet the current price of any cryptocurrencies in any other supported currencies
CoinTickertickerGet coin tickers
EventGet ManygetAllGet many events

Parameters

Coin: Candlestick

ParameterTypeRequiredDefaultDescription
Base CurrencystringYes—The CoinGecko coin ID for the base currency. The first currency in the pair (e.g., for BTC:ETH, this is bitcoin).
Quote CurrencystringYes—The target currency code (e.g., usd, eur, btc). Full list available at GET /simple/supported_vs_currencies.
Range (Days)optionsYes1Return data for this many days in the past from now.
Options: 1, 7, 14, 30, 90, 180, 365, max

Coin: Get

ParameterTypeRequiredDefaultDescription
Search ByoptionsYescoinIdSearch by coin ID or contract address.
Options: coinId, contractAddress
Coin IDstringYes—The CoinGecko coin ID. Find at https://www.coingecko.com/ — the ID is in the URL (e.g., bitcoin, ethereum, solana). (shown when Search By is coinId)
Platform IDoptionsYesethereumThe ID of the platform issuing tokens. (shown when Search By is contractAddress)
Options: ethereum
Contract AddressstringYes—Token’s contract address. (shown when Search By is contractAddress)
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— Community DatabooleanNofalseWhether to include community data.
— Developer DatabooleanNofalseWhether to include developer data.
— LocalizationbooleanNofalseWhether to include all localized languages in response.
— Market DatabooleanNofalseWhether to include market data.
— SparklinebooleanNofalseWhether to include sparkline 7 days data.
— TickersbooleanNofalseWhether to include tickers data.

Coin: Get Many

ParameterTypeRequiredDefaultDescription
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. (shown when Return All is false)

Coin: History

ParameterTypeRequiredDefaultDescription
Coin IDstringYes—The CoinGecko coin ID. Find at https://www.coingecko.com/ — the ID is in the URL (e.g., bitcoin, ethereum, solana).
DatestringYes—The date of the data snapshot (ISO 8601 format). Will be converted to DD-MM-YYYY for the API.
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— LocalizationbooleanNotrueWhether to include localized languages in response.

Coin: Market

ParameterTypeRequiredDefaultDescription
Base CurrencystringYes—The target currency code (e.g., usd, eur, btc). Full list available at GET /simple/supported_vs_currencies.
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. (shown when Return All is false)
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— Coin IDsstringNo—Filter results by comma-separated list of coin IDs.
— CategoryoptionsNodecentralized_finance_defiFilter by coin category.
Options: decentralized_finance_defi
— OrderoptionsNo—Sort results by field.
Options: gecko_asc, gecko_desc, id_asc, id_desc, market_cap_asc, market_cap_desc, volume_asc, volume_desc
— SparklinebooleanNofalseWhether to include sparkline 7 days data.
— Price Change PercentagemultiOptionsNo[]Include price change percentage for specified time periods.
Options: 1h, 24h, 7d, 14d, 30d, 200d, 1y

Coin: Market Chart

ParameterTypeRequiredDefaultDescription
Search ByoptionsYescoinIdSearch by coin ID or contract address.
Options: coinId, contractAddress
Base CurrencystringYes—The CoinGecko coin ID for the base currency. (shown when Search By is coinId)
Platform IDoptionsYesethereumThe ID of the platform issuing tokens. (shown when Search By is contractAddress)
Options: ethereum
Contract AddressstringYes—Token’s contract address. (shown when Search By is contractAddress)
Quote CurrencystringYes—The target currency code (e.g., usd, eur, btc). Full list available at GET /simple/supported_vs_currencies.
Range (Days)optionsYes1Return data for this many days in the past from now.
Options: 1, 7, 14, 30, 90, 180, 365, max

Coin: Price

ParameterTypeRequiredDefaultDescription
Search ByoptionsYescoinIdSearch by coin ID or contract address.
Options: coinId, contractAddress
Base CurrenciesstringYes—Comma-separated CoinGecko coin IDs (e.g., bitcoin,ethereum,solana). (shown when Search By is coinId)
Platform IDoptionsYesethereumThe ID of the platform issuing tokens. (shown when Search By is contractAddress)
Options: ethereum
Contract AddressesstringYes—The contract addresses of tokens, comma-separated. (shown when Search By is contractAddress)
Quote CurrenciesstringYes—Comma-separated target currency codes (e.g., usd,eur,btc). Full list available at GET /simple/supported_vs_currencies.
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— Include 24hr ChangebooleanNofalse
— Include 24hr VolbooleanNofalse
— Include Last Updated AtbooleanNofalse
— Include Market CapbooleanNofalse

Coin: Ticker

ParameterTypeRequiredDefaultDescription
Coin IDstringYes—The CoinGecko coin ID. Find at https://www.coingecko.com/ — the ID is in the URL (e.g., bitcoin, ethereum, solana).
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. (shown when Return All is false)
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— Exchange IDsstringNo—Comma-separated exchange IDs to filter by. Find exchange IDs at https://www.coingecko.com/en/exchanges.
— Include Exchange LogobooleanNofalse
— OrderoptionsNotrust_score_descSort results by the selected rule.
Options: trust_score_desc, trust_score_asc, volume_desc

Event: Get Many

ParameterTypeRequiredDefaultDescription
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. (shown when Return All is false)
OptionscollectionNo{}
Options: decentralized_finance_defi, gecko_asc, 1h, trust_score_desc
— Country CodestringNo—Country code to filter events. Find codes at GET /events/countries.
— From DatestringNo—List events after this date (ISO 8601 format).
— To DatestringNo—List events before this date (ISO 8601 format).
— TypestringNo—Type of event to filter by. Find types at GET /events/types.
— Upcoming Events OnlybooleanNotrueWhether to list only upcoming events.

All Operations

ParameterTypeRequiredDefaultDescription
Max ConcurrencynumberNo10Maximum number of items to process concurrently.

Output Data

Every operation merges its result onto the input item’s JSON — the fields the item already carried survive, and a result field with the same name overwrites the item’s value. Binary data on the input item is forwarded unchanged.

Most operations fan out: one output item per record returned, so a single input item can produce hundreds of output items:

OperationOutput
Get, Price, HistoryOne output item — the API’s response object merged onto the item. Price returns one object keyed by coin (or contract address), not one item per coin.
Get Many, Market, TickerOne output item per coin or ticker returned.
Market ChartOne output item per data point, reshaped to time (ISO 8601), price, marketCaps, totalVolume.
CandlestickOne output item per candle, reshaped to time (ISO 8601), open, high, low, close.
Event Get ManyOne output item per event.

When a request returns nothing at all, the input item is still passed through unchanged — so an empty result is an item with no new fields on it, not a missing item. Check for the field you expect before using it downstream.

Example Configuration

Look up several coins in several currencies at once:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "price",
    "searchBy": "coinId",
    "baseCurrencies": "bitcoin,ethereum",
    "quoteCurrencies": "usd,eur",
    "options": {
      "include_24hr_change": true,
      "include_market_cap": true
    }
  }
}

Get full current data for one coin, including market metrics:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "get",
    "searchBy": "coinId",
    "coinId": "{{ $json.coin }}",
    "options": {
      "market_data": true,
      "community_data": false,
      "developer_data": false,
      "localization": false,
      "sparkline": true,
      "tickers": false
    }
  }
}

Price a token by its Ethereum contract address:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "price",
    "searchBy": "contractAddress",
    "platformId": "ethereum",
    "contractAddresses": "{{ $json.tokenAddress }}",
    "quoteCurrencies": "usd,eur",
    "options": {
      "include_24hr_change": true,
      "include_24hr_vol": true,
      "include_last_updated_at": true
    }
  }
}

Pull a month of price history as one item per data point:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "marketChart",
    "searchBy": "coinId",
    "baseCurrency": "ethereum",
    "quoteCurrency": "usd",
    "days": "30"
  }
}

Get a week of daily candles:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "candlestick",
    "baseCurrency": "bitcoin",
    "quoteCurrency": "usd",
    "days": "7"
  }
}

Take a historical snapshot of a coin on a fixed date:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "history",
    "coinId": "bitcoin",
    "date": "2026-01-15T00:00:00Z",
    "options": {
      "localization": false
    }
  }
}

List the top 50 DeFi coins by market cap:

{
  "type": "coingecko",
  "parameters": {
    "resource": "coin",
    "operation": "market",
    "baseCurrency": "usd",
    "returnAll": false,
    "limit": 50,
    "options": {
      "category": "decentralized_finance_defi",
      "order": "market_cap_desc",
      "sparkline": true,
      "price_change_percentage": ["24h", "7d"]
    }
  }
}

List upcoming crypto conferences in one country:

{
  "type": "coingecko",
  "parameters": {
    "resource": "event",
    "operation": "getAll",
    "returnAll": false,
    "limit": 10,
    "options": {
      "country_code": "US",
      "type": "Conference",
      "upcoming_events_only": true
    }
  }
}

Error Handling

ModeBehavior
stopHalts workflow on first error
continueSkips failed items, passes successful ones through
errorPortRoutes failed items to Error output port

Tips

This tool retrieves cryptocurrency prices, market data, OHLC charts, tickers, and events from CoinGecko. It is ideal for current and historical data on coins and related events, offering more detailed market insights than a simple price lookup. It produces current and historical cryptocurrency prices, market capitalization, trading volumes, candlestick charts, exchange tickers, and event listings.

  • Search By decides which identifier you fill in. With coinId you supply CoinGecko slugs; with contractAddress you supply Platform ID plus the token address. Filling the other one has no effect.
  • Return All really does page through everything. On Get Many, Market, Ticker and Events it keeps requesting pages until the API stops returning results, which can be a lot of items and a lot of requests. Leave it off and set Limit when you only need a slice.
  • The public API is rate limited. Lower Max Concurrency if a large batch starts returning errors, and prefer one request that names several coins (Price accepts comma-separated lists) over one node run per coin.
  • Resource and Operation are fixed at design time. Unlike the other fields they do not accept expressions, so build separate branches rather than switching operation per item.

Frequently asked questions

Do I need a CoinGecko account or API key to use this node?

No. The node calls the CoinGecko public API v3 and requires no credentials at all — there is no authentication step to configure. Just drop the node into your workflow and it works. Keep in mind that public access is rate limited, so high-volume workflows may start seeing errors if too many requests fire at once.

Should I use coinId or contractAddress as the search identifier, and does it matter which field I fill in?

It matters a lot. When Search By is set to coinId you must supply a CoinGecko slug (for example 'bitcoin' or 'ethereum') and the contract address field is ignored entirely. When set to contractAddress you must supply both a Platform ID and the token's on-chain address, and the coin ID field is ignored. Filling the wrong field produces no error but also returns no useful data, so double-check which mode is active.

What does 'Return All' actually do, and when should I leave it off?

When Return All is enabled on Get Many, Market, Ticker, or Events operations, the node pages through every available result by making repeated API requests until the API has nothing left to return. For popular operations like Market this can mean hundreds of coins and many sequential requests, all of which count against the public rate limit. Unless you genuinely need the full dataset, disable Return All and set a Limit instead.

I need price data for multiple coins — should I run one node per coin?

No. The Price operation accepts a comma-separated list of coin IDs in a single request, so you can fetch prices for dozens of coins in one node execution. Running a separate node instance per coin multiplies your API calls and is likely to trigger rate limiting. Batch your coin IDs into one request wherever the operation supports it.

Can I dynamically switch between operations — for example, fetch a price in one run and OHLC data in the next — using expressions?

No. Resource and Operation are fixed at design time and do not accept expressions. If your workflow needs both a Price lookup and a Candlestick chart, build two separate CoinGecko nodes in parallel branches rather than trying to switch the operation dynamically per item.

Build with CoinGecko

Drop it into a workflow, wire it to an agent, or call it on a schedule.

Open BusyBot

Last reviewed . Spotted something wrong? Tell us.