# Rust Crate Info

> Rust Crate Info is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Fetches metadata for a Rust crate from crates.io including version, license, downloads, repository, docs, and minimum Rust version.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/dev/crate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rust-crate-info-ce2c7935
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eaqTWuTJ89v_9jVtZHsgi

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-info-ce2c7935
```

Example prompt: Look up the crate info for serde on crates.io — I need the latest stable version, license, download count, and minimum Rust version before I add it as a dependency.

## When to prefer this

Use this endpoint when you need authoritative, up-to-date metadata about a specific Rust crate from crates.io — especially when evaluating a dependency for license compliance, popularity, maintenance status, or version compatibility. Prefer this over scraping the crates.io website or using the raw crates.io API directly, as it returns a clean, pre-parsed summary in a single call.

## Known failure modes

- Crate name not found on crates.io — returns 404 or empty result
- Misspelled crate name returns no data
- crates.io API unavailable causes upstream error
- Crate exists but has no stable release — may return pre-release info or empty version field
- Missing optional fields (e.g. MSRV, docs URL) if crate author did not provide them

## How this service works

A Rust crate on crates.io: latest stable version, description, license, total and 90-day downloads, repository, docs, minimum Rust version and dates. Use to choose or audit a Rust dependency.

## Output

Returns a structured object containing the crate's latest stable version, description, license, total and 90-day download counts, repository URL, documentation URL, minimum supported Rust version (MSRV), and relevant release dates — all sourced from crates.io.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Crate name, e.g. serde"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rust-crate-info-ce2c7935/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
