Rust Crates.io Packages Search
Search Rust crates on official crates.io with stable versions, all-time & 90-day downloads, repository links, and docs.rs URLs.
curl -sG "https://api.agentapigate.ai/v1/registry/crates/search" \ --data-urlencode "query=tokio" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Rust Crates.io Packages Search (`registry.crates.search`) **query**: tokio · **total**: 29579 · **count**: 10 ## crates - [1] name: tokio, max_version: 1.54.1, max_stable_version: 1.54.1, description: An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications., downloads: 1263865935 - [2] name: asupersync, max_version: 0.7.0, max_stable_version: 0.7.0, description: Spec-first, cancel-correct, capability-secure async runtime for Rust., downloads: 422828 - [3] name: dial9, max_version: 0.5.9, max_stable_version: 0.5.9, description: Low-overhead async runtime telemetry: event recording, Tokio integration, CPU/memory profiling, and a trace viewer CLI, downloads: 2136376 - [4] name: sockudo-ws, max_version: 3.1.1, max_stable_version: 3.1.1, description: Ultra-low latency WebSocket library for HFT applications, downloads: 194481 - [5] name: console-subscriber, max_version: 0.5.0, max_stable_version: 0.5.0, description: A `tracing-subscriber::Layer` for collecting Tokio console telemetry., downloads: 57281537 - [6] name: tokio-metrics, max_version: 0.5.2, max_stable_version: 0.5.2, description: Runtime and task level metrics for Tokio applications., downloads: 57649370 - [7] name: magnetar-runtime-tokio, max_version: 2.1.0, max_stable_version: 2.1.0, description: Tokio runtime engine for magnetar — TCP + tokio-rustls TLS. No channels., downloads: 205734 - [8] name: pyo3-asyncio, max_version: 0.20.0, max_stable_version: 0.20.0, description: PyO3 utilities for Python's Asyncio library, downloads: 2566636 - [9] name: tokio_with_wasm, max_version: 0.9.2, max_stable_version: 0.9.2, description: Mimicking tokio functionalities on web browsers, downloads: 2921584 - [10] name: tokio-quiche, max_version: 0.23.0, max_stable_version: 0.23.0, description: Asynchronous wrapper around quiche, downloads: 1822989
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:registry.crates.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | tokio | Rust crate name or keyword (e.g. "tokio", "serde", "mcp") |
| limit | number | optional | 10 | Max crates returned (1-30) |
| 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.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | registry_crates_search | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 189 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 2947t → 489t (-83%) | Partner credit: eligible |
More registry.crates Sibling Endpoints
Frequently Asked Questions
How do I call Rust Crates.io Packages Search (registry.crates.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/registry/crates/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool registry_crates_search on https://mcp.agentapigate.ai/mcp.
What does registry.crates.search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 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.search?
Passing ?format=md transforms the response into normalized Markdown (~489 tokens vs ~2947 raw tokens, saving 83% 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.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.