Skip to the content

Free crypto data API for Google Sheets, Excel and Python

Chart data for Bitcoin, Ethereum and every other asset on CryptoKeyhole, as JSON or CSV over plain HTTPS, or straight into Google Sheets, Excel and Python. The Free charts need no key and no sign-up, and come with their full history.

Try it now: no key, no sign-up

# Bitcoin's Fear & Greed Index for the last 7 days, as CSV
curl "https://cryptokeyhole.com/api/v1/fear-and-greed?coin=btc&format=csv&limit=7"

# Every daily ETH price since August 2015, exact decimals, as CSV (needs jq)
curl -s "https://cryptokeyhole.com/api/v1/series?metric=eth.PriceUSD&interval=24h&limit=20000" \
  | jq -r '.points[] | [.t, .v, .finality] | @csv'

Any Free chart works the same way: its id is the metric= part of its address. Every keyless endpoint · Python client · Google Sheets · MCP server for AI assistants

Try it without a key

These addresses answer a plain GET request with no key, no account and no sign-up, from a terminal, a script, a spreadsheet or a notebook. Without a key you read the Free view: daily, weekly, monthly and yearly values of the Free charts, with full history, at up to 240 requests a minute per address.

  • /api/v1/series?metric=eth.PriceUSD&interval=24h
    A chart's values as JSON: points, each with its time in Unix seconds (t), the exact value as decimal text (v) and its finality, plus the chart's name, unit, source and method. Add start and end in Unix seconds for a range, and limit=20000 for every observation; without it, long histories are thinned for drawing and reduction says how.
  • /api/v1/fear-and-greed
    Today's Crypto Fear & Greed Index with its components and earlier readings, as JSON. ?coin=btc for one coin, format=csv for CSV, limit=0 for the daily history back to 2011. Open to web pages (CORS); its own guide.
  • /api/v1/fear-and-greed/coins
    Every coin's Fear & Greed reading in one answer.
  • /api/v1/mcp
    The remote MCP server, so AI assistants can read the same data (set-up).

The addresses are on https://cryptokeyhole.com; the OpenAPI description lists every endpoint with its parameters and answers. A chart's id is in its address: /charts/eth/?metric=eth.PriceUSD has the id eth.PriceUSD, and CKH_METRICS or client.metrics() below list an asset's charts with their ids. Hourly and 10-minute data and the charts above the Free view need an API key from a plan that includes them (plans). Free charts' data is licensed under CC BY 4.0: reuse it with the credit "Source: CryptoKeyhole" and a link to the chart (reusing the data).

The four functions

Google Sheets, Excel and the Python client share the same four functions, with the same arguments and the same output, so a formula that works in one works in the others. Without an API key they read the Free view; with a key from your account page (Plus and higher plans) they read what your plan includes.

Google Sheets
Excel
Python
What it returns
CKH_VALUES
CKH.VALUES
client.values
Chart values as numbers: the date, one column per line of the chart, and the row's finality
CKH_LATEST
CKH.LATEST
client.latest
The newest value: one row with its date, the value and its finality
CKH_SERIES
CKH.SERIES
client.series
Exact observations: 21 columns of text with the value, finality, source clocks, method and provenance
CKH_METRICS
CKH.METRICS
client.metrics
The charts of an asset: id, name, unit, intervals, status and access
VALUES(metric, [interval], [start], [end], [sma], [smoothing])
LATEST(metric, [interval])
SERIES(metric, [interval], [start], [end], [sma], [smoothing], [publication])
METRICS([asset])
  • metric: the chart's id, as in its address: /charts/eth/?metric=eth.PriceUSD has the id eth.PriceUSD. ETH ids start with eth. and LINK ids with link.; METRICS lists them all. A saved formula works too.
  • interval: 24h (the default), 1h, 10m, 1m, 1w, 1M or 1Y, as the chart offers and your plan includes. 1m is one minute (Pro and API & Team, on the BTC, ETH and LINK market charts that list it) and 1M one month: the case matters.
  • start and end: UTC. The start is included and the end is not. Give a date cell, text such as 2024-01-01 or 2024-01-01T12:00Z, or Unix seconds. Numbers below 100,000 are read as spreadsheet dates. Without a start, the API's default window applies (the last 365 days for most BTC charts); without an end, the data runs to the latest value.
  • sma and smoothing: a smoothing window in observations (0 for none) and its method, sma, ema or median, as on the charts.
  • publication: a retained publication id, for the charts that keep them; leave it empty for current data.
  • asset: BTC (the default), ETH or LINK.

