crates.io Web API
The crates.io Web API exposes the endpoints used by Cargo and the crates.io website to search the registry, fetch crate and version metadata, publish new versions, yank and unyank versions, and manage crate ownership. Hosted at https://crates.io/api/v1, it is the canonical implementation of the Cargo Registry Web API specification documented in the Cargo book.
Documentation
Specifications
Examples
Example
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/examples/crates-io-search-example.json
Example
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/examples/crates-io-get-crate-example.json
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/json-schema/crates-io-crate-schema.json
JSONStructure
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/json-structure/crates-io-crate-structure.json