# pkgpulse PyPI Preflight Audit

> pkgpulse PyPI Preflight Audit is a paid API for AI agents from pkgpulse.letom1176.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Audits a list of PyPI package names for typosquats, hallucinated packages, known vulnerabilities, and overall safety before installing them

## Facts

- Endpoint: GET https://pkgpulse.letom1176.workers.dev/api/pypi-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pkgpulse-pypi-preflight-audit-0ba64b6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tUK-zURzS8jphqZKJVenH

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 pkgpulse-pypi-preflight-audit-0ba64b6e
```

Example prompt: Before I run pip install, can you audit these Python packages for typosquats, hallucinations, and known vulnerabilities: requests==2.28.0,numpy,fastapi==0.95.1,cryptograpy?

## When to prefer this

Use this endpoint when you need to validate Python (PyPI) package dependencies specifically — especially when packages were generated by an AI coding agent and may be hallucinated, or when you want a combined typosquat + vulnerability + existence check in a single call before running pip install or updating a requirements.txt file. Prefer it over generic OSV scanners when you need the hallucination/existence check bundled with security scanning.

## Known failure modes

- Missing 'names' query parameter returns an error
- Non-existent or misspelled package names are flagged as not_on_pypi
- Payment not included or invalid x402 USDC payment results in 402 Payment Required
- Rate limiting or Cloudflare Worker timeout for very large package lists
- OSV database unavailability may cause incomplete vulnerability results

## How this service works

Dependency intelligence for AI coding agents, paid per-call via x402 (USDC on Base): npm package health scores with a disclosed rubric, typosquat checks, dependency audits, OSV known-vulnerability scans (npm, PyPI, Go, crates.io, Maven and more) and PyPI preflight checks. Free index at /, free sample at /api/sample.

## Output

Returns a JSON object with a summary containing counts of audited, clean, lookalike, not-on-PyPI, and vulnerability-affected packages, plus a human-readable verdict string (e.g. 'STOP: requirements name projects that do not exist on PyPI') indicating whether the package list is safe to install.

## 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",
     "required": [
      "names"
     ],
     "properties": {
      "names": {
       "type": "string",
       "description": "Comma-separated PyPI projects, optionally pinned: requests==2.19.0,numpy"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "summary": {
   "clean": 1,
   "audited": 3,
   "lookalikes": 0,
   "not_on_pypi": 1,
   "with_known_vulnerabilities": 1
  },
  "verdict": "STOP: requirements name projects that do not exist on PyPI (hallucination/squat vector)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pkgpulse-pypi-preflight-audit-0ba64b6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pkgpulse.letom1176.workers.dev](https://www.zero.xyz/host/pkgpulse.letom1176.workers.dev/llms.txt)
