# PyPI Package Lookup via x402

> PyPI Package Lookup 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).

Fetches metadata for a Python package from PyPI, paid per-call via USDC microtransaction on Base or Solana.

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/lookup/pypi?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-package-lookup-via-x402-1e8a13b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C_LLKvpRDfsse34sE4T7S

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-package-lookup-via-x402-1e8a13b8
```

Example prompt: Can you look up the PyPI package 'httpx' and tell me its latest version, description, and author?

## When to prefer this

Use this endpoint when an agent needs programmatic, pay-per-use PyPI package metadata without setting up a PyPI API key or scraping PyPI directly. Ideal for lightweight, one-off lookups in agentic workflows where USDC micropayments via x402 are already supported.

## Known failure modes

- Package not found on PyPI — returns error or empty result
- Misspelled package name — no match returned
- Payment failure via x402 — call not executed
- Service unavailable (hosted on Render free tier — may cold-start) — timeout or 503

## 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

A JSON object containing PyPI package metadata such as name, latest version, summary/description, author, license, home page URL, and potentially dependency and release information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-package-lookup-via-x402-1e8a13b8/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)
