GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdJobsJobIdArtifacts

AI-generated

Summary

Download job artifacts for a specific job within a project by providing the project ID or path and the job ID.

Inputs

  • id (required) — The ID or URL-encoded path of the project to identify the target project.
  • job_id (required) — The ID of the job whose artifacts you want to download.
  • job_token — Optional token used with triggers for multi-project pipelines (Premium and Ultimate tiers only) to authorize artifact fetching.

Output shape

a binary file representing the job artifact content

Returns raw artifact data as a binary response. The operation performs a GET request to the /api/v4/projects/{id}/jobs/{job_id}/artifacts endpoint and yields the artifact file for the specified job.

Links

Discussion