Rust Crates.io Package Metadata & Downloads
Retrieve Rust crate metadata from Crates.io including max version, total and recent downloads, repository URL, categories, and description.
curl -sG "https://api.agentapigate.ai/v1/registry/crates/crate" \ --data-urlencode "crate_name=serde" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Rust Crates.io Package Metadata & Downloads (`registry.crates.crate`) **name**: serde · **max_version**: 1.0.229 · **downloads**: 1800369746 · **recent_downloads**: 471139163 · **description**: A generic serialization/deserialization framework · **repository**: https://github.com/serde-rs/serde
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:registry.crates.crate · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| crate_name | string | required | serde | Rust crate name on crates.io (e.g. "serde", "tokio", "reqwest") |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0005 / call | $0/mo · Balance never expires |
| Remote MCP Tool | registry_crates_crate | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 67 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 9926t → 77t (-99%) | Partner credit: eligible |
More registry.crates Sibling Endpoints
Frequently Asked Questions
How do I call Rust Crates.io Package Metadata & Downloads (registry.crates.crate) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/registry/crates/crate with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool registry_crates_crate on https://mcp.agentapigate.ai/mcp.
What does registry.crates.crate cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0005 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on registry.crates.crate?
Passing ?format=md transforms the response into normalized Markdown (~77 tokens vs ~9926 raw tokens, saving 99% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["registry.crates.crate"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.