# Rust Crate Health Check (crates.io)

> Rust Crate Health Check (crates.io) is a paid API for AI agents from package-registries.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-29).

Returns a health summary for a Rust crate on crates.io, including latest release age, download counts, license, yanked versions, owner count, and repository info.

## Facts

- Endpoint: GET https://package-registries.x402tookit.com/crate-health?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rust-crate-health-check-crates-io-56c07e46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QQTo_mYomD-GeVeaTmA_E

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-health-check-crates-io-56c07e46
```

Example prompt: Can you check the health of the serde crate on crates.io — I want to know if it's actively maintained, how many downloads it has, its license, and whether any versions have been yanked?

## When to prefer this

Use this endpoint when you need a quick, structured health assessment of a Rust crate specifically from crates.io — particularly when evaluating whether to adopt a dependency, auditing existing dependencies for maintenance status, or checking license compliance. Prefer this over generic web search when you need structured fields like yanked version counts, owner counts, or download metrics.

## Known failure modes

- Crate name not found on crates.io — returns null or error response
- crates.io API rate limiting or downtime causing stale or missing data
- Yanked-only crate with no stable releases may return degraded verdict
- Missing or ambiguous license field if crate author omitted it

## How this service works

Health of a Rust crate on crates.io: latest release age, downloads, license, yanked versions, owners and repository.

## Output

Returns a structured health report for the specified Rust crate including: health verdict, summary, latest version, date of latest publish, days since latest release, total downloads, recent 90-day downloads, number of yanked versions, version count, license string, owner count, repository URL, homepage, minimum Rust version, and a list of health reasons or concerns. May also include disclaimer and a list of unchecked attributes.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Crate name, e.g. serde"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "created": {
       "type": [
        "null",
        "string"
       ]
      },
      "license": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "homepage": {
       "type": [
        "null",
        "string"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "ownerCount": {
       "type": [
        "null",
        "number"
       ]
      },
      "repository": {
       "type": [
        "null",
        "string"
       ]
      },
      "description": {
       "type": [
        "null",
        "string"
       ]
      },
      "rustVersion": {
       "type": [
        "null",
        "string"
       ]
      },
      "versionCount": {
       "type": [
        "null",
        "number"
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rust-crate-health-check-crates-io-56c07e46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-registries.x402tookit.com](https://www.zero.xyz/host/package-registries.x402tookit.com/llms.txt)
