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
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
Other Resources
JSONLD
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/json-ld/crates-io-context.jsonld
SpectralRules
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/rules/crates-io-rules.yml
Examples
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/examples/crates-io-search-example.json
Examples
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/examples/crates-io-get-crate-example.json
APIsJSON
https://raw.githubusercontent.com/api-evangelist/crates-io/refs/heads/main/apis.yml