# WorldData402 PyPI Package Lookup

> WorldData402 PyPI Package Lookup is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Retrieves metadata and reference data for a PyPI (Python Package Index) package by name via pay-per-call x402 micropayment.

## Facts

- Endpoint: POST https://worlddata402.worlddata402.workers.dev/v1/packages/pypi/%7Bname%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-pypi-package-lookup-172e6d35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5Lp6Q7gA8PUY7mEQ4SDe8

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 worlddata402-pypi-package-lookup-172e6d35 -d '<json body>'
```

Example prompt: Can you look up the PyPI package metadata for 'requests' — I want to know the latest version, license, author, and a short description?

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically look up Python package metadata from PyPI as part of a software development, dependency auditing, or open source research workflow, and is operating in an x402 micropayment environment using USDC on Base mainnet. Prefer this over scraping PyPI directly when a reliable, pay-per-call structured data API is needed.

## Known failure modes

- Package name not found on PyPI — returns 404 or empty result
- Misspelled or non-existent package name provided — no match returned
- PyPI upstream unavailable — service may return timeout or error
- Payment failure over x402 — call not executed if USDC transaction fails

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

Returns structured metadata for the requested PyPI package, including the package name, latest version, author and maintainer info, license type, short and long descriptions, homepage and repository URLs, release history, and dependency requirements.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-pypi-package-lookup-172e6d35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
