# PyPI Package Lookup

> PyPI Package Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Look up detailed metadata for a Python package by name from the PyPI public registry, including version, dependencies, release history, and project URLs.

## Facts

- Endpoint: GET https://2s.io/api/registry/pypi-lookup
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-90228abd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yPR1D2o98-wjL5iynKtIv

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 2s-io-90228abd
```

Example prompt: What's the latest version of the 'requests' package on PyPI, and what Python versions does it support? Also grab its homepage URL and list of runtime dependencies.

## When to prefer this

Use this endpoint when you need rich, structured PyPI package metadata — version, deps, classifiers, release history — for a single named package. Prefer over scraping PyPI HTML or using the raw PyPI JSON API directly when a pay-per-call microservice with structured output is acceptable. Ideal for agents doing dependency audits, package discovery, or developer tooling workflows.

## Known failure modes

- Package name not found on PyPI — returns 404 or empty result
- Typo in package name returns no match
- Private or unlisted packages not accessible
- PyPI registry downtime causes timeout or error
- Yanked-only packages may have limited metadata

## How this service works

Look up a Python package on PyPI by name. Returns version, summary + long description, content-type, project URLs (Homepage, Source, Bug Tracker, Docs, etc.), license, author + maintainer (with emails), keywords, classifiers (top 30), requires-python spec, requires-dist (top 100 runtime deps), the 50 most recent releases with publish dates, and any yanked versions in that window. PyPI public registry.

## Output

Returns structured metadata for the named PyPI package: current version, short summary and full long description with content type, project URLs (Homepage, Source, Docs, Bug Tracker, etc.), license, author and maintainer with emails, keywords, up to 30 classifiers, requires-python spec, up to 100 runtime dependencies, the 50 most recent releases with publish dates, and any yanked versions in that window.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "name": "requests"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "PyPI project name."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-90228abd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