VALUES gives each line of a chart its own column, named after the line and its unit, and ends with a Finality column. The newest row can be the open day's partial value, updated hourly until the day closes; its finality says partial. Missing observations are left blank, never zero. Values are numbers for charts and arithmetic; for exact decimals, use SERIES.

SERIES keeps every value as exact decimal text, one row per observation and line, with its finality (final, partial or provisional), its source clock, the coverage and revision of the series, the method and the per-point quality record. The first row also carries the chart's definition, inputs and transform. access in METRICS reads included when your plan, or the Free view without a key, includes the chart; otherwise it names the plan that does.

=CKH_VALUES("eth.PriceUSD", "24h", "2024-01-01")
=CKH_LATEST("link.PriceUSD")
=CKH_VALUES("blockchain.BlockCount", "1h", A1, B1)
=CKH_SERIES("eth.PiCycleTop", "24h", "2026-01-01", , 7, "sma")
=CKH_METRICS("LINK")

Excel uses the same formulas with a dot: =CKH.VALUES("eth.PriceUSD", "24h", "2024-01-01"). Some locales separate arguments with semicolons.

Your saved formulas as metrics

A formula you save in Formulae reads like a chart: give formula: and its id as the metric of VALUES, LATEST or SERIES.

  • A shared formula: use the id in its public link (Show public link), such as /formulas/?share=AbC…, or paste the whole link as the metric. It works for anyone, with or without a key.
  • Your own formulas: with your API key, a saved formula's own id works without sharing it. Formulae shows it under each saved formula. Other people's unshared formulas cannot be read.
=CKH_VALUES("formula:AbC…")
=CKH_LATEST("formula:AbC…", "1h")
client.values("formula:AbC…", start="2024-01-01")

Without an interval or a range, the formula's saved ones apply; giving them overrides them. LATEST reads daily data unless you give an interval. Your plan applies to every chart the formula uses and to the interval, as on the site, and each call counts as one API call. Smoothing belongs in the formula itself, for example sma(a, 7). A formula reads at most 20,000 rows per call, in Python too.

Plans and API calls

PlanKeyDataAPI calls
FreeNone neededDaily, weekly, monthly and yearly values of the Free charts240 a minute per address
Plus2 keysAdds hourly data, the Plus charts and one metric for every coin in one request1,000 a day
Pro5 keysAdds 1-minute data for the BTC, ETH and LINK market charts, 10-minute data, all charts, live streaming, SQL, nightly files for each coin and data webhooks100,000 a month
API & Team10 keysAs Pro, with the whole database as one nightly file, first-published vintages and commercial use of CryptoKeyhole's own derived seriesUnmetered, 240 a minute per key

Free, Plus and Pro are for personal use. Prices are on the pricing page. Every plan reads full history. Each function that fetches data makes one API call; with a key it counts against your plan, and allowances reset at 00:00 UTC (daily) or on the first day of the month (monthly). METRICS makes one call for the chart list; checking your plan is not counted.

Google Sheets and Excel keep each answer until the data's next expected update: about an hour for daily and hourly data, ten minutes for 10-minute data and a minute for 1-minute data. A formula therefore costs at most about 24 calls a day for daily or hourly data, so the Plus allowance covers about 40 such formulas refreshing all day. Python calls the API each time you ask.

API keys

