POST
/
v2
/
metric-breakdown
Get metric breakdown aggregation for multiple projects, chains, or products
curl --request POST \
  --url https://api.tokenterminal.com/v2/metric-breakdown \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "metric_ids": [
    "<string>"
  ],
  "project_ids": [
    "<string>"
  ],
  "product_ids": [
    "<string>"
  ],
  "chain_ids": [
    "<string>"
  ],
  "market_sector_ids": [
    "blockchains-l1",
    "lending"
  ],
  "interval": "24h",
  "group_by": "projects",
  "start": "2023-12-25",
  "end": "2023-12-25"
}'
{
  "data": [
    {
      "data_id": "usual",
      "chain_id": "usual",
      "product_id": "usual",
      "metrics": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

OK

The response is of type object.