✨ Get label distribution counts
Changed onRequest
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/api/projects/{id}/stats/label-distribution/counts
- AuthAPI key in header Authorization
Path parameters
Query parameters
Explicit choice keys to fetch, joined by "PIPE" (for example: "label___SEP___pos___PIPE___quality___SEP___4"). When provided, pagination params are ignored.
Optional JSON-encoded string containing a curated filter plan (not an exploded object). Pass one JSON string query value (for example json.dumps(Filters.create(...)) from label_studio_sdk.data_manager); do not pass a nested object or Fern will explode filters[...] keys. The plan uses normalized AND semantics (conjunction must be "and"), contains at most 20 items, does not permit nested child_filters, and treats an empty items list as unfiltered. Supported filter fields are filter:tasks:id, filter:tasks:inner_id, filter:tasks:data.*, filter:tasks:annotators, filter:tasks:ground_truth, filter:tasks:reviews_accepted, filter:tasks:reviews_rejected, filter:tasks:reviewed, filter:tasks:predictions_model_versions, filter:tasks:annotations_updated_at, and filter:tasks:predictions_updated_at. Each item requires filter, operator, type, and value. Annotator filters require one or more positive integer IDs. Model-version filters require 1-100 non-empty strings. Source updated-at filters require an inclusive, ordered, timezone-aware range object with string min and max timestamps.
Maximum number of choice keys to return for pagination. Ignored when choice_keys is provided. Also ignored for filtered requests (non-empty filters), which always return the full aggregation-complete choice set.
Zero-based offset into the structure choice_keys list. Used only when choice_keys is not provided. Ignored for filtered requests (non-empty filters).
Response
Label distribution counts
Changes
- warning
for the
queryrequest parameterlimit, the min was set to1.00 - warning
for the
queryrequest parameteroffset, the min was set to0.00 - info
for the
queryrequest parameterfilters, the type was generalized fromobjecttostring - info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- info
added the new optional
queryrequest parameterfilters
- info