Skip to content

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

GET
/api/v4/projects/{id}/packages/cargo/2/{package_name}

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

id
required
One of:
string

The ID or URL-encoded path of the project

package_name
required
string

The cargo package name

OK

Bad Request

Unauthorized

Forbidden

Not Found