# Package Health - Recent Versions & Release Cadence

> Package Health - Recent Versions & Release Cadence 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 recent versions of a package with publish dates, deprecation flags, and release cadence metrics (median days between releases).

## Facts

- Endpoint: GET https://package-health.x402tookit.com/package-versions?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-recent-versions-release-cadence-24059dbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_54H0_tjK7crAkMzJWFZq-

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-recent-versions-release-cadence-24059dbb
```

Example prompt: Can you pull the last 15 versions of the npm package 'lodash' and tell me how often it releases and whether any recent versions are deprecated?

## When to prefer this

Use this endpoint when you need a quick snapshot of a package's version history and release rhythm across npm, PyPI, Go, Maven, Cargo, or NuGet — especially when evaluating whether a dependency is actively maintained or has deprecated releases in circulation. Prefer this over a general package health check when release cadence and version timeline are the primary concern.

## Known failure modes

- Unknown package name returns empty or error response
- Unsupported ecosystem value causes validation failure
- Requesting n outside 1–30 range may be rejected or clamped
- Package registry temporarily unavailable causes degraded=true response
- Very new packages with few versions may return incomplete cadence metrics

## How this service works

Recent versions of a package with publish dates, deprecation flags and release cadence in days between releases.

## Output

Returns an object containing a list of recent package versions (each with version string, publish date, deprecation flag, and default flag), total version count, days since last release, median days between releases, a verdict and summary about release health, source URL, and any degraded/disclaimer notices.

## 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": {
      "n": {
       "type": "integer",
       "description": "How many recent versions, 1 to 30, default 10"
      },
      "name": {
       "type": "string",
       "description": "Package name"
      },
      "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"
       ]
      },
      "total": {
       "type": [
        "null",
        "number"
       ]
      },
      "recent": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "version": {
          "type": [
           "null",
           "string"
          ]
         },
         "isDefault": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "deprecated": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "publishedAt": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-health-recent-versions-release-cadence-24059dbb/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)
