Skip to main content
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>"
    }
  ],
  "errors": [
    {
      "code": "NOT_FOUND",
      "field": "project_ids",
      "value": "invalid-project"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://tokenterminal.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

data
object[]
errors
object[]

Optional array of errors that occurred during request processing. Only present if some requested entities were not found.

The endpoint returns data for valid entities even when errors are present, allowing partial success.