GitLab API icon

GitLab API

Gitlab

Actions1062

Package_files → getApiV4ProjectsIdPackagesPackageIdPackageFiles

AI-generated

Summary

Retrieves the list of files for a specific package in a GitLab project.

Inputs

  • id (required) — ID or URL-encoded path of the project (path parameter).
  • package_id (required) — ID of the package (path parameter).
  • page — Current page number for pagination (query parameter).
  • per_page — Number of items per page (query parameter).

Output shape

array

Each element is a GitLab package file object containing fields such as id, package_id, file_name, file_md5, size, etc.

Examples

Example 1: Fetch first page of package files

Set id to the project ID or path, package_id to the package ID, leave page and per_page at defaults.

Links

Discussion