GitLab API

GitlabTool

Actions1095

Project_packages → getApiV4ProjectsIdPackages

AI-generated

Summary

Lists packages for a GitLab project by sending a request to GET /api/v4/projects/{id}/packages. Use the project ID or URL-encoded path to identify the project, and optionally filter, sort, and paginate the results.

Inputs

  • Skip Authentication — Skips authentication when enabled; otherwise the node uses the GitLab API credential.
  • Base URL — Base URL shown with a default of https://gitlab.com; the source says the effective base URL is defined in the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET. The operation path is the project packages endpoint.
  • Id (required) — Project ID or URL-encoded project path.
  • Page — Page number for pagination; API schema default is 1.
  • Per_page — Number of packages per page; API schema default is 20.
  • Order_by — Sort field: created_at, name, version, or type; API schema default is created_at.
  • Sort — Sort direction, asc or desc; API schema default is asc.
  • Package_type — Filter by package type, such as npm, maven, pypi, or generic.
  • Package_name — Filter by package name.
  • Package_version — Filter by package version.
  • Include_versionless — Include packages without a version.
  • Status — Filter by status: default, hidden, processing, error, pending_destruction, or deprecated.

Output shape

A list of project package records returned by the GitLab API.

Results are paginated; use Page and Per_page to select a page. The source delegates request execution to the OpenAPI tool base class, so the precise response envelope is not shown.

Examples

Example 1: Fetching the first page of npm packages for a project

Set Id to the project ID, Package_type to npm, and leave Page and Per_page blank to use the API defaults.

Example 2: Listing hidden packages in a project sorted by name

Set Id to the project ID, Status to hidden, Order_by to name, and Sort to asc.

Links

Discussion