# SignalDesk AI – Crates.io Package Lookup

> SignalDesk AI – Crates.io Package Lookup is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

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

## Facts

- Endpoint: GET https://x402-agent.kariguetoazul.workers.dev/api/dev/crate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-crates-io-package-lookup-13d8cb8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_92enRGeyNF0Chyus7Yey6

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 signaldesk-ai-crates-io-package-lookup-13d8cb8d
```

Example prompt: Can you look up the latest version and download stats for the 'tokio' Rust crate on crates.io?

## When to prefer this

Use this endpoint when you need structured, up-to-date metadata for a specific Rust crate from crates.io, especially latest version, download statistics, and repository URL. Prefer this over scraping crates.io directly or using general web search when you need machine-readable, reliably structured output with a known freshness window.

## Known failure modes

- Package name not found on crates.io — returns an error or empty result
- Package name too long (over 200 characters) or empty — rejected by schema validation
- crates.io API unavailable or rate-limited — may return stale or failed response
- Misspelled crate name — returns not-found rather than fuzzy match

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object containing the crate name, latest published version string, total and recent download counts, GitHub repository URL, human-readable description, and source metadata including when the data was fetched and when it expires.

## 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",
       "maxLength": 200,
       "minLength": 1,
       "description": "Package name."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "crate": "serde",
  "latest": "1.0.229",
  "source": {
   "provider": "crates.io metadata",
   "expires_at": "2026-10-02T10:44:48.953Z",
   "fetched_at": "2026-10-02T09:44:48.953Z",
   "source_url": "https://crates.io/api/v1/crates/serde",
   "transformed": true
  },
  "downloads": 1469985315,
  "repository": "https://github.com/serde-rs/serde",
  "updated_at": "2026-07-18T23:05:13.266456Z",
  "description": "A generic serialization/deserialization framework",
  "recent_downloads": 336527466
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-crates-io-package-lookup-13d8cb8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
