---
title: "Get package stats"
method: GET
path: "/api/fleet/epm/packages/{pkgName}/stats"
tags: ["Elastic Package Manager (EPM)"]
---

# Get package stats

`GET /api/fleet/epm/packages/{pkgName}/stats`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/epm/packages/{pkgName}/stats</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get usage statistics for a specific package, such as the number of agent policies using it.<br/><br/>[Required authorization] Route required privileges: integrations-read OR fleet-setup OR fleet-all.

## Path parameters

- `pkgName` string, required

## Response `200`

Successful response

- KibanaHTTPAPIsGetStatsResponse
  - `response` object, required
    - `agent_policy_count` number, required
    - `package_policy_count` number, required

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
