# Package Health – Overall Health Check

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

Returns a health verdict (maintained, stale, or abandoned) for an npm, PyPI, Go, Maven, Cargo, or NuGet package, including deprecation status, license info, release cadence, and adoption signals.

## Facts

- Endpoint: GET https://package-health.x402tookit.com/package-health?utm_source=zero.xyz
- Price: $0.03/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-overall-health-check-6272b5f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TsUV50rNvoDRShkd3w3-K

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-overall-health-check-6272b5f3
```

Example prompt: Is the 'express' npm package still actively maintained, or is it stale or abandoned? Give me the health verdict, license info, and how long since the last release.

## When to prefer this

Use this endpoint when you need a single, opinionated health verdict for a package across any of the six major ecosystems (npm, PyPI, Go, Maven, Cargo, NuGet). It is the right choice when you want a holistic summary — combining maintenance status, deprecation, license, downloads, and release cadence — rather than drilling into one specific dimension like license-only or downloads-only. Prefer sibling endpoints when you need granular data on a specific version, exact release history, or attestation provenance.

## Known failure modes

- Unknown package name returns null fields or empty verdict
- Unsupported ecosystem value returns validation error
- Package registry may be temporarily unavailable causing degraded or null response
- Very new packages with minimal history may return incomplete cadence data
- Rate limiting or payment failure returns 402 or 429 error

## How this service works

Package health for npm, PyPI, Go, Maven, Cargo or NuGet: maintained, stale or abandoned, deprecation, license, adoption.

## Output

Returns a structured JSON object with: a health verdict (maintained/stale/abandoned), deprecation flag, license details (class and SPDX IDs), summary text, reasons for the verdict, age in days, days since last release, first published and last released dates, number of versions, weekly downloads, release cadence (median days between releases), advisories count on the default version, thresholds used for stale/abandoned classification, and a source URL.

## 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": [
      "system",
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Package name, e.g. express"
      },
      "system": {
       "type": "string",
       "description": "npm, pypi, go, maven, cargo or nuget"
      }
     }
    }
   },
   "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"
       ]
      },
      "system": {
       "type": [
        "null",
        "string"
       ]
      },
      "ageDays": {
       "type": [
        "null",
        "number"
       ]
      },
      "license": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "cls": {
         "type": [
          "null",
          "string"
         ]
        },
        "ids": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "versions": {
       "type": [
        "null",
        "number"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "deprecated": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-health-overall-health-check-6272b5f3/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)
