AgentAPIGate
Back to Catalog
GET /v1/registry/crates/dependenciesPack: intel·MCP Tool: registry_crates_dependencies

Crates.io Rust Crate Version Dependency Graph

Retrieve normal, dev, and build dependencies with SemVer ranges and feature flags from official crates.io.

API Key Price:$0.0015 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Rust crate name on crates.io (e.g. tokio, serde, reqwest)
Exact published crate version (e.g. 1.40.0)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/registry/crates/dependencies" \
  --data-urlencode "crate=tokio" \
  --data-urlencode "version=1.40.0" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-82% tokens
# Crates.io Rust Crate Version Dependency Graph (`registry.crates.dependencies`)
**crate**: tokio · **version**: 1.40.0 · **count**: 25 · **normal_count**: 11 · **dev_count**: 14 · **build_count**: 0

## dependencies
- [1] crate_id: async-stream, req: ^0.3, kind: dev, optional: false, default_features: true
- [2] crate_id: backtrace, req: ^0.3.58, kind: normal, optional: false, default_features: true
- [3] crate_id: futures, req: ^0.3.0, kind: dev, optional: false, default_features: true
- [4] crate_id: libc, req: ^0.2.149, kind: dev, optional: false, default_features: true
- [5] crate_id: loom, req: ^0.7, kind: dev, optional: false, default_features: true
- [6] crate_id: mio-aio, req: ^0.9.0, kind: dev, optional: false, default_features: true
- [7] crate_id: mockall, req: ^0.11.1, kind: dev, optional: false, default_features: true
- [8] crate_id: nix, req: ^0.29.0, kind: dev, optional: false, default_features: false
- [9] crate_id: pin-project-lite, req: ^0.2.11, kind: normal, optional: false, default_features: true
- [10] crate_id: rand, req: ^0.8.0, kind: dev, optional: false, default_features: true
- [11] crate_id: socket2, req: ^0.5.5, kind: dev, optional: false, default_features: true
- [12] crate_id: tempfile, req: ^3.1.0, kind: dev, optional: false, default_features: true
- [13] crate_id: tokio-stream, req: ^0.1, kind: dev, optional: false, default_features: true
- [14] crate_id: tokio-test, req: ^0.4.0, kind: dev, optional: false, default_features: true
- [15] crate_id: wasm-bindgen-test, req: ^0.3.0, kind: dev, optional: false, default_features: true

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: registry.crates.dependencies · Method: GET
ParameterTypeReqSample / DefaultDescription
cratestringrequiredtokioRust crate name on crates.io (e.g. tokio, serde, reqwest)
versionstringrequired1.40.0Exact published crate version (e.g. 1.40.0)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0015 / call$0/mo · Balance never expires
Remote MCP Toolregistry_crates_dependenciesOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency25 ms$0 billed on empty or 4xx/5xx
Token Economy2406t → 436t (-82%)Partner credit: eligible

More registry.crates Sibling Endpoints

Frequently Asked Questions

How do I call Crates.io Rust Crate Version Dependency Graph (registry.crates.dependencies) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/registry/crates/dependencies with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool registry_crates_dependencies on https://mcp.agentapigate.ai/mcp.

What does registry.crates.dependencies cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.0015 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.dependencies?

Passing ?format=md transforms the response into normalized Markdown (~436 tokens vs ~2406 raw tokens, saving 82% 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.dependencies"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.