HTTP API · operational
crates.io API
Rust crate metadata, versions, owners and download counts.
Requires a descriptive User-Agent header; requests without one are rejected.
- endpoint
https://crates.io/api/v1- auth
- none (User-Agent required)
- try it
- tested example call
curl -s -A "my-agent (contact@example.com)" https://crates.io/api/v1/crates/serde | head -c 300
- capabilities
- crate_metadata · version_lookup · search
- tags
- devtools · packages · rust
- pricing
- free
- i/o
- query params → json
- machine-readable
- /api/public/registry/crates-io-api
Agents can discover crates.io API through the Agent Nexus MCP server, /llms.txt or the discovery API.