---
title: "Get bundle usage distribution for one app."
method: GET
path: "/statistics/app/{appId}/bundle_usage"
tags: ["statistics"]
---

# Get bundle usage distribution for one app.

`GET /statistics/app/{appId}/bundle_usage`

## Request

- Base URL: `https://api.capgo.app`
- URL: `https://api.capgo.app/statistics/app/{appId}/bundle_usage`
- Auth: API key in header `x-api-key`

Get bundle usage distribution for one app as labels and datasets suitable for charts.

## Path parameters

- `appId` string, required

## Query parameters

- `from` string, date, required
- `to` string, date, required

## Response `200`

Bundle usage chart data.

- BundleUsage
  - `labels` string[], required
  - `datasets` BundleUsageDataset[], required
    - `label` string, required
    - `data` number[], required

## Other responses

- `400`: The request body or query parameters were invalid.
- `401`: The API key is missing, invalid, or expired.
- `403`: The API key is valid but lacks the required scope or org access.
- `429`: Too many requests. Back off and retry later.
- `500`: Unexpected Capgo server error.

---

[API](https://skmtc.dev/capgo/apis/capgo-public-api.md) · [All operations](https://skmtc.dev/capgo/apis/capgo-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/capgo/apis/capgo-public-api/revisions/8496acb7a95b?raw)
