---
title: "Get returns a global statistics info."
method: GET
path: "/rest-api/v1/insight/stats"
tags: ["insight"]
---

# Get returns a global statistics info.

`GET /rest-api/v1/insight/stats`

This endpoint returns a global statistics info.

## Response `200`

Global statistics info

- InsightStatistics
  - `clusterCount` integer
  - `resourceCount` integer
  - `resourceGroupRuleCount` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `405` — Method Not Allowed
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

> 32 revisions in range; 1 could not be searched.

- **2024-04-25** `4b273a351c0f` — 1 info
  - endpoint added
- **2023-12-11** `2a20fa0acab4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kusionstack/apis/karpor/changes/rest-api/v1/insight/stats/get.md)

---

[API](https://skmtc.dev/kusionstack/apis/karpor.md) · [All operations](https://skmtc.dev/kusionstack/apis/karpor/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kusionstack/karpor/revisions/d741ac56c269/schema)
