GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsId

AI-generated

Summary

Retrieve detailed information about a specific GitLab project by its ID or URL-encoded path, optionally including project statistics, custom attributes, and license data.

Inputs

  • id (required) — The ID or URL-encoded path of the project to retrieve.
  • statistics — Boolean flag to include project statistics in the response.
  • with_custom_attributes — Boolean flag to include custom attributes of the project in the response.
  • license — Boolean flag to include license data of the project in the response.

Output shape

a single JSON object representing the GitLab project details, potentially augmented with statistics, custom attributes, and license information if requested via query parameters.

Uses HTTP GET method to the API path /api/v4/projects/{id}. Query parameters statistics, with_custom_attributes, and license are optional and default to false if omitted. Authentication is required unless 'Skip Authentication' is enabled.

Examples

Example 1: Fetch project by ID with statistics

Set 'id' path parameter to the project ID and 'statistics' query parameter to true, leave others false or unset.

Links

Discussion