Base URL
Authentication
None. The API currently has no API keys, tokens or other authentication. Send plain HTTPS requests.Request conventions
- Methods. Almost every endpoint is a
GETthat takes its parameters in the query string. The fewPOSTendpoints (batch market details and Pulse) take a JSON body. SendContent-Type: application/jsonwith those. They return200on success, not201. - Chains. Single-chain endpoints take a
chainparameter as a numeric chain ID (8453) or inevm:<id>form (evm:8453). Chain names such asbaseare rejected. List parameters (chains) take a comma-separated list such as1,8453orevm:1,evm:8453. Data responses return chains as"evm:<id>"strings. The one exception is the/health/last-swapsstatus route, which returns numericchainIdvalues. See Chains and identifiers. - Addresses. Token and wallet addresses are
0xfollowed by 40 hex characters. Case doesn’t matter, and every address is lowercased before use and in responses. - Timestamps.
fromandtoare Unix epoch milliseconds. A value in seconds is accepted but is read as a date in 1970. See Data formats. - Booleans. Boolean query parameters (for example
fill) accept only the literal stringstrueandfalse. - Unknown parameters are ignored. Query keys that an endpoint doesn’t define are silently dropped, so a typo in an optional parameter name won’t cause an error. Check the parameter names carefully.
- Leave unused parameters out. Don’t send empty values such as
from=. An empty number is read as0and an empty enum fails validation.
Endpoint index
Tokens
Markets
Assets
Trades and wallets
Discovery
Pulse
These endpoints are documented in the Pulse tab.Status
Response envelope
Successful responses wrap the result in an envelope:data is an object or an array, depending on the endpoint. The /pulse/views endpoints are the only exception: they return their payload without the envelope.
Errors use one shape across the API:
statusCodematches the HTTP status.codeis a stable, machine-readable error code. Branch on it rather than onmessage.detailsappears on validation errors (HTTP 400), where it holds one{ field, message }entry per problem. The/health/last-swapsstatus route also includesdetails(the freshness report) when it answers503 SERVICE_UNAVAILABLE. Other errors have nodetails.
An unsupported but well-formed chain ID (for example
chain=137) passes validation on most endpoints. Depending on the endpoint, you get a 404 (nothing is indexed for it), empty results, or a 400. Use GET /protocols to see which chains are supported.