1
Get an API key
Create a key at app.blockworks.com/account/api.Keys are shown once at creation. Store yours in a secret manager or environment
variable, and never commit it or send it from a browser.
2
Make your first request
Every request authenticates with the
X-Blockworks-API-Key header. Here we page
through the assets tabular model, which is the lookup surface for every
asset we cover (the model is public, so this request also works without a key).3
Read the response envelope
Every Blockworks API response uses the same envelope: Because
error is null on success
and a string on failure, and data carries the payload. Tabular models add a
metadata object with pagination totals for the full filtered result set.Response (trimmed to one row and four of its fields)
error is always present, a single client-side check covers every
endpoint, so you never need per-product error handling.Request a different page with
page, and change the page size with pageSize.
Tabular endpoints also serve application/x-ndjson and text/csv via the
Accept header when you are pulling larger result sets.4
Go deeper
Filtering & pagination
Filter operator suffixes, sorting, column selection, paging, and response formats.
Tabular vs timeseries
The two model kinds, their URL shapes, and when to reach for each.