Developers & API › Public Data API › Endpoints

Public Data API

Endpoints

Every route with its parameters, defaults and ceilings, the cursor paging contract, the CSV renderer, and every field of every row shape returned.

Version
1.7
Updated
2026-10-14
Source
Public Data API routes · Public Data API library · Metric definitions v1.2

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/fees/currenciesLifetime protocol fees per currency as received, by source, with converted, ETH realised, forwarded, Safe-exchanged and burnedNoNo15
/api/v1/fees/dailyProtocol fees per UTC day in each currency; by=currency or by=source; filters currency, source, product, from, toYesYes60
/api/v1/fees/receiptsEvery protocol fee receipt, newest first, before conversion; filters currency, source, productYesYes15
/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
Rewards
PathReturnsCSVCursors-maxage
/api/v1/leaderboards/{creators|traders|kols}One THD-paying board over a fixed UTC day, month or all time: each account’s measure and its THD credited and held from that board’s pot, with the pot’s daysNoNo60
/api/v1/dropsSponsored drops, newest first: pot, fee legs, terms, root, claims and clockNoNo15
/api/v1/drops/{drop}One drop, its root and sweep history, the stored snapshot standings, and one account’s leaf and proof when account is sentNoNo15

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
/leaderboards/{creators|traders|kols}window (day default | month | all) · day (YYYY-MM-DD, UTC, not in the future; default today) · month (YYYY-MM, not in the future; default this month) · page (1 to 100,000; default 1) · limit50 / 500
/dropssponsor (address) · limit200 / 1000
/drops/{drop}account (address; adds that account’s leaf)—
/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 14 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.

Row fields#

The fields below are the row shapes the list and single-resource endpoints return. A field typed wei or base units is a decimal string — see amounts. A timestamp field is an object { unix, iso }, where unix is a decimal string of seconds.

Launch#

A row of /api/v1/launches, and the body of /api/v1/launches/{token}
FieldTypeNote
token, curve, creator, creatorFeeRecipient, factoryaddressLower-case. The factory may be a superseded generation
launchIdinteger stringThe factory’s own sequence number
force, forceNamenumber, LIGHT | DARK | nullThe force’s registry id: 0 is LIGHT, 1 is DARK. forceName is null for any other id. Chosen at launch, permanent
lifecyclestringCURVE_TRADING, CURVE_COMPLETE, GRADUATED
devbooleanAn owner-created test launch. Excluded unless ?includeDev=true
graduationTargetWei, initialBuyWeiwei
initialTokensBoughttoken base units
earlyWalletCap{ status, bps, seconds, untilGraduation }The creator’s per-wallet cap: bps of total supply (50–250), seconds as an integer string, 4294967295 = until graduation. status: STORED | UNREADABLE | NOT_INDEXED; values null unless stored
crewSplitter, crewMembersaddress | null, number | nullNull on a launch made with no founding crew
promotedPlacement, promotionPaidWeinumber | null, wei | nullMarketing revenue. Never a protocol fee
launchedAt, block, txHashtimestamp, integer string, hash
statsobject | nullnull when no trade has been indexed for this launch — not a row of zeros
stats.trades, .buys, .sells, .uniqueTraders, .holdersDerivednumberholdersDerived is a log-derived count, not a census
raiseCurrencyobject: address, isNativeEth, symbol, decimalsThe unit of every amount on this launch. symbol and decimals are null when the index has no listing row for the currency
stats.curveVolumeWei, .buyVolumeWei, .sellVolumeWei, .tradeFeeWei, .netRaisedWeibase units of raiseCurrencyWei only when raiseCurrency.isNativeEth. Never add them across launches. netRaisedWei is the raised figure — never realEthReserve, which is zeroed at graduation
stats.curveVolumeValueobject: ethValueWei, usdValueE18, pricedTrades, unpricedTrades, ethUnpricedTrades, oldestPricedAt, newestPricedAt, valuationCurve volume at each trade’s event-time price (the CoinGecko price posted on chain and in force at its block). Trades with no price then are left out and counted. The VOLUME sort key
stats.netRaisedValueWeiwei (may be negative)netRaisedWei in ETH value, each trade at its own event-time price. The RAISED sort key
stats.lastFdvWei, .lastPokeAtwei | null, timestamp | nullnull until a pool metrics poke exists. An unmeasured valuation, not a valuation of zero

