v76

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-015764591.5 MB
Stats

✨ Get label distribution counts

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Returns counts and percentages for requested label choices, from both annotations and predictions. Supports either pagination (`limit`, `offset`) or targeted fetches via explicit `choice_keys`.
get/api/projects/{id}/stats/label-distribution/counts

Path parameters

idinteger required

Query parameters

choice_keysstring

Explicit choice keys to fetch, joined by "PIPE" (for example: "label___SEP___pos___PIPE___quality___SEP___4"). When provided, pagination params are ignored.

limitinteger

Maximum number of choice keys to return for pagination. Ignored when choice_keys is provided.

offsetinteger

Zero-based offset into the structure choice_keys list. Used only when choice_keys is not provided.

Response

Label distribution counts

next_offsetinteger nullable required

Next offset for pagination when using limit/offset mode; null when there are no more results or when filtering by explicit choice_keys.