---
title: "Get summary metrics and trends for a project across it's workflows and branches"
method: GET
path: "/insights/pages/{project-slug}/summary"
tags: ["Insights"]
---

# Get summary metrics and trends for a project across it's workflows and branches

`GET /insights/pages/{project-slug}/summary`

Get summary metrics and trends for a project at workflow and branch level.
             Workflow runs going back at most 90 days are included in the aggregation window.
             Trends are only supported upto last 30 days.
             Please note that Insights is not a financial reporting tool and should not be used for precise credit reporting.  Credit reporting from Insights does not use the same source of truth as the billing information that is found in the Plan Overview page in the CircleCI UI, nor does the underlying data have the same data accuracy guarantees as the billing information in the CircleCI UI.  This may lead to discrepancies between credits reported from Insights and the billing information in the Plan Overview page of the CircleCI UI.  For precise credit reporting, always use the Plan Overview page in the CircleCI UI.

## Path parameters

- `project-slug` string, required

## Query parameters

- `reporting-window` 'last-7-days' | 'last-90-days' | 'last-24-hours' | 'last-30-days' | 'last-60-days'
- `branches` object
- `workflow-names` object

## Response `200`

Aggregated summary metrics and trends by workflow and branches

- object
  - `org_id` unknown
  - `project_id` unknown
  - `project_data` object — Metrics and trends data aggregated for a given project.
    - `metrics` object, required — Metrics aggregated across all workflows and branches for a project.
      - `total_runs` integer, required — The total number of runs, including runs that are still on-hold or running.
      - `total_duration_secs` integer, required — Total duration, in seconds.
      - `total_credits_used` integer, required — The total credits consumed over the current timeseries interval.
      - `success_rate` number, float, required
      - `throughput` number, float, required — The average number of runs per day.
    - `trends` object, required — Metric trends aggregated across all workflows and branches for a project.
      - `total_runs` number, float, required — The trend value for total number of runs.
      - `total_duration_secs` number, float, required — Trend value for total duration.
      - `total_credits_used` number, float, required — The trend value for total credits consumed.
      - `success_rate` number, float, required — The trend value for the success rate.
      - `throughput` number, float, required — Trend value for the average number of runs per day.
  - `project_workflow_data` object[] — A list of metrics and trends data for workflows for a given project.
    - `workflow_name` string, required — The name of the workflow.
    - `metrics` object, required — Metrics aggregated across a workflow or branchfor a project.
      - `total_credits_used` integer, required — The total credits consumed over the current timeseries interval.
      - `p95_duration_secs` number, float, required — The 95th percentile duration among a group of workflow runs.
      - `total_runs` integer, required — The total number of runs, including runs that are still on-hold or running.
      - `success_rate` number, float, required
    - `trends` object, required — Trends aggregated across a workflow or branch for a project.
      - `total_credits_used` number, float, required — The trend value for total credits consumed.
      - `p95_duration_secs` number, float, required — The 95th percentile duration among a group of workflow runs.
      - `total_runs` number, float, required — The trend value for total number of runs.
      - `success_rate` number, float, required — The trend value for the success rate.
  - `project_workflow_branch_data` object[] — A list of metrics and trends data for branches for a given project.
    - `workflow_name` string, required — The name of the workflow.
    - `branch` string, required — The VCS branch of a workflow's trigger.
    - `metrics` object, required — Metrics aggregated across a workflow or branchfor a project.
      - `total_credits_used` integer, required — The total credits consumed over the current timeseries interval.
      - `p95_duration_secs` number, float, required — The 95th percentile duration among a group of workflow runs.
      - `total_runs` integer, required — The total number of runs, including runs that are still on-hold or running.
      - `success_rate` number, float, required
    - `trends` object, required — Trends aggregated across a workflow or branch for a project.
      - `total_credits_used` number, float, required — The trend value for total credits consumed.
      - `p95_duration_secs` number, float, required — The 95th percentile duration among a group of workflow runs.
      - `total_runs` number, float, required — The trend value for total number of runs.
      - `success_rate` number, float, required — The trend value for the success rate.
  - `all_branches` string[] — A list of all the branches for a given project.
  - `all_workflows` string[] — A list of all the workflows for a given project.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/circleci/apis/api-v2.md) · [All operations](https://skmtc.net/circleci/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/circleci/api-v2/revisions/b9c0e0c24058/schema)
