# PyPI Crate/Package Search via x402

> PyPI Crate/Package Search via x402 is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Looks up a PyPI (or Rust crates.io) package by name and returns metadata, paid per-call via USDC over x402.

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/dev/crates?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-crate-package-search-via-x402-4b81baf5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c6iv4S1swztxkJowPm3Dl

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 pypi-crate-package-search-via-x402-4b81baf5
```

Example prompt: Can you look up the crate 'serde' on crates.io and return its name, latest version, and description?

## When to prefer this

Use this endpoint when you need quick, pay-per-call package metadata lookups for Rust crates or Python packages without setting up a full API key or subscription. Ideal for agents that infrequently query package registries and want to pay micro-amounts per lookup via USDC on Base or Solana.

## Known failure modes

- Crate name not found — returns empty or error object
- Invalid or misspelled crate name — no results
- Payment rejected — x402 USDC payment on Base or Solana mainnet fails
- Rate limiting or server downtime on render.com free tier
- Fields parameter ignored or partially supported

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

Returns a JSON object with package/crate metadata such as name, version, description, license, authors, dependencies, and download statistics, filtered by any requested fields.

## 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": [
      "crate"
     ],
     "properties": {
      "crate": {
       "type": "string",
       "description": "Requires a Rust crate name string, e.g. serde"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-crate-package-search-via-x402-4b81baf5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
