# Rust Crate Facts from crates.io

> Rust Crate Facts from crates.io is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Fetches metadata for a Rust crate from crates.io including latest version, download count, and repository URL

## Facts

- Endpoint: POST https://twin.unykorn.org/research/crates-package?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rust-crate-facts-from-crates-io-f695cf8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ErXI-aajg3dgqZRwi8hen

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rust-crate-facts-from-crates-io-f695cf8d -d '<json body>'
```

Example prompt: What's the latest version of the tokio crate on crates.io, how many times has it been downloaded, and what's its repository URL?

## When to prefer this

Use this endpoint when you need quick, structured facts about a Rust crate — specifically version, downloads, and repo — without scraping crates.io yourself. Prefer it over general web search when you need machine-readable crate metadata to enrich developer tooling, dependency audits, or package comparison workflows.

## Known failure modes

- Crate name not found on crates.io returns an error or empty result
- crates.io API rate limiting or downtime causes lookup failure
- Typos or incorrect crate names return no results
- Crate exists but has no associated repository URL

## How this service works

Rust crate facts from crates.io: version, downloads, repo — Genesis402 / UnyKorn Operator Network

## Output

Returns structured metadata for the requested Rust crate from crates.io, including the latest published version string, total all-time download count, and the associated source repository URL (typically a GitHub link).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "name": {
     "type": "string",
     "description": "required"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "crates-package",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rust-crate-facts-from-crates-io-f695cf8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
