Metrics

Get metric aggregations for multiple projects

Use this endpoint to retrieve metric aggregations for multiple projects.

You can get all aggregations for all projects by omitting project_ids and metric_ids parameters. Fetching all projects or metrics you can omit the parameter or using parameter value all.

This endpoint supports partial success - if some of the requested project or metric IDs are not found, the endpoint will return data for the valid entities and include an errors array with details about the invalid ones.

get/v2/metric-aggregations

Query parameters

project_idsstring[] required

Allows you to select one or more of the projects available for a specific metric. When including multiple projects, separate each one with a comma. Example: aave,uniswap.

You can fetch all available projects by omitting this parameter or using value all.

metric_idsstring[]

Allows you to fetch all aggregations for the given comma separated list of metrics available. The full list is available on the metrics endpoint (see above).

You can fetch all available metrics by omitting this parameter or using value all.

Response

OK

Example response

{
  "errors": [
    {
      "code": "NOT_FOUND",
      "field": "project_ids",
      "value": "invalid-project"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.