Aggregate and count accounts with a powerful filter built on top of Elasticsearch
Overview
This method allows you to aggregate and count accounts with a robust filter object. There are many types of filters you can apply and you can find information regarding those in the Filters section of the docs. The endpoint example here shows off one of the many filters.
Filters
As mentioned above, the api definition here illustrates one of Carpool's many filter types. All queries that accept a filter object in the POST body can make use of any of the potential filters. Please see the Account Filters section of the documentation to better understand how they are implemented for account related queries.
Example - Basic
Program - Candy Machine
Description - Count all CandyMachine accounts where the value at data.creators.percentageShare is equal to 100
Description - Count all CandyMachine accounts where the value at data.creators.percentageShare is equal to 100. Only include accounts within the specified time range for the final count.