✨ Get KPI data with optional segmentation

<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> Retrieve data for a specific KPI with support for filtering and segmentation. Can segment by time (hourly, daily, weekly, monthly, yearly), by user, or both (2D matrix). If no segmentation is specified, returns a single total value. Supports filtering by projects, members, and date range. Date filters are interpreted in the specified timezone (required parameter). Maximum 50 projects allowed per request for performance reasons.

Authentication

AuthorizationToken
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Path parameters

kpi_keystringRequired

KPI identifier (key)

Query parameters

allbooleanOptional

When true with segment_by_user, return only members with performance data (capped). Used by Member Performance Select All discovery.

enddatetimeOptional

End date for filtering (ISO format)

membersstringOptional

Comma-separated user IDs. If empty, includes all organization members.

projectsstringOptional

Comma-separated project IDs. If empty, includes all organization projects. Maximum 50 projects allowed per request. Requests exceeding this limit will be rejected with a 400 error.

segment_by_projectbooleanOptional
Whether to segment results by project
segment_by_timeenumOptional
Time granularity for segmentation
Allowed values:
segment_by_userbooleanOptional
Whether to segment results by user
startdatetimeOptional

Start date for filtering (ISO format)

tzstringRequired

Timezone for date filtering (IANA timezone name, e.g., “America/New_York”, “UTC”). The start and end dates will be interpreted in this timezone.

Response

KPI data with requested segmentation
kpi_keystring
KPI identifier
kpi_labelstring or null

Human-readable KPI label

segmentationenum

Type of segmentation applied

  • none - none
  • time - time
  • user - user
  • project - project
  • matrix - matrix
  • project_matrix - project_matrix
unitstring

Unit of measurement: seconds, minutes, hours, count, or ratio

by_projectobject or nullOptional

Project-segmented data (compact format with parallel arrays)

by_userobject or nullOptional

User-segmented data (compact format with parallel arrays)

matrixobject or nullOptional

2D matrix (time × user) in compact format

project_matrixobject or nullOptional

2D matrix (time × project) in compact format

time_seriesobject or nullOptional

Time-segmented data (compact format with parallel arrays)

totalobject or nullOptional

Total value (no segmentation)

Errors

400
Bad Request Error
404
Not Found Error