---
title: "Get the sparse index for a Cargo crate (1-character name)"
method: GET
path: "/api/v4/projects/{id}/packages/cargo/1/{package_name}"
tags: ["packages_cargo"]
---

# Get the sparse index for a Cargo crate (1-character name)

`GET /api/v4/projects/{id}/packages/cargo/1/{package_name}`

## Request

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

Returns newline-delimited JSON, one line per published version, most recently published first. Limited to the 500 most recently published versions.

## Path parameters

- `id` string, required
- `package_name` string, required

## Response `200`

Get the sparse index for a Cargo crate (1-character name)

## 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)
