Skip to content

Get the sparse index for a Cargo crate (4+ character name)

GET
/api/v4/projects/{id}/packages/cargo/{prefix_1}/{prefix_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

prefix_1
required
string

First two characters of the cargo package name

prefix_2
required
string

Next two characters of the cargo package name

package_name
required
string

The cargo package name

OK

Bad Request

Unauthorized

Forbidden

Not Found