---
title: "Get summary metrics with trends for the entire org, and for each project."
method: GET
path: "/insights/{org-slug}/summary"
tags: ["Insights"]
---

# Get summary metrics with trends for the entire org, and for each project.

`GET /insights/{org-slug}/summary`

Gets aggregated summary metrics with trends for the entire org.
              Also gets aggregated metrics and trends for each project belonging to the org.

## Path parameters

- `org-slug` string, required

## Query parameters

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

## Response `200`

summary metrics with trends for an entire org and it's projects.

- object — Summary metrics with trends for the entire org, and for each project.
  - `org_data` object, required — Aggregated metrics for an org, with trends.
    - `metrics` object, required — Metrics for a single org metrics.
      - `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 — Trends for a single org.
      - `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.
  - `org_project_data` object[], required — Metrics for a single project, across all branches
    - `project_name` string, required — The name of the project.
    - `metrics` object, required — Metrics for a single project, across all branches.
      - `total_credits_used` integer, required — The total credits consumed over the current timeseries interval.
      - `total_duration_secs` integer, required — Total duration, in seconds.
      - `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 for a single project, across all branches.
      - `total_credits_used` number, float, required — The trend value for total credits consumed.
      - `total_duration_secs` number, float, required — Trend value for total duration.
      - `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_projects` string[], required — A list of all the project names in the organization.

## 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)
