# supremeai PyPI Package Lookup

> supremeai PyPI Package Lookup is a paid API for AI agents from agents.supremeai.ca, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns structured metadata for a PyPI package including latest version, license, summary, required Python version, dependency count, homepage, and release count.

## Facts

- Endpoint: POST https://agents.supremeai.ca/v1/pypi/package?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/supremeai-pypi-package-lookup-df6475ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_62j7N9EQCF7Mgpx8w1KlE

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 supremeai-pypi-package-lookup-df6475ab -d '<json body>'
```

Example prompt: Can you look up the PyPI metadata for the 'httpx' package — I want to know its latest version, license, required Python version, and how many dependencies it has?

## When to prefer this

Choose this endpoint when you need a quick, structured snapshot of a PyPI package's metadata in a single call — ideal for dependency vetting, license compliance checks, or Python version compatibility analysis. Prefer it over scraping PyPI manually or calling the raw PyPI JSON API when you need a normalized, agent-friendly response with key fields pre-extracted.

## Known failure modes

- Package name not found on PyPI — returns an error or empty result
- Typo in package name causes no-match response
- Package exists but has incomplete metadata (e.g. missing license or homepage fields)
- PyPI API upstream timeout causing delayed or failed response
- Private or yanked packages may return incomplete data

## How this service works

Pay-per-call tools for AI agents: x402 pre-flight checks (is this endpoint safe to pay?), web pages as clean markdown (with optional JavaScript rendering), Latin American tax-ID validation, npm/PyPI/GitHub lookups, and URL health checks. No API keys, no accounts — pay per request in USDC.

## Output

A structured JSON object containing the package's latest version string, SPDX license identifier, one-line summary description, minimum required Python version, number of declared dependencies, homepage URL, and total number of historical releases on PyPI.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "requests",
  "latest": "2.34.2",
  "license": "Apache-2.0",
  "summary": "Python HTTP for Humans.",
  "releases": 150,
  "dependencies": 4,
  "requires_python": ">=3.9"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/supremeai-pypi-package-lookup-df6475ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.supremeai.ca](https://www.zero.xyz/host/agents.supremeai.ca/llms.txt)