/api/v1/launches/{token} returns the same fields plus progressBps (derived from netRaisedWei / graduationTargetWei, capped at 10000, and forced to 10000 once graduated), progressNote, priorFactory, and graduation — which is null unless the launch has graduated, and otherwise carries ethWei, tokenWei, locker, positionId, sqrtPriceX96, block, txHash and at.

Trade#

A row of /api/v1/launches/{token}/trades
FieldTypeNote
idstringStable row id. The tie-breaker inside a cursor
sideBUY | SELL | REDEEMA REDEEM is a refund out of a curve that never graduated. Filter on side before summing ethWei
venue, venueKindaddress, string
trader, recipientaddress
ethWei, curveQuoteWei, tradeFeeWeiweiethWei − curveQuoteWei is the fee this trade actually paid, at the rate that applied at its block
tokenWeitoken base units
block, logIndex, txHash, atinteger string, number, hash, timestamp

Holders#

/api/v1/launches/{token}/holders
FieldTypeNote
censusobject | nullnull when no census has ever completed. That is unknown, not zero — censusUnavailableReason says what would fix it
census.holders, .countedSupplyWei, .candidatesnumber, wei, integer stringThe on-chain sweep, with its floor and exclusion list applied
census.countedAtBlock, .recordedAtBlock, .recordedAt, .txHashinteger string, integer string, timestamp, hashNo contract bounds a census’s age. The consumer decides what is too old, which is why both blocks are published
derived.holders, .totalSupplyWeinumber, wei | nullNon-zero balances in the indexer’s own projection. No floor, no exclusions, so it is always larger. Never mixed with the census
derived.top[]holder, balanceWei, transferCount, firstSeenBlock, lastChangeBlockLargest balance first, up to limit

Market#

A row of /api/v1/markets, and the body of /api/v1/markets/{id}
FieldTypeNote
marketIdbytes32The id, not the clone address. address is the clone
address, factory, oracle, creatoraddress (oracle may be null)
currency, currencyDecimalsaddress, number | nullThe zero address is native ETH. Every amount on the row is in this currency’s base units
questionstringFree text, written by the creator
family, metric, comparator, subject, thresholdWeinumber | null, address | null, integer string | nullThe encoded predicate. Names are resolved on the single-market route
statusOPEN | SETTLED | VOIDED | PAUSEDThree end states, not two. A settlement with one side empty is SETTLED, refunds everyone at par at zero fee, and is not a void
paused, featuredTierboolean, number | null
deadline, settlementWindowSeconds, createdAt, blocktimestamp, number | null, timestamp, integer string
feeBps, marketingBpsnumber | nullOne cut of the whole pot at settlement, not a per-stake fee. Zero in refund mode
feeRecipientaddress | nullPredictionMarketFactory itself, not a payout wallet. Treating it as one attributes every market’s fee to the factory
statsobject | nullnull when nothing has been staked yet
stats.totalYes, .totalNo, .openInterestbase units of the row’s currencyopenInterest is totalYes + totalNo, with the fee not deducted
stats.paidOut, .refunded, .protocolFee, .marketingFee, .transferShortfallbase units of the row’s currencytransferShortfall is requested minus credited, summed — non-zero only for a fee-on-transfer currency
stats.stakes, .stakers, .claimsnumber

/api/v1/markets/{id} adds a predicate object that resolves the encoded ids to names, and a settlement object that is null until the market settles.

Predicate ids, as published on /api/v1/markets/{id}
FieldValues
familyName0 lifecycle · 1 curve · 2 creator
metricName0 GRADUATED · 1 CURVE_COMPLETE · 2 NET_RAISED_WEI · 3 TOKENS_SOLD_BASE_UNITS · 4 PROGRESS_BPS · 5 CURVE_FDV_WEI · 6 CREATOR_LAUNCH_COUNT · 7 CREATOR_GRADUATED_COUNT · 8 CREATOR_TIER · 9 SUPPLY_BURNED · 10 CURVE_TRADE_FEES_WEI · 11 PROTOCOL_FEES_METERED_WEI
comparatorName0 EQ · 1 NEQ · 2 GT · 3 GTE · 4 LT · 5 LTE

An id with no name resolves to null rather than to a label, so a new metric appearing on chain shows up as an unnamed id rather than as a mislabelled one.

Stake and settlement#

