GET STARTED
Quickstart
Make a first call without a key, read what comes back, connect an agent, then take a free key for the rest.
1. Call it without a key
No account and no parameters beyond the asset. The first line returns the ten past moments most like Bitcoin right now, each with what followed. The second returns every CPI release on record, ranked by how much the market before each one looked like now.
Without a key you get 50 answers a day per address, and ten moments in one reply is one answer. Each reply carries X-Taste-Left, the answers left today.
Keep the quotes around the URL, or your shell reads & as its own.
curl 'https://priorcase.com/v1/search?asset=BTC'curl 'https://priorcase.com/v1/after/cpi?asset=BTC&alike=now'2. Read the answer
query is the moment you asked about. matches are the past moments most like it, each with a similarity and a moment.
Every moment comes in two parts. then is what was knowable at that moment. after is what happened over the next 32 hours, in percent from then.close: ret_4h_pct, ret_24h_pct, ret_32h_pct, the widest move each way, and path_pct, the path itself.
Read the matches side by side. They are never averaged, and the spread between them is the answer. Similarity ranks them; it is not a measure of confidence.
import requests
r = requests.get(
"https://priorcase.com/v1/search",
params={"asset": "BTC"},
timeout=30,
)
r.raise_for_status()
answer = r.json()
for m in answer["matches"]:
moment = m["moment"]
print(moment["time"], round(m["similarity"], 3),
round(moment["after"]["ret_24h_pct"], 2))2025-12-26T17:00:00Z 0.774 0.77
2021-10-30T05:00:00Z 0.76 -0.08
2019-08-24T10:00:00Z 0.734 1.7
2021-09-07T10:00:00Z 0.734 -8.99
2023-05-04T15:00:00Z 0.714 1.79
…3. Connect an agent
The same engine answers over MCP. Add it to Claude Code with one line, then ask in plain words: what followed the moments most like ETH now, or what the 10-year yield did after the last rate cuts.
In Claude Desktop, open Customize, then Connectors, then Add custom connector, and paste https://priorcase.com/mcp/. MCP covers other clients and every tool.
claude mcp add --transport http \
priorcase https://priorcase.com/mcp/4. Get a key
A key opens the rest: conditions in words, single moments, paths, and up to 50 moments in one reply. Sign in at API keys with Google, GitHub or Microsoft and create one. The free plan needs no card.
SHOWN ONCE
The key is shown once, when you create it. Copy it into your environment before you leave the page. If you lose it, revoke it and create another.
Send it as a bearer token, the same way over REST and MCP. Every reply that counts against your allowance says what it cost and what is left, in X-Answers-Cost and X-Answers-Remaining. See Limits.
export PRIORCASE_KEY="pc_live_…"curl -H "Authorization: Bearer $PRIORCASE_KEY" \
'https://priorcase.com/v1/search?asset=BTC&k=20'