GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → getApiV4ProjectsIdPackagesNpm*packageName-*fileName

AI-generated

Summary

Fetch a specific NPM package file from a GitLab project's NPM packages registry by project ID, package name, and file name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to query.
  • package_name (required) — The name of the NPM package to retrieve.
  • file_name (required) — The specific file name within the NPM package to download or retrieve.
  • skipAuthentication — Optionally 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 and should typically be GET for retrieving package files.

Output shape

a single file or package content corresponding to the specified package file within the given project

The response returns the package file content if found. The operation expects path parameter 'id' and query parameters 'package_name' and 'file_name' all to be provided. Authentication via GitLab API credentials is used unless explicitly skipped.

Links

Discussion