Stats

✨ Get label distribution structure

Changed on
<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 dimensions and flattened `choice_keys` for a project. Use this response to drive paginated or targeted calls to the label distribution counts endpoint.
get/api/projects/{id}/stats/label-distribution/structure

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/api/projects/{id}/stats/label-distribution/structure
  • Auth
    API key in header Authorization

Path parameters

idinteger required

Response

Label distribution structure

choice_keysstring[] required

All project choice keys in stable order, joined with "PIPE" when passed as query param.

has_predictionsboolean

True when the project has at least one Prediction row.

prediction_filters_supportedboolean

True when the UI may offer prediction-scoped filters (prediction identity ready and the project has predictions).

prediction_identity_readyboolean

True when dimension value-counts cache is at prediction-identity version 2. Prediction-scoped Label Distribution filters require this.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status