---
title: "Download a gem file"
method: GET
path: "/api/v4/projects/{id}/packages/rubygems/gems/{file_name}"
tags: ["packages_rubygem"]
---

# Download a gem file

`GET /api/v4/projects/{id}/packages/rubygems/gems/{file_name}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/packages/rubygems/gems/{file_name}`
- Auth: none declared

Downloads a specified gem file for a project.

## Path parameters

- `id` integer, required

## Request body `application/octet-stream`

- string, binary

## Response `200`

Download a gem file

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
