The base URL is https://dfrds.com/api/v1. Every request carries
Authorization: Bearer dfk_…, except the keyless ones. The citation
resolver and GET /public/status, the status page as JSON (up to
60 times a minute per address, cacheable for a minute with an ETag), are
public. So are the other /public/… endpoints, the data behind the explorer,
prices, tracking and timeline pages: no key, the pages’ own rules (a module
staff switched off is off here too), up to 600 requests a minute per address
and 120 for the pages that read the warehouse afresh for whatever their URL
names: the explorer’s address and event lenses, transactions and blocks, a
pool’s prices and an account on a lending protocol (twenty in any ten
seconds; per address and per network, a /16, signed out; per account for
someone signed in with a confirmed email address, with sixty in ten seconds
and 300 a minute from one address for everyone confirmed behind it, and 120
in ten seconds and 600 a minute from one network for everyone confirmed on
it; an account whose address is not confirmed yet counts per account, per
address as if signed out, and with its network’s other unconfirmed accounts,
sixty in ten seconds and 300 a minute among them; and every reader of one
network together, signed in or not, 120 in ten seconds and 600 a minute), and
cacheable for a minute. Past a limit the answer is a 429
rate_limited whose detail asks for the seconds its Retry-After header
gives. A lens page reads at most 7,200 blocks of its range; its window says
which, and its cursors walk the rest. An Older cursor the moving default
range has passed answers an empty page with range_moved; a staler or edited
one is a 422 invalid_cursor. The web app’s own endpoints, under /session,
answer for the person signed in at dfrds.com with the browser’s session: they
are what the new app at /app reads, not an integration surface, so the tables
below count them rather than list them. The
interactive reference has request and response examples for each
row below and the OpenAPI document is the source of
both: this page is generated from it when it is rendered, so it cannot list an
endpoint we no longer have or miss one we do. If you are new to the API, start
with the first call.
Conventions
- Scopes.
read is every GET; a write names its own scope (research:write
or exports). A key without the scope gets 403 missing_scope, naming the
scope it lacks.
- Pages. Lists page by opaque cursor: pass back
next_cursor (or follow the
Link: <…>; rel="next" header) until it is null. No list returns more than
500 rows.
- Rate limits. Per key, per clock hour, from the plan; every response
carries
X-RateLimit-Limit and X-RateLimit-Remaining, and a 429 resets on
the hour.
- Errors. JSON with a stable
error code and a detail sentence:
invalid_or_revoked_key, plan_has_no_api_access, missing_scope,
ip_not_allowed, rate_limited, invalid_cursor, not_found,
data_source_unavailable, and per endpoint the codes its row in the
reference names.
- Nulls are unknowns. A null figure means it could not be derived. It never
means zero.
Endpoints
Path parameters are shown in braces; everything else is a query parameter or a
body field.
Account
| Endpoint |
What it does |
Scope |
Parameters |
GET /me |
The organization, plan, entitlements and limits behind this key |
read |
|
GET /status |
Warehouse reachability and ingest lag |
read |
|
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/status |
The status page as JSON (public, no key) |
none (public) |
|
GET /public/auth |
How the SPA signs in (public, no key) |
none (public) |
|
GET /public/site |
The public site’s facts (public, no key) |
none (public) |
|
GET /public/home |
The landing page (public, no key) |
none (public) |
|
GET /public/plans |
The pricing page’s plans (public, no key) |
none (public) |
|
GET /public/about |
What the about page lists as covered today (public, no key) |
none (public) |
|
GET /public/api_reference |
The API reference page (public, no key) |
none (public) |
|
GET /public/docs |
The documentation index (public, no key) |
none (public) |
q, audience |
GET /public/docs/{slug} |
One guide (public, no key) |
none (public) |
{slug} |
GET /public/legal |
The legal documents (public, no key) |
none (public) |
|
GET /public/legal/{slug} |
One legal document (public, no key) |
none (public) |
{slug} |
GET /public/blog |
The blog’s published articles (public, no key) |
none (public) |
category |
GET /public/blog/{slug} |
One published article (public, no key) |
none (public) |
{slug} |
Markets
| Endpoint |
What it does |
Scope |
Parameters |
GET /tokens |
Token symbols that trade in a tracked market |
read |
q, limit, cursor |
GET /pairs |
Pools trading a pair, ranked by activity |
read |
base, quote, q, source, limit |
GET /pools/{address}/prices |
OHLC and volume bars for one pool |
read |
{address}, period, from, to |
Lending
| Endpoint |
What it does |
Scope |
Parameters |
GET /liquidations |
Aave-style liquidations, newest first |
read |
protocol, collateral, from, to, block_from, block_to, limit, cursor |
GET /health_factors |
Aave-style health factors at a snapshot block |
read |
protocol, block, account, min_hf, max_hf, limit, cursor |
GET /absorptions |
Compound v3 absorptions, newest first |
read |
market, from, to, limit, cursor |
Events
| Endpoint |
What it does |
Scope |
Parameters |
GET /events |
The sourced event registry (the timeline) |
read |
category, chain, from, to, limit, cursor |
Charts
| Endpoint |
What it does |
Scope |
Parameters |
GET /charts/{source} |
The series behind a research chart, by source |
read |
{source}, protocol, deployment, block, pool, period, from, to, category, events |
Datasets
| Endpoint |
What it does |
Scope |
Parameters |
GET /datasets |
The data catalogue |
read |
|
POST /datasets/{key}/requests |
Create and submit an export |
exports |
{key} |
GET /datasets/requests/{id} |
Poll an export |
exports |
{id} |
GET /datasets/requests/{id}/download |
Fetch a completed export |
exports |
{id}, format |
Citations
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/citations/{hash} |
One citation record as its page prints it (public, no key) |
none (public) |
{hash} |
POST /citations |
Cite a price series, a dataset query or a computed figure |
research:write |
|
GET /citations/{hash} |
Resolve a citation hash (public, no key) |
none (public) |
{hash} |
Research
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/review/{token} |
One unpublished page for the outside reviewer holding its link |
none (public) |
{token} |
GET /public/published_pages/{slug} |
A published research page (public, no key) |
none (public) |
{slug} |
GET /research/pages |
Research pages this key can reach, newest first |
read |
limit, cursor |
POST /research/pages |
Create a research page in a project |
research:write |
|
GET /research/pages/{id} |
One research page, its blocks and its cited values |
read |
{id} |
PATCH /research/pages/{id} |
Rename a page, move its status, or retag it |
research:write |
{id} |
DELETE /research/pages/{id} |
Move a page to the trash |
research:write |
{id} |
GET /research/pages/{id}/document |
The page body as one document |
read |
{id} |
PUT /research/pages/{id}/document |
Put a whole document back |
research:write |
{id} |
GET /research/pages/{id}/comments |
The review comments on a page, oldest first |
read |
{id}, limit, cursor |
POST /research/pages/{id}/comments |
Open a thread on a block, or reply in one |
research:write |
{id} |
POST /research/pages/{id}/export |
Download the page’s bundle |
exports |
{id}, format |
GET /research/projects |
Research projects this key can reach, newest first |
read |
limit, cursor |
POST /research/pages/{id}/blocks |
Append a block to a research page |
research:write |
{id} |
Explorer
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/resolve |
What a typed string names on chain (public, no key) |
none (public) |
q, as |
GET /public/explorer |
The explorer’s idle console (public, no key) |
none (public) |
chain |
GET /public/explorer/address/{address} |
An address’s activity, or the logs touching it (public, no key) |
none (public) |
{address}, chain, block_from, block_to, date_from, date_to, topic0, before, after, lens |
GET /public/explorer/events/{topic} |
Logs carrying an event signature (public, no key) |
none (public) |
{topic}, chain, block_from, block_to, date_from, date_to, before, after |
GET /public/blocks/{number} |
One block and its transactions (public, no key) |
none (public) |
{number}, chain, expect_hash, cursor, limit |
GET /public/transactions/{hash} |
One transaction, its receipt and decoded logs (public, no key) |
none (public) |
{hash}, chain |
Prices
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/prices |
The price finder (public, no key) |
none (public) |
base, quote, source, chain |
GET /public/prices/{address} |
One pool’s price chart (public, no key) |
none (public) |
{address}, period, range, from, to, invert, compare, chain |
Tracking
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/tracking |
The tracked protocols, live and planned (public, no key) |
none (public) |
|
GET /public/tracking/{slug} |
One protocol’s tracking page (public, no key) |
none (public) |
{slug}, chain, range, from, to |
GET /public/tracking/{slug}/liquidations |
A pool lender’s liquidation dataset (public, no key) |
none (public) |
{slug}, chain, symbol, from, to, range, cursor, limit |
GET /public/tracking/{slug}/accounts/{address} |
One account’s position on a pool lender (public, no key) |
none (public) |
{slug}, {address}, chain |
Timeline
| Endpoint |
What it does |
Scope |
Parameters |
GET /public/timeline |
The event timeline as JSON (public, no key) |
none (public) |
category, chain, from, to, verified, limit, cursor |
GET /public/timeline/{id} |
One timeline event with its provenance (public, no key) |
none (public) |
{id} |
Session
| Endpoint |
What it does |
Scope |
Parameters |
POST /auth/exchange |
Redeem an Accounts sign-in (the SPA’s BFF) |
none (public) |
X-DFRDS-Client |
POST /auth/refresh |
Rotate the Accounts refresh token (the SPA’s BFF) |
none (public) |
X-DFRDS-Client |
POST /auth/logout |
Sign out of Accounts here (the SPA’s BFF) |
none (public) |
X-DFRDS-Client |
The web app’s own endpoints (258 of them, under /api/v1/session) take the signed-in browser session, not a key, and are not part of the public API; openapi.yaml documents them for the app.
The research endpoints
The research rows above are the workspace over REST: the interface’s own
policies decide what a key may do, on behalf of the member who minted it. The
first call guide walks through the loop (create a page,
put its document, comment, cite, export) and the conflict rule on document
saves.