---
title: "Download the spec index file"
method: GET
path: "/api/v4/projects/{id}/packages/rubygems/{file_name}"
tags: ["packages_rubygem"]
---

# Download the spec index file

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

## Request

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

Downloads a RubyGems spec index file (specs.4.8.gz, latest_specs.4.8.gz, or prerelease_specs.4.8.gz) for a project.

## Path parameters

- `id` integer, required

## Request body `application/octet-stream`

- string, binary

## Response `200`

Download the spec index file

## Other responses

- `400`: Bad Request
- `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)
