# PyPI Package Facts Lookup

> PyPI Package Facts Lookup is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-03).

Returns key metadata for a PyPI package: latest version, license, Python version requirement, and release date

## Facts

- Endpoint: POST https://twin.unykorn.org/research/pypi-package?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-package-facts-lookup-e2fb70c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mAe-tW7JrhO7tlUI1N3-U

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-facts-lookup-e2fb70c4 -d '<json body>'
```

Example prompt: What's the current version, license, and Python requirement for the 'httpx' package on PyPI?

## When to prefer this

Use this endpoint when you need quick, structured facts about a specific PyPI package — version, license, Python compatibility, and release date — without scraping the PyPI website yourself. Ideal for dependency auditing, compatibility checks, and freshness assessments in automated Python project workflows.

## Known failure modes

- Package name not found on PyPI returns an error or empty result
- Typo in package name yields no match
- Package exists but has incomplete PyPI metadata (missing license or Python requirement fields)
- Network timeout reaching PyPI API
- Private or unlisted packages are not accessible

## How this service works

PyPI package facts: version, license, Python requirement, release date — Genesis402 / UnyKorn Operator Network

## Output

Returns a structured object with the package's latest version string, SPDX license identifier, minimum Python version requirement (e.g. '>=3.8'), and the release date of the latest version.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "name": {
     "type": "string",
     "description": "required"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "pypi-package",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-package-facts-lookup-e2fb70c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
