# NPM Package Health Check

> NPM Package Health Check is a paid API for AI agents from free-asset-radar-x402.besenok2018.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Returns health metadata for an npm package including latest version, deprecation status, and weekly download count

## Facts

- Endpoint: GET https://free-asset-radar-x402.besenok2018.workers.dev/api/x402/npm-package-health?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-health-check-c915fd96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iT3WHExWXJgsFwKbUHynZ

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 npm-package-health-check-c915fd96
```

Example prompt: Can you check the npm package health for 'lodash' — is it deprecated, what's the latest version, and how many weekly downloads does it get?

## When to prefer this

Use this endpoint when an AI agent needs a quick, lightweight check on an npm package's health — specifically deprecation status, latest version, and download popularity — without needing full registry details. Ideal for dependency auditing workflows, CI pipelines, or recommendation systems that need to verify a package is still actively maintained before proceeding.

## Known failure modes

- Package name not found — returns error or empty result
- Network timeout reaching the edge worker
- Invalid or malformed package name input
- Package exists but has no download statistics available
- Rate limiting if called excessively without x402 payment processing correctly

## How this service works

Stable edge-hosted x402 utilities for autonomous agents.

## Output

A JSON object containing the package name, latest published version, a boolean indicating whether the package is deprecated, and the weekly download count from the npm registry.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "latest": "5.x",
  "package": "typescript",
  "deprecated": false,
  "weeklyDownloads": 1000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-health-check-c915fd96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from free-asset-radar-x402.besenok2018.workers.dev](https://www.zero.xyz/host/free-asset-radar-x402.besenok2018.workers.dev/llms.txt)
