Docs·Public Data API

Public Data API

Endpoints

Every route with its parameters, defaults and ceilings, the cursor paging contract, and the CSV renderer.

Version
1.5
Updated
2026-09-28
Source
Public Data API routes · Public Data API library

Endpoints#

The s-maxage column is the CDN’s window in seconds. Every response also carries max-age=0, so a browser always revalidates rather than serving a stale figure out of its own disk cache. CSV means the endpoint accepts ?format=csv; cursor means it pages with pagination.next.

Reference
PathReturnsCSVCursors-maxage
/api/v1/healthChain, environment, factories in scope, which reader variable answered, the /ready probe, and a row count per indexed tableNoNo5
/api/v1/metricsEvery published figure’s derivation, and the figures that are deliberately not publishedNoNo300
Protocol
PathReturnsCSVCursors-maxage
/api/v1/statsLifetime launch and market counts, curve volume over all time / 24h / 7d / 30d, fees by leg, the fee meter, and open interest per currencyNoNo15
/api/v1/stats/dailyThe protocol’s UTC-day series, newest firstYesNo60
/api/v1/feesFees by leg over a window, or by dayYesNo15, or 60 with by=day
/api/v1/thd/meterThe protocol fee meter, what the ceiling refused for good, and the THD unlock it drives — null when the denominator cannot be readNoNo15
Launches
PathReturnsCSVCursors-maxage
/api/v1/launchesEvery launch on every factory in scope, filterable and sortableYesYes15
/api/v1/launches/{token}One launch, plus progressBps, its graduation row, and whether it sits on a superseded factoryNoNo15
/api/v1/launches/{token}/tradesCurve trades, newest first. side is BUY, SELL or REDEEMYesYes15
/api/v1/launches/{token}/holdersThe on-chain census (or null) and the log-derived balances, kept apartYesNo60
Markets
PathReturnsCSVCursors-maxage
/api/v1/marketsPrediction markets, filterable by status, subject and currencyYesYes15
/api/v1/markets/{id}One market by its bytes32 id, with the predicate decoded and its settlementNoNo15
/api/v1/markets/{id}/stakesEvery stake on one market, newest firstYesYes15
/api/v1/settlementsSettlements across all markets, optionally by settlerYesYes15
/api/v1/settlements/rewardsThe settler’s THD reward per settlement and per settler, as the feeder stored itNoNo15
People
PathReturnsCSVCursors-maxage
/api/v1/creatorsCreators by volume, with the registry’s own snapshot published beside the derived figuresYesYes60
/api/v1/creators/{address}One creator, with the tier name resolvedNoNo60
/api/v1/kolsKOLs by lifetime allocation, with the registry attestation and its trust boundaryYesYes60
/api/v1/referrersCode-level referral aggregates. No referee is ever identifiedYesYes60
/api/v1/tradersThe trading board. boardStatus is always PARTIALYesYes60
/api/v1/points/{spending|earnings}One frozen UTC day of a battlepass points board, shared ranks, fee value and pot shareNoNo60

Parameters, sorting and paging#

Parameters accepted, by endpoint
EndpointParameterslimit default / max
/launcheslifecycle (CURVE_TRADING | CURVE_COMPLETE | GRADUATED) · force (a force id the index holds, or LIGHT | DARK) · creator (address) · sort · includeDev · limit · cursor · format50 / 500
/launches/{token}/tradesside (BUY | SELL | REDEEM) · limit · cursor · format100 / 1000
/launches/{token}/holderslimit · format100 / 1000
/marketsstatus (OPEN | SETTLED | VOIDED | PAUSED) · subject (address) · currency (address) · limit · cursor · format50 / 500
/markets/{id}/stakeslimit · cursor · format100 / 1000
/settlementssettler (address) · limit · cursor · format100 / 1000
/creators, /kols, /traderslimit · cursor · format50 / 500
/referrerswindow (7d | 30d | all) · limit · cursor · format50 / 500
/points/{spending|earnings}day (YYYY-MM-DD, UTC; a frozen day, default the newest) · limit100 / 1000
/stats/dailyfrom, to (YYYY-MM-DD, UTC) · limit · format90 / 730
/feesby (leg default, or day) · from, to · limit · format90 / 730
/health, /metrics, /stats, /thd/meter, /launches/{token}, /markets/{id}, /creators/{address}None—
How the parameters behave
ParameterBehaviour
Enumerated valuesCase-insensitive on input (?status=open is accepted) and matched against a fixed set. An unaccepted value is a 400 that lists the set
AddressesCase-insensitive on input, lower-case on output. A malformed one is a 400 naming the parameter, the value and its length
sortOnly on /launches: RECENT (default), OLDEST, VOLUME, RAISED
includeDevIncluded only when the value is exactly true. Anything else, including TRUE or 1, excludes dev launches
from, toUTC YYYY-MM-DD. On /fees?by=leg, to is clamped to the indexed block — a window never extends past what has been read
windowOnly on /referrers: all (default) is the lifetime board; 7d and 30d are the leaderboard’s windows, summed from each credit’s block time, with data.window.from inclusive and data.window.to exclusive. Later pages keep the first page’s window. An index without per-credit rows is a 404 API_V1_DATA_NOT_STORED, never lifetime totals
limitA whole number within the endpoint’s range. Out of range is a 400 naming the range and the default, and pointing at the cursor rather than at a larger limit
cursorSee below

Cursors are opaque and carry their query#

Paging is keyset, not offset: OFFSET re-scans, and on a table being written to continuously it silently repeats or skips rows at every page boundary. Pass pagination.next back as ?cursor= unmodified. It is base64url and its contents are not part of the contract.

pagination.next is null on the last page, and that is determined by the query reading one row beyond the page rather than by the page being full — so a page that happens to end exactly on the last row does not hand back a cursor that returns nothing.

CSV#

?format=csv on any of the twelve tabular endpoints returns RFC 4180 CSV with CRLF line endings and a Content-Disposition filename. Only json (the default) and csv are served; anything else is a 400 naming what was asked for and what is supported, rather than a silent fall back to JSON.

What the CSV writer guarantees
BehaviourWhy it matters
Every cell is quotedA wei figure is a twenty-something-digit integer. An unquoted numeric cell is converted to a float past fifteen significant digits by every spreadsheet, and the exact figure is gone before the reader has done anything
A leading =, +, - or @ is prefixed with an apostropheA launch name comes from a creator and a market question is free text. Those characters start a formula in every spreadsheet program
The header comes from a declared column listA row missing an optional field cannot shift every later column by one, which is the failure that makes a CSV look fine and reconcile wrong
No comment rowThe freshness envelope travels in headers instead. A leading comment row breaks the CSV reader in every tool that has one
Freshness on a CSV response, where there is no envelope to carry it
HeaderValue
x-thehood-as-of-blockfreshness.asOfBlock
x-thehood-coverageFULL or PARTIAL. A partial export presented as complete is the failure the envelope exists to prevent
x-thehood-scopeThe scope, present only when there is one. Punctuation outside one byte is normalised, because an HTTP header value cannot carry an em dash
x-thehood-noticefreshness.notice as code: headline. detail, present only when there is one. Normalised the same way

All of those except x-thehood-scope are on the JSON responses as well, so a monitor or a curl -I can read freshness without parsing a body. Every one of them is named in Access-Control-Expose-Headers, so a browser on another origin can actually read it.