Skip to main content
Zerion API provides real-time, normalized access to onchain data through RESTful endpoints. All requests go to https://api.zerion.io and require authentication via HTTP Basic Auth. Responses follow the JSON:API specification.

Endpoint categories

All positions and transactions come with icons, labels, links, metadata, and relationships. Everything is ready to use immediately in interfaces without additional interpretation or enrichment.

Response structure

Every response follows a consistent JSON:API format:

Resource IDs

Every resource carries an id. Treat these as opaque strings: match them, store them, pass them back, but don’t parse them or derive meaning from their shape. Some are hashes, some are chain slugs, some are composite. The format of any of them may change without that being a breaking change.
Two consequences worth designing around:
  • Don’t reconstruct an ID client-side. To find a token by chain and contract address, call get fungible asset by implementation rather than assembling an ID yourself.
  • Don’t use an ID as a stable primary key across resources. Position IDs in particular are derived from wallet, chain, and protocol context, so the same token held in two places has two different position IDs.
The one ID you can rely on the shape of is a chain ID, because it is the value you pass into filter[chain_ids] and read from the chains endpoint.

Next steps