/v4/* endpoint supports two ways to filter, sort, and paginate results: simple flattened query parameters for common cases, and a JSON-based query parameter for more complex filtering, sorting, and aggregation.
Every endpoint has a corresponding /meta endpoint that returns the available fields, allowed operators, and valid values.
Basic Example: Flattened Query Parameters
For common cases, pass filtering, sorting, and pagination directly as URL parameters:/v4/* endpoint:
search- Free-text search across common fields (e.g., name, ticker)<field>- Filter directly by any field name (e.g.,ticker=USDC)page- Page number (starts at 1)per_page- Number of results per pagesort- Field to sort bysort_direction-ascordesc
Advanced Example: JSON Query Object
For more complex filtering — compositeand/or conditions, aggregation, or anything the flattened parameters can’t express — pass a JSON-based query language as a URL parameter named query. The query object can include:
filter- Filter conditionssort- Sort configurationpagination- Pagination settingsaggregate- Aggregation configuration (for aggregate endpoints)
URL Encoding
The query object must be JSON-stringified and URL-encoded:In the API, platforms are referenced as
protocol in field names (e.g., protocol_slug, protocol_id) for historical reasons. The terms are interchangeable — “platform” and “protocol” refer to the same entity.Filtering
Filters allow you to narrow down results based on field values.Basic Filter
Composite Filter (AND)
Composite Filter (OR)
Supported Operators
Comparison Operators:equals- Exact matchnotEquals- Not equal togt- Greater than (numbers)gte- Greater than or equal (numbers)lt- Less than (numbers)lte- Less than or equal (numbers)
like- Case-sensitive pattern match (use%as wildcard)ilike- Case-insensitive pattern match (use%as wildcard)notLike- Case-sensitive negative matchstartsWith- Starts with valueendsWith- Ends with value
in- Value is in array (for array fields)not-in- Value is not in arrayincludes- Array includes value (for array fields)not-includes- Array does not include value
before- Before dateonOrBefore- On or before dateafter- After dateonOrAfter- On or after datein- On any date in a list ofYYYY-MM-DDdates (e.g.,["2026-09-30", "2026-10-31"]), to get values on several dates in one request. Not supported on/v4/transactions,/v4/tokens/aggregates/fund_flows, or/v4/tokens/aggregates/net_flows
is_null- Field value is nullis_not_null- Field value is not null
and- All filters must matchor- Any filter must match
2331 or "2331"). An in filter with an empty array matches no rows. A filter value that doesn’t fit the field’s type returns a 400 error that names the expected type, and so does an ID above 9007199254740991 used with equals, notEquals, in, not-in, includes, or not-includes.
Filter Examples
Filter by platform:Sorting
Sort results by any field in ascending or descending order. Sort Structure:asc- Ascending orderdesc- Descending order""- No sorting (use default)
Pagination
Control the number of results returned and navigate through pages. Pagination Structure:page- Page number (starts at 1)perPage- Number of results per page./v4/tokensand/v4/assetsreturn at most 1,000 results per page; a largerperPageon those endpoints returns a400error, unless your plan already limits results per page to fewer rows. To get more rows, request the nextpageuntil you reachpagination.pageCount.
Aggregation
For aggregate and timeseries endpoints, you can specify aggregation parameters. Aggregate Structure:groupBy- Field to group by (e.g.,network,asset_class).dateis not acceptedaggregateFunction- Function to apply:sum,avg,min,maxinterval- Time interval (for timeseries):day,week,month,quarter,year. See period labels, date filters, and partial periods.mode- Aggregation mode:stock- Point-in-time snapshot (latest value per period)flow- Aggregate over period (sum/avg/etc. of all values)