versions

Download a crate version.

This returns a URL to the location where the crate is stored.

get/api/v1/crates/{name}/{version}/download

Request

  • Base URL: https://crates.io
  • URL: https://crates.io/api/v1/crates/{name}/{version}/download
  • Auth: none declared

Path parameters

namestring required

Name of the crate

versionstring required

Version number

Response

Successful Response (for content-type: application/json)

urlstring required

The URL to the crate file.

Example response

{
  "url": "https://static.crates.io/crates/serde/serde-1.0.0.crate"
}

Changes

No recorded changes to this operation across all 1 revision of this API.