A row of /api/v1/markets/{id}/stakes
FieldTypeNote
id, marketId, userstring, bytes32, address
side, sideNameboolean, YES | NOsideName is on the JSON rows; the CSV carries the name in side
amountRequested, amountCreditedbase units of the market’s currencySum amountCredited. It is the measured balance delta; the requested figure overstates a fee-on-transfer stake
totalYesAfter, totalNoAfterbase units of the market’s currencyThe running pools immediately after this stake
block, txHash, atinteger string, hash, timestamp
A row of /api/v1/settlements, and the settlement object on a market
FieldTypeNote
id, marketId, oracle, settlerstring, bytes32, address, addresssettler is attribution only — settlement is permissionless and unpaid
outcomebooleantrue is YES. The CSV renders it as YES / NO
observedValue, thresholdWeiinteger stringWhat the oracle read, against what the predicate required
deadline, settledAttimestamp
driftSecondssigned integer stringsettledAt − deadline. Negative is an early settle, which is legal where the predicate is already decided
windowSeconds, windowElapsedBpsnumber | null
block, txHashinteger string, hashThe log’s own block. The settlement event carries no block number of its own

Creators, KOLs, referrers, traders#

A row of /api/v1/creators
FieldTypeNote
creatoraddress
launches, graduationsnumberDerived from logs
netRaisedWei, volumeWei, creatorFeeWei, creatorFeeClaimedWeiweiDerived from logs. Launches that raise in native ETH only
volumeValueWei, unpricedTrades, unpricedReason, rankValueWeiwei | null, number | null, string | null, weiCurve volume across every raise currency, each ERC-20 trade at its event-time price; unpriced trades left out and counted. rankValueWei is the ranking key
registry.launches, .graduated, .netRaisedWei, .tier, .syncedAtnumber | null, wei | null, timestamp | nullThe registry’s own keeper-driven snapshot, which is what the chain gates a tier on. Never merged with the derived figures
firstBlock, lastBlockinteger string

/api/v1/creators/{address} adds registry.tierName, the creator rank name: 0 Unranked, 1 Whittler, 2 Fletcher, 3 Bowyer, 4 Artisan, 5 Master. The tier is derived on every read and never granted.

A row of /api/v1/kols
FieldTypeNote
accountaddress
allocatedWei, claimedWeiweiETH sources only. allocatedWei is what the chain actually paid, summed from allocation logs. No contract holds a lifetime total
allocatedValueWei, unpricedAllocations, unpricedReason, rankValueWeiwei | null, number | null, string | null, weiEvery allocation, ETH and ERC-20 sources alike, each at its event-time price; unpriced ones left out and counted. rankValueWei is the ranking key
allocations, windows, sourcesnumber
registryFeesWeiwei | nullA different quantity from a different authority: an off-chain attestation, and the one the rank is computed from. The two are not reconciled on chain
rank, rankRoute, bannednumber | null, boolean | null
enrolled, xVerified, attestorboolean | null, address | nullAssertions, not chain-verified facts. The address that asserted them is published beside them — see boundaries
activeUntiltimestamp | nullPublished because the registry’s eligibility check never reads it, so eligibility is not time-bounded
A row of /api/v1/referrers and of /api/v1/traders
EndpointFields
/referrersreferrer · earnedWei (lifetime, from logs, ETH credits only) · earnedValueWei (ETH and ERC-20 credits at event-time price) · unpricedReceipts · unpricedReason · rankValueWei (the ranking key) · claimedWei · outstandingWei (earned minus claimed, JSON only) · attributedWei (the whole fee that passed through) · receipts · sources · firstBlock · lastBlock
/referrers?window=7d|30dThe same fields summed over data.window only, ranked by earnedValueWei (rankValueWei equals it). claimedWei and outstandingWei are lifetime-only and absent, listed in data.lifetimeOnlyFields. CSV rows add window, windowFromUnix, windowToUnix
/traderstrader · volumeWei · buyVolumeWei · sellVolumeWei · tradeFeePaidWei (all ETH launches only) · volumeValueWei (every raise currency at event-time price) · unpricedTrades · unpricedReason · rankValueWei (the ranking key) · trades · buys · sells · tokens · stakes · settlements · voids · firstBlock · lastBlock

Event-time values#

