# PyPI Package Metadata Lookup

> PyPI Package Metadata Lookup is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns normalized metadata for a Python package from PyPI, including version, dependencies, license, homepage, and yank/deprecation status.

## Facts

- Endpoint: POST https://x402.forgemesh.io/pip-dependency-lookup
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-package-metadata-lookup-33050e8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bcrEOyjECh8fHI8MbsQih

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-metadata-lookup-33050e8c -d '<json body>'
```

Example prompt: Before we run pip install, can you look up the PyPI metadata for the 'requests' package — I want to check its current version, license, dependencies, and whether it's been yanked or deprecated?

## When to prefer this

Use this endpoint when an AI agent needs to audit, generate, or validate a Python requirements file before running pip install, or when checking package provenance, license compatibility, or deprecation status. Prefer this over raw PyPI API calls because the response is pre-normalized and trimmed to the fields most relevant for dependency auditing.

## Known failure modes

- Package name not found on PyPI — returns error or empty result
- Package exists but has no published releases — metadata may be incomplete
- Misspelled package name returns no results
- PyPI upstream unavailable — service may return timeout or error
- Yanked-only packages may return limited metadata

## How this service works

Looks up normalized package metadata from the Python Package Index, version, dependencies, license, homepage, and yank/deprecation status, trimmed down from the much larger raw index response. For agents auditing or generating requirements files before running pip install.

## Output

A normalized subset of PyPI index data for the specified package, including current version, dependency list, license type, homepage URL, and any yank or deprecation flags — trimmed from the full raw PyPI response for agent-friendly consumption.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "package": {
   "type": "string",
   "description": "package name, e.g. requests"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "name": "requests",
   "summary": "Python HTTP for Humans.",
   "version": "2.32.3",
   "requires_python": ">=3.8"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-package-metadata-lookup-33050e8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
