Skip to main content
Returns per-team statistics for a reporting period, ranked by descending productivity score. Teams can share members, so team values do not sum to a workspace total. Disabled teams are omitted, and secret teams are omitted for API keys. Requires workspace Read and Productivity. Repository restrictions do not filter historical member activity. Current and previous team visibility are resolved separately. All visible enabled teams and their members are returned without pagination or truncation. If a response is too large to return, the request fails with 429 and no partial results or continuation token; retrying unchanged does not resolve it.

Authorization

string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Query parameters

string
Inclusive start (RFC 3339). Supply both from and to, or neither. When both are omitted, the latest completed interval of the current reporting period is used, or the previous period if none is available. When supplied, must be on or after 0001-01-15T00:00:00Z and fall on a UTC quarter-hour (minute 00, 15, 30, or 45, zero seconds).
string
Exclusive end (RFC 3339). Same quarter-hour rule as from. Must be after from, and the range can be at most 366 days. A member counts toward a team only if their membership covers all of [from, to).
string
default:"ALL"
ALL counts all tracked activity. SHIPPED counts landed activity. Neither measures deployments.

Response

object[]
Teams sorted by descending productivityScore.value, then engineeringOutputMinutes. There is no pagination or row limit.
string
Start of the effective period (RFC 3339).
string
End of the effective period (RFC 3339).
string
Start of the comparison period, 7 or 14 days before from depending on the workspace schedule.
string
End of the comparison period. Equal to from.
string
Workspace IANA timezone used for working minutes.
Previous-period counts and minutes are not scaled to the current period’s length. Fields with zero or empty values are omitted from the JSON.

Team

string
GitHub team ID.
string
GitHub team slug.
string
Current team name.
string
Team description, when set.
string
GitHub team visibility, closed or secret.
boolean
Whether the team is enabled in Macroscope.
string
GitHub GraphQL node ID.
object[]
Members for the whole period, each with id, login, displayName, avatarUrl, and nodeId, as in List team memberships. A blank display name may use login as a fallback. There is no member pagination.