GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdRepositoryContributors

AI-generated

Summary

Retrieve the list of contributors for a specific GitLab project repository, optionally paginating, filtering by branch/tag, and sorting the results.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project for which to get repository contributors.
  • page — The page number of results to retrieve, for pagination.
  • per_page — Number of contributor items to return per page.
  • ref — The name of a repository branch or tag to filter contributors; uses default branch if not specified.
  • order_by — Field to order contributors by: name, email, or commits (default is commits).
  • sort — Order direction: ascending ('asc') or descending ('desc'); defaults to ascending.

Output shape

a list of contributor objects

Supports pagination via 'page' and 'per_page' query parameters. Returns contributors related to the specified project repository and optional ref branch or tag. The data is returned as an array of contributor records with relevant metadata.

Examples

Example 1: Get contributors for project ID 123 with default pagination and sorting by commits ascending.

Set 'id' to '123'. Leave other parameters as default.

Links

Discussion