GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdLanguages

AI-generated

Summary

Retrieve the programming languages used in a specific GitLab project by its ID or URL-encoded path.

Inputs

  • Id (required) — The ID or URL-encoded path of the project whose languages you want to retrieve.
  • Skip Authentication — Whether to skip authentication for this request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • Method — HTTP method to use; defaults to GET but typically GET is used for this operation.

Output shape

a single JSON object containing programming languages used in the specified project with their percentage usage as provided by the GitLab API

Requires the 'id' path parameter to identify the project. Authentication is used by default unless explicitly skipped. The response conforms to GitLab's /api/v4/projects/{id}/languages endpoint output.

Examples

Example 1: Retrieve language statistics for a project with ID '12345'

Set 'Id' path parameter to '12345', keep authentication enabled, and execute GET request to /api/v4/projects/12345/languages

Links

Discussion