GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdStatistics

AI-generated

Summary

Retrieve statistics for a specific GitLab project by its ID or URL-encoded path.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project whose statistics you want to retrieve.

Output shape

A JSON object containing statistics of the specified GitLab project.

Requires authentication unless 'Skip Authentication' is enabled. Uses GET method on path /api/v4/projects/{id}/statistics. The 'id' path parameter is mandatory.

Examples

Example 1: Get project statistics for a project with ID '12345'.

Set 'Id' path parameter to '12345', ensure authentication is provided (unless skipped), and execute to receive project statistics data in JSON.

Links

Discussion