# Rust Crate Status Oracle

> Rust Crate Status Oracle is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the current latest version, publish date, and download URL for any Rust crate on crates.io, resolved live by package name.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/crates/status
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rust-crate-status-oracle-a0ea81b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DrPoR6oeZWLXzyk8QU0Ts

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-status-oracle-a0ea81b0
```

Example prompt: What is the latest version of the tokio Rust crate on crates.io, and when was it published?

## When to prefer this

Use this endpoint when you need live, up-to-date version metadata for any Rust crate from crates.io — especially when checking whether a dependency is current, auditing Rust project lockfiles, or automating version-bump workflows. Prefer this over static package indexes when freshness matters.

## Known failure modes

- Unknown or misspelled package name returns empty or not-found response
- crates.io upstream unavailable causes fetch failure
- Rate limiting or payment failure returns 402 or 429
- Providing neither id nor package query param returns an error or entity list

## How this service works

Look up the current published version of any Rust crate package on crates.io (Rust) — latest version string, release date, and repo/docs URL. Answers "what is the newest version of serde, tokio, clap, reqwest?" for Cargo.toml pinning. Use ?package=<name> (resolved live).

## Output

Returns a JSON object with the entity record for the crate, including its latest version string, publish/release date, and the canonical crates.io URL for the package.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      },
      "package": {
       "type": "string",
       "description": "Any crates.io (Rust) package name — resolved and fetched live if not already tracked"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rust-crate-status-oracle-a0ea81b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
