Get historical metrics for a specific product of a project
Use this endpoint to retrieve historical metrics data for a specific product within a project.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
List of metrics to include according to product metric availability.
Allows you to select one or more of the metrics available for a specific product. When including multiple metrics, separate each one with a comma. Example: fees,revenue
.
If no metric_id is selected, the query defaults to returning all available metrics for the product.
List of chains to include
Allow selection of one or more chains to include in the data, particularly for metrics where chain-level granularity is available. When selecting multiple chains, separate each with a comma. Example: ethereum,arbitrum
.
If no chain_id is provided, available chains for the product and metric will be used in the response.
Start date for data
Set the beginning date for the data to be returned. Format: YYYY-MM-DD.
If no start date is provided, all historical data will be included from the earliest available date.
End date for data
Set the ending date for the data to be returned. Format: YYYY-MM-DD.
If no end date is provided, data up to the current date will be included.
Level of granularity
This feature enables more detailed queries of specific metrics. For instance, you can examine a product's revenue by individual chain.
The availability of granularity options varies between products. Attempting to apply an inappropriate level of granularity to a product will result in an empty result set.
Order direction for the results
Sort the results in ascending or descending order based on date.
asc
, desc
Response
OK
The response is of type object
.