# Datakoot Package Health Check

> Datakoot Package Health Check is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns health metadata for an npm, PyPI, or Cargo package including license, deprecation status, maintainer count, and release freshness

## Facts

- Endpoint: POST https://x402.datakoot.com/api/package_health?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-package-health-check-678986e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kyqhVfOxkJs8mipngNp9S

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 datakoot-package-health-check-678986e5 -d '<json body>'
```

Example prompt: Can you check the health of the 'express' package on npm — I want to know if it's still actively maintained, what its latest version is, and what license it uses?

## When to prefer this

Choose this endpoint when you need a quick, structured health snapshot of a specific package across npm, PyPI, or Cargo — especially useful in dependency auditing, security pipelines, or CI workflows where you need license, deprecation, and maintenance signals without scraping registry pages. Prefer this over manual registry lookups when you need machine-readable output at scale for $0.002 per call.

## Known failure modes

- Package not found in the specified registry — returns an error or empty result
- Wrong ecosystem specified for a package (e.g. searching npm for a PyPI-only package) — returns not found
- Payment failure via x402 — call not charged, no result returned
- Rate limiting if free MCP quota (100/day) is exceeded

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

A JSON object containing: license name, deprecated boolean, has_license boolean, number of maintainers, ISO timestamp of last release, latest version string, days since last release as an integer, and actively_maintained boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "Exact package name as published in that registry, e.g. express for npm, requests for pypi, serde for cargo."
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi",
    "cargo"
   ],
   "type": "string",
   "description": "Package registry to look in. One of: npm, pypi, cargo."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "license": "WTFPL",
  "deprecated": true,
  "has_license": true,
  "maintainers": 2,
  "last_release": "2018-04-09T01:10:45.796Z",
  "latest_version": "1.3.0",
  "days_since_release": 3099,
  "actively_maintained": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-package-health-check-678986e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
