# PyPI Package Dependency Lookup

> PyPI Package Dependency Lookup is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns parsed dependency metadata for the latest release of a PyPI package, including requires_dist, requires_python, license, extras, and environment markers.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/pypi-requires
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-package-dependency-lookup-047824ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yUy51GK-kQ4wkyvT4DPKo

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-dependency-lookup-047824ec
```

Example prompt: What are the dependencies of the latest release of the 'httpx' PyPI package — show me the full requires_dist with version specifiers, any optional extras, the required Python version, and the license.

## When to prefer this

Use this endpoint when you need a quick, parsed, one-hop view of a Python package's dependencies without running pip or setting up a Python environment. Ideal for supply chain audits, license checks, CI automation, and agent workflows that need to reason about Python package requirements programmatically. Prefer this over scraping PyPI directly or using the raw PyPI JSON API when you want pre-parsed, structured dependency fields.

## Known failure modes

- Package not found on PyPI — returns an error or empty result
- Package exists but has no requires_dist metadata — returns empty dependency list
- Network or upstream PyPI API timeout
- Malformed package name input
- Payment of $0.01 USDC required per call — unpaid requests will be rejected with 402

## How this service works

Dependencies of a PyPI project's latest release: requires_dist parsed into name, version specifier, extras and environment markers; requires_python; license; and the list of optional extras. One-hop Python supply-chain view. $0.01 per project.

## Output

A structured breakdown of the latest PyPI release's dependency metadata: a list of requires_dist entries each parsed into dependency name, version specifier, extras, and environment markers; the requires_python constraint; the package license; and the list of declared optional extras.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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