---
title: "Get metric aggregations for a project"
method: GET
path: "/v2/projects/{project_id}/metric-aggregations"
tags: ["Projects"]
---

# Get metric aggregations for a project

`GET /v2/projects/{project_id}/metric-aggregations`

## Request

- Base URL: `https://api.tokenterminal.com`
- URL: `https://api.tokenterminal.com/v2/projects/{project_id}/metric-aggregations`
- Auth: HTTP bearer

Use this endpoint to retrieve metric aggregation data for one project.

## Path parameters

- `project_id` string, required

## Response `200`

OK

- object
  - `data` object[]
    - `project_name` string: Returns the project name used on the web application.
    - `project_id` string: Returns the project ID used on the web application.
    - `metric_id` string: Returns the chosen metric for the project(s).
    - `metric_aggregation_name` string: Returns the chosen metric metric aggregation for the project(s).
    - `value` string: Returns the value of the chosen metric aggregation.

---

[API](https://skmtc.dev/tokenterminal/apis/token-terminal-api.md) - [All operations](https://skmtc.dev/tokenterminal/apis/token-terminal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tokenterminal/apis/token-terminal-api/revisions/35b0e064e128?raw)
