GET/v2/projects/{projectId}/stats

Get project statistics

Retrieves statistics for a project, including key, language, member, tag, and task counts, plus translation progress. Use branch to scope the statistics to a branch when needed; when omitted, the response is not explicitly scoped to a branch.

2 parameters
projectIdintegerrequired
The integer ID of the project whose statistics to retrieve.
branchstringoptional
The branch to use when calculating project statistics.

5 status codes
200Returns project totals for base words, keys, languages, members, tags, and tasks, along with overall reviewed and translated percentages and per-language translation and QA statistics.
baseWordsCountintegerrequired
keyCountintegerrequired
languageCountintegerrequired
languageStatsarray<object>required
membersCountintegerrequired
projectIdintegerrequired
reviewedPercentagenumberrequired
tagCountintegerrequired
taskCountintegerrequired
translatedPercentagenumberrequired
400Returned when the request is invalid.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request has no valid authentication.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user does not have permission to view project statistics.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the project is not found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when the request is invalid; a 401 when authentication is missing or invalid; a 403 when the authenticated user lacks permission; and a 404 when the project is not found. The projectId path parameter must identify an existing project.