CoinGecko API: Get coin price on date
Gets a coin's price, market cap and 24-hour volume at 00:00 UTC on a past date. Non-USD currencies are available only for the last 365 days.
Unofficial. Not affiliated with or endorsed by CoinGecko.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Coin, required
coin Coin name, symbol, CoinGecko link, or coin ID, such as Bitcoin or BTC.
Ethereum
- Date, required
date UTC snapshot date in YYYY-MM-DD form, such as 2024-09-29.
2026-02-15
- Currency optional
currency Quote currency name or code, such as USD, EUR, or euro.
euro
Default
USD.
Input as JSON
{ "coin": "Ethereum", "date": "2026-02-15", "currency": "euro"}Output
{ "date": "2026-02-15", "note": "CoinGecko's daily value is the 00:00 UTC snapshot.", "price": 1757.5677879690463, "symbol": "ETH", "coin_link": "https://www.coingecko.com/en/coins/ethereum/historical_data?start=2026-02-15&end=2026-02-15" , "coin_name": "Ethereum", "market_cap": 212125193329.37424, "volume_24h": 13574713761.080927, "currency_code": "EUR"}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"coingecko.com/get_coin_price_on_date","input":{"coin":"Ethereum","date":"2026-02-15","currency":"euro"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "coingecko.com/get_coin_price_on_date" , "input": { "coin": "Ethereum", "date": "2026-02-15", "currency": "euro" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "coingecko.com/get_coin_price_on_date" , "input": { "coin": "Ethereum", "date": "2026-02-15", "currency": "euro" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run coingecko.com/get_coin_price_on_date# with {"coin":"Ethereum","date":"2026-02-15","currency":"euro"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "coin", "date" ], "properties": { "coin": { "type": "string", "minLength": 1, "description": "Coin name, symbol, CoinGecko link, or coin ID, such as Bitcoin or BTC." }, "date": { "type": "string", "description": "UTC snapshot date in YYYY-MM-DD form, such as 2024-09-29." }, "currency": { "type": "string", "default": "USD", "description": "Quote currency name or code, such as USD, EUR, or euro." } }}Output schema
{ "type": "object", "required": [ "coin_name", "symbol", "date", "price", "market_cap", "volume_24h", "currency_code", "note", "coin_link" ], "properties": { "date": { "type": "string" }, "note": { "type": "string" }, "price": { "type": "number" }, "symbol": { "type": "string" }, "coin_link": { "type": "string" }, "coin_name": { "type": "string" }, "market_cap": { "type": [ "number", "null" ] }, "volume_24h": { "type": [ "number", "null" ] }, "currency_code": { "type": "string" } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
coingecko.com/get_coin_price_on_date- Returns
- coin name, symbol, date, price, market cap, 24h volume, currency, CoinGecko link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method coingecko.com/get_coin_price_on_date with the inputs above.
Ask your agent
- What was Bitcoin's price at midnight UTC on March 15, 2023, and what was its market cap?
- Look up the Ethereum 24h trading volume as of 2022-11-08 00:00 UTC in US dollars.
- I need the ETH price in euros on 2024-06-01, including market cap, from CoinGecko.
- How much was Solana worth on the date 2021-04-20, and what was its 24-hour volume that day?
- Show me Dogecoin's historical snapshot for 2025-01-10 in British pounds, with its CoinGecko link.
See more
All CoinGecko methodsGets a coin's daily prices and price change over the last 7, 30, 90 or 365 days, with UTC dates. Today's price may change.
coingecko.com/get_coin_price_historyLists up to 15 of the most-searched coins on CoinGecko in trending order, with price and 24-hour change in the chosen currency. Non-USD prices may be unavailable for some coins.
coingecko.com/list_trending_coinsLists CoinGecko crypto sectors by market cap with daily change, volume, leading coins and category pages, optionally filtered by name or link.
coingecko.com/list_crypto_categoriesGets a cryptocurrency's price, changes, supply, market cap, volume and all-time high in a chosen currency. If a name or symbol is shared, returns the coin with the largest market cap.
coinmarketcap.com/get_coin_priceLooks up a cryptocurrency's current Coinbase spot, buy and sell prices in a chosen currency.
coinbase.com/get_coin_priceGets a cryptocurrency's price, 24-hour change, market statistics, popularity, tradability, description and website from its public Coinbase price page.
coinbase.com/get_coin_overviewGets a Binance spot pair's latest price and rolling 24-hour trading statistics from a coin name or symbol. Only currently trading pairs are available.
binance.com/get_coin_priceGets a coin's current Kraken price, bid and ask, and 24-hour trading statistics in a chosen currency, with change since today's midnight UTC open.
kraken.com/get_coin_price