GitLab API

GitlabTool

Actions1095

Npm_packages → getApiV4ProjectsIdPackagesNpmPackage*packageNameDistTags

AI-generated

Summary

Retrieve the distribution tags of a specific npm package within a GitLab project by providing the project ID or URL-encoded path and the package name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the npm package.
  • package_name (required) — The name of the npm package to fetch distribution tags for.
  • skipAuthentication — Optionally skip authentication for this request (default is false).
  • baseUrl — Optional base URL of the GitLab instance; defaults to 'https://gitlab.com' if not set.

Output shape

an object representing the distribution tags of the specified npm package as returned by the GitLab API

Returns the npm package's dist-tags dictionary from the GitLab project's package registry via a GET request to the endpoint '/api/v4/projects/{id}/packages/npm/-/package/*package_name/dist-tags'. Requires authentication by default unless explicitly skipped. No pagination applies.

Links

Discussion