The valuation object, and the /stats, /stats/daily and /fees fields it describes
FieldTypeNote
valuation.basisETH_PLUS_ERC20_AT_EVENT_TIME | ETH_ONLY_INDEX_PREDATES_VALUESThe second means the serving index has no value columns yet: figures are ETH only
valuation.excludedEvents, valuation.scopenumber | null, stringERC-20 events left out for want of a price at their block. Never a zero for an unknown
/stats curveVolumeWei, buyVolumeWei, sellVolumeWei, tradeFeeWeiweiNative-ETH launches only
/stats curveVolumeValueWei, buyVolumeValueWei, sellVolumeValueWei, erc20Tradeswei, numberEvery raise currency at event-time price
/stats/daily curveVolumeValueWei, tradesUnpriced, stakedValueWei, stakesUnpriced, valueUnavailableReasonwei | null, number, wei | null, number, string | nullnull with a reason on a day written before the value columns existed. The day’s other …Wei fields are native ETH only
/fees erc20ByCurrency[]currency, symbol, decimals, tradeFee, creator, kol, referrer, toFeeConverter, launchFeeSweptERC-20 fee legs, per currency, in that currency’s base units. No ETH total is published for them
The body of /api/v1/leaderboards/{board}
FieldTypeMeaning
chainId, board, bucketnumber, string, stringThe board and the THD bucket its pot is: CREATORS, TRADERS or KOLS_REFERRERS
periodobjectkind, day or month, label, fromUnix (inclusive) and toUnix (exclusive); null is unbounded
measure, totalMeasureWeistring, weiWhat the board ranks on, in words, and the sum over every row
total, page, limitnumberRows on the board, and the page served
rows[]arrayrank, account, measureWei, parts (each named part as …Wei), shareBps, unpriced, and thd: credited, creditedClaim, creditedQuest, held in THD base units
potobjectcomputedDays, heldDays, pot, credited, spoils, held, coverage (countedWei, touchedWei, or null), and days[] with each day’s status, code, reason and the same amounts
heldIsEstimate, unpriced, unknownSubjects, notesboolean, number, number, objectWhether held is an estimate on this board, ERC-20 legs left out for want of a price, and the units of every figure in words
A drop, on /api/v1/drops and /api/v1/drops/{drop}
FieldTypeMeaning
live, reasonboolean, string/drops only. false with a reason and an empty list when the index holds no drop data on this chain
drop, factory, sponsor, tokenaddressThe drop contract, its factory, who funded it, and the token it pays
pot, snapshotDay, vestingSeconds, unclaimedRoute, feeOnTransferbase units, number, number, number, booleanThe terms fixed at funding
feeobjecttier, currencyShareBps, dropValueUsd18, tokenLeg, feeCurrency, currencyLeg
fundingobjectmarketCapUsd18, usdPerToken18, registryCurrency, fixture
termsobject | nullminPerRecipient, maxPerRecipient, boards; null until the index has stored them
root, allocatedTotal, recipients, snapshotHash, vetoCountbytes32 | null, base units | null, number | null, bytes32 | null, numberThe published root and its totals
claimedTotal, claimCount, sweptTotal, fundedAt, txHashbase units, number, base units, unix seconds, hashClaims and sweeps so far, and the funding transaction
clock, phaseobject, stringwindowEnd, publishDeadline, claimStart, firstClaimDeadline, finalDeadline (unix seconds or null); the phase is one of AWAITING_WINDOW, AWAITING_ROOT, ROOT_OVERDUE, VETO_WINDOW, AWAITING_TGE, CLAIMING, LATE_CLAIMS_ONLY, ENDED
What /api/v1/drops/{drop} adds
FieldTypeMeaning
roots[]array, oldest firstkind (PUBLISHED | VETOED), root, allocatedTotal, recipients, reasonCode, timestamp, txHash
sweeps[]array, oldest firstroute, destination, amount, reason, timestamp, txHash
snapshotobjectasOfBlock and boards[], each with board and rows[] of account, rank, score, amount: the snapshot keeper’s stored standings
leafobject | nullNull without account. Otherwise account, amount, proof, parts[] (board, amount) and claimed; or code and reason when the account has no leaf
Errors these three endpoints raise
EndpointConditionCodeStatus
/leaderboards/{board}A board other than creators, traders, kolsAPI_V1_NOT_FOUND404
/leaderboards/{board}A bad window, day, month, page or limitAPI_V1_BAD_PARAMETER400
/dropssponsor not an address, or limit outside 1–1000API_V1_BAD_PARAMETER400
/drops/{drop}drop or account not an addressAPI_V1_BAD_PARAMETER400
/drops/{drop}Not a drop the index holds on this chainAPI_V1_NOT_FOUND404