Skip to content

Download a Cargo crate

GET
/api/v4/projects/{id}/packages/cargo/{package_name}/{package_version}/download

This endpoint serves the .crate file for a given package name and version

id
required
One of:
string

The ID or URL-encoded path of the project

package_name
required
string

The cargo package name

package_version
required
string

The cargo package version

OK

Bad Request

Unauthorized

Forbidden

Not Found