# CodePulse PyPI Registry Lookup

> CodePulse PyPI Registry Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Looks up metadata for a Python package on the PyPI registry, returning author, version, and support status.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/registry/pypi
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-pypi-registry-lookup-3b034cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vdAtDiblmHmy8Afl31gQm

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 codepulse-pypi-registry-lookup-3b034cc8 -d '<json body>'
```

Example prompt: Can you look up the PyPI registry entry for the 'requests' package and tell me the current version and who the author is?

## When to prefer this

Use this endpoint when you need quick, structured metadata about a Python package from PyPI — especially version and authorship — without scraping the PyPI website yourself. Prefer it over raw web scraping for PyPI data because the response is structured JSON with a confidence indicator. Best suited for single-package lookups in agent workflows that need pip/PyPI context at low cost ($0.01 per call).

## Known failure modes

- Package not found on PyPI — may return unsupported or low-confidence result
- Misspelled package name returns no match or incorrect metadata
- Data may lag real-time PyPI by the reported data_as_of date
- Network or worker timeout for slow registry responses

## How this service works

Fetches package descriptions, requirements, and release version numbers from PyPI.

## Output

Returns a JSON object with the package author name, current version, a boolean 'supported' flag, a confidence level (e.g. 'high'), the data freshness date (month/year), and any warnings or disclaimers about the information.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Python package name"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "author": "Kenneth Reitz",
   "version": "2.31.0"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-pypi-registry-lookup-3b034cc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
