GET
/
v2
/
metric-aggregations
Get metric aggregations for multiple projects
curl --request GET \
  --url https://api.tokenterminal.com/v2/metric-aggregations \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "project_name": "<string>",
      "project_id": "<string>",
      "metric_id": "<string>",
      "metric_aggregation_name": "<string>",
      "value": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project_ids
string[]
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_ids
string[]

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

200 - application/json

OK

The response is of type object.