Create a key on your account page; it is shown once. Keys are read-only: they cannot change your account or saved work. Each tool sends the key only in the request's Authorization header, never in a URL, and keeps it out of your cells:

  • Google Sheets: CryptoKeyhole > Set API key stores it in the script's user properties for your Google account.
  • Excel: Data > API key stores it in the add-in's storage on that computer, not in the workbook.
  • Python: set the CRYPTOKEYHOLE_API_KEY environment variable, or pass api_key=.

If a key may have been seen by someone else, revoke it on your account page and create a new one.

Ask the AI analyst

Pro and API & Team: put a question to the AI analyst from your own code. It is the same analyst you can ask on the website: it reads the charts your plan includes, with your key, and answers in Markdown with the charts it used as its sources. Each chart it reads counts as one API call of the key.

# ask a question; the answer comes within 75 seconds
curl -s "https://cryptokeyhole.com/api/v1/analyst/questions" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  -H "Content-Type: application/json" -d '{"question": "Are long-term holders selling into this rally?", "asset": "BTC"}'

# a question still running after 75 seconds answers "running" with its id: read it again
curl -s "https://cryptokeyhole.com/api/v1/analyst/questions/<id>" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY"

# your questions left today and this month
curl -s "https://cryptokeyhole.com/api/v1/analyst" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY"
  • Question: question, and if you like asset (for example BTC), metric (a chart's id to ask about) and conversation (from an earlier answer, to follow it up; kept for 30 minutes after its last question).
  • Answer: answer (Markdown with full links), sources (each chart's id, title, address, resolution, unit and how recent its data is), conversation and allowance. A running question answers 202 with state: "running"; read it at /api/v1/analyst/questions/<id> with the same key. Answers are kept for 15 minutes.
  • Allowance: Pro 25 questions a day and 250 a month, API & Team 100 and 1,000, per account and apart from the questions asked on the website. One question at a time and six a minute per key; each key also has its own share of the analyst's daily and monthly capacity (keyBudgetUsed). Plus and Free keys get a 402 answer with locked.

Google Sheets

  1. Download the script and open it in a text editor.
  2. In your spreadsheet choose Extensions > Apps Script. Replace everything in Code.gs with the script, then save.
  3. Reload the spreadsheet. A CryptoKeyhole menu appears.
  4. Choose CryptoKeyhole > Check key and plan once. Google asks you to allow the script to connect to an external service; it connects only to cryptokeyhole.com.
  5. On Plus and higher plans, choose CryptoKeyhole > Set API key and paste your key.

Type a formula such as =CKH_VALUES("eth.PriceUSD") in an empty cell; the result spills down and to the right. Dates appear in the UTC calendar. For that, the script and the spreadsheet must use the same time zone; if they differ, the functions say so and how to align them.

Sheets recalculates a custom function only when its arguments change. To load newer data, choose CryptoKeyhole > Refresh data, which re-enters the CKH formulas in the spreadsheet. Volatile functions such as TODAY() cannot be arguments of custom functions; leave the end empty instead. A custom function must finish within 30 seconds and returns at most 20,000 rows.

The formulas in a spreadsheet use its owner's key. People you let edit the spreadsheet also edit its script, so they could read the key, and their recalculations count against your allowance. Share view-only, or share a copy without the key.

Excel

Preview: the add-in is not listed in Microsoft's add-in store, and its Excel client verification is pending. It needs Excel on the web, or Excel for Microsoft 365 on Windows or Mac.

  1. Download the manifest.
  2. Add it with your Excel's upload option for add-ins, or through your administrator's approved process. See Microsoft's installation guide.
  3. Review the requested ReadWriteDocument permission. Microsoft requires it for custom functions; the add-in only returns formula results and does not read or send workbook contents.
  4. On Plus and higher plans, choose Data > API key, paste your key and save it.

Enter a formula such as =CKH.VALUES("eth.PriceUSD") in an empty cell. CKH.VALUES and CKH.LATEST return dates as Excel dates in UTC: format the first column as a date (Ctrl+1), or as a date and time for hourly data. To load newer data, recalculate the workbook (Ctrl+Alt+F9).

The chart pages' Excel button copies a CKH.SERIES formula with the chart's range and smoothing.

Python

Install it with pip, which also adds the cryptokeyhole command, or download cryptokeyhole.py and keep it next to your script. It needs Python 3.8 or later and nothing else; to_dataframe() also needs pandas.

pip install https://cryptokeyhole.com/data-access/sdk/cryptokeyhole-1.2.1-py3-none-any.whl
import cryptokeyhole as ckh

client = ckh.Client()          # uses CRYPTOKEYHOLE_API_KEY when it is set

prices = client.values("eth.PriceUSD", "24h", start="2024-01-01")
frame = prices.to_dataframe()  # UTC DatetimeIndex, numeric columns, Finality

when, price, finality = client.latest("link.PriceUSD")

exact = client.series("blockchain.BlockCount", "1M", start="2015-01-01")
exact.to_csv("block-count.csv")

charts = client.metrics("ETH")
both = ckh.wide_dataframe(client.bulk(["eth.PriceUSD", "link.PriceUSD"], start="2024-01-01"))

Each function returns a table with header and rows, the same columns as in the spreadsheets, plus to_csv() and to_dataframe(); latest() returns the row itself. Python also offers client.metric(id) for one chart's full definition, client.export(...) for the chart pages' own CSV or JSON download (Plus and higher plans) and client.assets(). Ranges of more than 20,000 rows are read in consecutive exact windows; each window is one API call, and together they are not one atomic snapshot.

cryptokeyhole values eth.PriceUSD --start 2024-01-01 > eth-price.csv
cryptokeyhole every-coin PriceUSD --start 2025-01-01 > every-coin-price.csv     # Plus and higher
cryptokeyhole sql "SELECT asset, metric, name FROM metrics WHERE name LIKE '%MVRV%' LIMIT 20"   # Pro
cryptokeyhole files && cryptokeyhole download <name>                               # Pro

The paid plans add client.every_coin(metric) (one chart for every coin, Plus and higher), client.sql(query) (SQL, Pro and API & Team), and client.bulk_files() with client.download(file) (the nightly files, checked against their SHA-256). Without pip, run the same commands as python cryptokeyhole.py ....

Errors are exceptions with the API's own message: PlanRequired (with required_plan), QuotaExceeded, AuthenticationError and DataUnavailable, all subclasses of CryptoKeyholeError.

JavaScript

The JavaScript client works in Node 18 or later and in browsers, with no dependencies. It reads CRYPTOKEYHOLE_API_KEY in Node when it is set, and it streams the live channels as an async loop.

npm install https://cryptokeyhole.com/data-access/sdk/cryptokeyhole-1.0.1.tgz
import { Client } from 'cryptokeyhole';

const ckh = new Client();
const price = await ckh.latest('eth.PriceUSD');                  // { t, v, finality, unit, name }
const year = await ckh.series('ckh.MVRVZScoreKnownBasisPriced', { start: '2025-01-01' });
const every = await ckh.everyCoin('PriceUSD', { since: '2025-01-01' });   // Plus and higher

for await (const { event, data } of ckh.stream({ channels: ['trades'], assets: ['BTC'] })) {   // Pro
  console.log(event, data);
}

Values are exact decimal text with their finality. Errors throw CryptoKeyholeError with the API's message, its status and locked (the plan that includes it).

Live streaming

Pro and API & Team can hold one connection open and get every large trade, liquidation and on-chain transfer the moment our producers publish it, with funding rates, Bitcoin's mempool and new blocks: Server-Sent Events over HTTPS, no polling.

curl -N -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  "https://cryptokeyhole.com/api/v1/live/stream?channels=liquidations,trades&assets=BTC,ETH"

Name the channels in channels and the coins in assets (every coin when you leave it out). Each event is a line event: <name> and a line data: <JSON>. The stream opens with a hello event saying what it carries, then the latest funding and mempool readings if you asked for them, and sends a comment line every 15 seconds so the connection stays open.

ChannelEventWhat it carries
tradestradeTaker trades of $100,000 or more on the exchanges we collect: time in milliseconds, coin, venue, market, side, USD value, price and quantity
liquidationsliquidationLiquidations of $10,000 or more: the side closed out (long or short), USD value, price, quantity and contract
transferstransferBitcoin and Ethereum transfers of $1,000,000 or more (and 10 BTC), with exchanges and protocols named from our organisation labels and every other party unlabelled
optionsoptionOptions block trades of $100,000 or more: strategy, legs, premium and size
fundingfundingEvery perpetual contract's 8-hour funding rate, its yearly rate, next funding time, open interest and price, every five minutes, as columns and contracts
mempoolmempoolBitcoin Core's fee estimates in sat/vB for 2 to 1,008 blocks, and the mempool's size, at every new block and at least once a minute
blocksblockEach new block on Bitcoin, Ethereum, Litecoin, Dogecoin and Bitcoin Cash: height, hash and block time
pricespricesOur live USD price of each coin from exchange trades, every half second while it moves

Opening a stream counts as one API call; the events don't count. Pro keeps two streams open at once and API & Team ten. Trade, liquidation, transfer and option events carry the tape's id as the event id: reconnect with a Last-Event-ID header holding the last id you received and you get what you missed in the last 20 minutes. Events that reach us later than that, such as liquidations from exchanges we read from their published record, are in /api/v1/tape. /api/v1/live/channels lists the channels without a key. Browsers' EventSource cannot send a key, so open streams from a server or a script.

import json, os, urllib.request

request = urllib.request.Request(
    "https://cryptokeyhole.com/api/v1/live/stream?channels=liquidations&assets=BTC",
    headers={"Authorization": "Bearer " + os.environ["CRYPTOKEYHOLE_API_KEY"]})
with urllib.request.urlopen(request) as stream:
    event = None
    for raw in stream:
        line = raw.decode().rstrip("\n")
        if line.startswith("event: "):
            event = line[7:]
        elif line.startswith("data: ") and event == "liquidation":
            print(json.loads(line[6:]))

SQL over every chart

Pro and API & Team can query every chart's daily values with SQL: put on-chain series beside ETF flows, rank every coin by one measure, or turn days into weeks and months, all in one request. It is the data the charts show, one row per chart per day, every coin, with full history.

# Bitcoin's last seven daily prices, as CSV
curl -G "https://cryptokeyhole.com/api/v1/sql" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  --data-urlencode "q=SELECT day, value FROM series WHERE metric = 'ckh.AdmittedBoundaryPriceUSD' ORDER BY t DESC LIMIT 7" \
  --data-urlencode "format=csv"

Send the query as q on a GET, or POST JSON {"query": "…", "format": "csv"} to the same address for long queries. Answers are JSON (columns, rows, truncated and snapshot) or CSV with a header row. Each query is one API call.

Tables

  • series: one row per series per day: asset, metric, chart, component, interval, day (YYYY-MM-DD, UTC), t (Unix seconds), value and finality (final, provisional, or partial for the day still open). A stacked chart's bands are series of their own: metric is the band's id, chart the chart's and component the band's name.
  • latest: each series' latest row, with its name and unit.
  • metrics: one row per series: its id, coin, chart, name, folder, unit, interval, plan, first and last time (first_t, last_t), number of points, when it was last read (read_at) and the chart's address.
  • assets: each coin's code, name, kind and the id of its price chart (price).
  • points and finality: the tables under series. points is keyed by mid (from metrics) and t, the fastest way to read long histories.

/api/v1/sql/schema lists every column with example queries and when the data was read, and needs no key. The SQL is SQLite's: WITH, window functions, date() and strftime() all work.

-- Every coin's latest daily price, highest first
SELECT a.asset, a.name, l.day, l.value AS price_usd
FROM assets a JOIN latest l ON l.metric = a.price
ORDER BY price_usd DESC;

-- Bitcoin's lowest and highest daily close of each month
SELECT substr(day, 1, 7) AS month, min(value) AS low, max(value) AS high, count(*) AS days
FROM series WHERE metric = 'ckh.AdmittedBoundaryPriceUSD' AND finality = 'final'
GROUP BY month ORDER BY month;

What it holds, and how fresh

Every public chart of every coin, with its full history: daily values, or weekly, monthly or yearly ones for charts that have no daily values. Values are 64-bit floating-point numbers; the exact decimals stay in /api/v1/series and the downloads. Hourly and 10-minute values, and the price-level distributions (cost-basis bars and heatmaps, weekday and month tables), stay in the series API.

The data is read every hour at about 20 minutes past: the last three days of every series again (the open day's partial value, yesterday's provisional values turning final) and any new chart in full. Once a week, on Sunday after 00:30 UTC, every chart is read again in full. The few heaviest charts are read after the others, as the hour's run has time, so their newest days can trail the rest. Every answer says when its data was read: snapshot.builtAt in JSON and the X-CKH-Snapshot header; read_at in metrics gives each series' own read time.

Limits

One reading statement per request (SELECT, or WITH … SELECT); at most 100,000 rows per answer (truncated and the X-CKH-Truncated header say when there were more, and maxRows asks for fewer); 30 seconds per query. Filter on metric first, and on t for a range: those are the keys.

Spreadsheets, BI tools and Python

Power BI and Excel: Get Data › From Web › Advanced; the address with format=csv and your query in q, URL-encoded; and a header Authorization with the value Bearer, a space and your key. Any tool that reads CSV or JSON over HTTPS with a header works the same way. In Python with pandas:

import io, os, urllib.parse, urllib.request
import pandas as pd

query = "SELECT a.asset, l.value AS price_usd FROM assets a JOIN latest l ON l.metric = a.price"
url = "https://cryptokeyhole.com/api/v1/sql?" + urllib.parse.urlencode({"q": query, "format": "csv"})
request = urllib.request.Request(url, headers={"Authorization": "Bearer " + os.environ["CRYPTOKEYHOLE_API_KEY"]})
prices = pd.read_csv(io.BytesIO(urllib.request.urlopen(request).read()))

Bulk data

Two ways to take a lot of data at once, both from the daily values the SQL tables hold.

One metric for every coin

Plus and higher: one request returns a chart for every coin that publishes it. Name the chart without its coin prefix (PriceUSD, MarketCap) or give any coin's full id (eth.PriceUSD); add assets= to choose coins, since= and until= (YYYY-MM-DD) for a window, and format=csv for one table. A coin's chart that your plan doesn't include is listed under locked with the plan that includes it. Each request is one API call.

curl -G "https://cryptokeyhole.com/api/v1/bulk/metric" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  --data-urlencode "metric=PriceUSD" --data-urlencode "since=2025-01-01" --data-urlencode "format=csv"

JSON answers carry each coin's series with its points as [t, value, finality] rows, the chart's name, unit, plan and page, and when the data was read (database.builtAt). An answer holds at most 500,000 rows (truncated says when there were more).

Nightly files

Pro and API & Team: every night at about 02:10 UTC, one gzip CSV per coin with every daily value of its charts (asset, metric, chart, component, day, t, value, finality) and a list of every series (name, folder, unit, interval, plan, first and last day, page). API & Team also gets the whole database as one SQLite file, with the same tables as the SQL API, for the sqlite3 tool, Python, R or DuckDB.

Ask for the list with your key: each file comes with its size, row count, SHA-256 and a download link that works for an hour without a key, so curl, wget or a browser can fetch it, and an interrupted download can resume. Listing the files is one API call; downloads are not counted.

# the files, with their sizes and links
curl -s "https://cryptokeyhole.com/api/v1/bulk/files" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  | jq -r '.files[] | [.name, .bytes, .url] | @tsv'

# fetch one and read it
curl -sL -o eth.csv.gz "<a url from the list>"
python -c "import pandas as pd; print(pd.read_csv('eth.csv.gz').tail())"

Only the latest set is kept: a link from an earlier list answers that its file has been replaced, so ask for the list again.

Data webhooks

Pro and API & Team: have a chart's new values, or the coins a screen matches, sent to your own address as they are published, instead of asking for them. Each event goes to one of your webhooks (Discord, Slack or any address, set up under Webhooks in your workspace), signed with that webhook's secret (Standard Webhooks headers) and retried for up to six hours.

  • A chart at the resolution you choose (10m, 1h or 24h): each new value, first provisional and then final when it is confirmed, each sent once (event data.value with the exact value, its time, unit and finality).
  • A screen, written as the screener's conditions (where): when the coins that match change, one event (data.screen) lists the coins that joined, the ones that left and all that match now.

A new subscription starts from the latest value (no history is sent). Checks run every five minutes. Pro holds 50 subscriptions and API & Team 200. If your plan no longer includes a chart or a resolution, the subscription pauses with the reason and resumes by itself when it does again.

# your subscriptions and your webhooks (destinations)
curl -s "https://cryptokeyhole.com/api/v1/data-webhooks" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY"

# every new daily value of Bitcoin's MVRV Z-Score
curl -s "https://cryptokeyhole.com/api/v1/data-webhooks" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"destinationId": "<an id from destinations>", "metric": "ckh.MVRVZScoreKnownBasisPriced", "interval": "24h"}'

# remove one
curl -s "https://cryptokeyhole.com/api/v1/data-webhooks/delete" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY" \
  -H "Content-Type: application/json" -d '{"id": "<a subscription id>"}'

First-published vintages

API & Team: the exchange flow charts' values as they were first published, before later revisions or late data, for backtests that must not see the future. CryptoKeyhole records every new or changed published value of these charts every ten minutes, each with the time it was first seen. The record starts on 8 November 2026; earlier times cannot be recreated. Charts that keep retained publications offer the same through their publication parameter.

# each day's first published Bitcoin exchange netflow
curl -s "https://cryptokeyhole.com/api/v1/vintages?metric=ckh.ExchangeNetflowVolumeBTC&interval=24h" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY"

# the same days as they stood at a moment in the past
curl -s "https://cryptokeyhole.com/api/v1/vintages?metric=ckh.ExchangeNetflowVolumeBTC&interval=24h&asOf=2026-11-20T00:00:00Z" -H "Authorization: Bearer $CRYPTOKEYHOLE_API_KEY"

Each point has t, v (exact decimal text), finality and seen; recordedSince says when that chart's record began. Hourly (1h) and daily (24h) intervals; format=csv for a table. /api/v1/vintages/charts lists the recorded charts and needs no key.

Messages and limits

  • A plan message, such as "Hourly resolution is included with Plus and higher plans": the chart or resolution needs a higher plan, or no key is set.
  • "API key is invalid or revoked": create a new key and set it again.
  • "Daily API allowance reached" or "Monthly API allowance reached": the plan's calls are used up until the reset. "Request limit reached": more than 240 calls in a minute. When the API says how long to wait, the tools wait once and retry.
  • "This chart is being prepared": a long range is being calculated; retry shortly.
  • "More than 20,000 rows": choose a shorter range or a coarser interval. Python reads such ranges in windows.
  • A held or unavailable chart returns its reason instead of values; no value is ever substituted.

Reusing the data

Free charts' data, including what the API returns for them without a key, is licensed under CC BY 4.0: reuse it for any purpose, crediting "Source: CryptoKeyhole" with a link to the chart.

Plus and Pro are personal plans: use the data for your own research and decisions, including your own trading. You may share individual charts or screenshots, credited to CryptoKeyhole. Republishing their data, using it in a product or service, or redistributing it in bulk needs API & Team, which covers commercial use of CryptoKeyhole's own derived series, credited to CryptoKeyhole, but not reselling them as a dataset. On every plan, raw exchange data and other third-party data are not licensed for redistribution. Keep each series' source and attribution, which SERIES carries, when you reuse it. The terms of service apply.

Downloads

AI assistants can read the same data through the MCP server.