# Package Health – PyPI Project Facts

> Package Health – PyPI Project Facts is a paid API for AI agents from package-health.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns key health metadata for a PyPI package: latest version, Python requirement, license, release freshness, and whether the latest release was yanked.

## Facts

- Endpoint: GET https://package-health.x402tookit.com/pypi-package?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-health-pypi-project-facts-0ce9cbdd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GgHbDmOjQ-HTgcWfbd1Q3

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 package-health-pypi-project-facts-0ce9cbdd
```

Example prompt: Can you check the PyPI package health for 'httpx' — I want to know the latest version, whether it's been yanked, what Python version it requires, and when it was last updated?

## When to prefer this

Use this endpoint when you need a quick, single-call summary of a PyPI package's health signals — version, license, freshness, and yank status — without scraping PyPI directly. Prefer it over the multi-ecosystem endpoint when you specifically need PyPI-only data with no overhead. Choose it over the version-history endpoint when you only need the latest release facts rather than a full release timeline.

## Known failure modes

- Package name not found on PyPI — returns null fields or error
- PyPI API unavailable — degraded flag set to true with partial data
- Yanked release with no reason provided — reasons array empty
- Package with no releases — most numeric fields null
- Misspelled package name returns empty or irrelevant results

## How this service works

PyPI project facts: latest version, Python requirement, license, release freshness and whether the latest is yanked.

## Output

A JSON object containing: package name, latest version, Python requirement string, SPDX license identifier, upload dates (first and last), days since last upload, total release count, whether the latest version is yanked, a health verdict (e.g. maintained/stale/abandoned), a human-readable summary, reasons behind the verdict, dependency count, home page URL, source repository URL, and an asOf timestamp indicating data freshness.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "PyPI project name, e.g. requests"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "license": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "homePage": {},
      "releases": {
       "type": [
        "null",
        "number"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "lastUpload": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "description": {
       "type": [
        "null",
        "string"
       ]
      },
      "firstUpload": {
       "type": [
        "null",
        "string"
       ]
      },
      "yankedLatest": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "latestVersion": {
       "type": [
        "null",
        "string"
       ]
      },
      "requiresPython": {
       "t
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-health-pypi-project-facts-0ce9cbdd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-health.x402tookit.com](https://www.zero.xyz/host/package-health.x402tookit.com/llms.txt)
