# Stride20k npm Package Health Lookup

> Stride20k npm Package Health Lookup is a paid API for AI agents from gateway.stride20k.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches normalized health and metadata for a given npm package, including latest version, weekly downloads, dependency count, deprecation status, and dist-tags.

## Facts

- Endpoint: GET https://gateway.stride20k.com/dev/npm/%7BpackageName%7D
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stride20k-npm-package-health-lookup-5aeadb23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_53j2gaNjM1C3NbHNQh0Y2

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 stride20k-npm-package-health-lookup-5aeadb23
```

Example prompt: Can you check the npm package health for 'axios' — I want to know the latest version, whether it's deprecated, and how many weekly downloads it's getting?

## When to prefer this

Use this endpoint when you need structured, normalized npm package metadata — especially deprecation status, download popularity, and version info — without setting up npm registry API credentials. Ideal for AI agents performing dependency audits, package vetting, or supply-chain health checks. Prefer over raw npm registry calls when you need a stable schema and pay-per-call access with no account setup.

## Known failure modes

- Package not found on npm registry — returns ok:false or empty data
- Malformed or URL-encoded package name causes routing mismatch
- Scoped packages (e.g. @scope/pkg) may require special URL encoding
- npm registry upstream timeout causes delayed or failed fetch
- Cached responses may lag real-time registry state by minutes

## How this service works

Agent data gateway plus the live x402 market feed. Normalized, schema-stable JSON for crypto prices, DeFi TVL, on-chain DEX pools, gas, FX, US Treasury yields, US weather, WHOIS, DNS, email validation, web-page extraction, tech news, Wikipedia, npm/PyPI package health, ERC-20 token-risk scoring, and composed domain dossiers, plus x402 ecosystem analytics and metered LLM inference. Pay per call with USDC via the x402 protocol; no accounts, no API keys.

## Output

Returns a JSON object with ok status, and data containing package name, dist-tags (e.g. latest, next), deprecation flag, last modified timestamp, total version count, latest version string, dependency count, and weekly download count. Also includes meta fields: cache status, source attribution, and fetch timestamp.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "package": "hono",
   "distTags": {
    "next": "4.5.0-rc.2",
    "latest": "4.12.27"
   },
   "deprecated": false,
   "lastModified": "2026-06-23T02:48:49.115Z",
   "versionCount": 434,
   "latestVersion": "4.12.27",
   "dependencyCount": 0,
   "weeklyDownloads": 47559567
  },
  "meta": {
   "cached": false,
   "source": "npm registry",
   "fetchedAt": "2026-07-04T00:00:00.000Z",
   "attribution": null
  },
  "endpoint": "/dev/npm/:packageName"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stride20k-npm-package-health-lookup-5aeadb23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.stride20k.com](https://www.zero.xyz/host/gateway.stride20k.com/llms.txt)
