npm package health API: dependency-hygiene facts straight from the npm registry — latest v
npm package health API: dependency-hygiene facts straight from the npm registry — latest version, all dist-tags, last-modified timestamp, total published versions, deprecation status with message, runtime dependency count, and weekly downloads. For scoped packages, URL-encode the slash in the name. Use for dependency auditing, supply-chain security checks, version freshness, and update agents maintaining package.json. Cached up to 1 hour per package.
3000 (raw units)
price
2
calls / 30d
2
unique payers
2026-08-30
updated
Provider
gateway.stride20k.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x552Cc4A10878C7F20574489D47184249657Ca3f6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"packageName": "hono"
},
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"data": {
"dependencyCount": 0,
"deprecated": false,
"distTags": {
"latest": "4.12.27",
"next": "4.5.0-rc.2"
},
"lastModified": "2026-06-23T02:48:49.115Z",
"latestVersion": "4.12.27",
"package": "hono",
"versionCount": 434,
"weeklyDownloads": 47559567
},
"endpoint": "/dev/npm/:packageName",
"meta": {
"attribution": null,
"cached": false,
"fetchedAt": "2026-07-04T00:00:00.000Z",
"source": "npm registry"
},
"ok": true
},
"type": "json"
}
},
"routeTemplate": "/dev/npm/:packageName",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"packageName": {
"description": "npm package name (lowercase). For scoped packages, URL-encode the slash in the name.",
"pattern": "(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*",
"type": "string"
}
},
"required": [
"packageName"
],
"type": "object"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"dependencyCount": {
"description": "Runtime dependency count of the latest version.",
"type": "integer"
},
"deprecated": {
"description": "false, true, or the deprecation message string for the latest version.",
"type": [
"boolean",
"string"
]
},
"distTags": {
"description": "All dist-tags (latest, next, beta, ...).",
"type": "object"
},
"lastModified": {
"description": "Registry last-modified timestamp, ISO 8601.",
"type": "string"
},
"latestVersion": {
"description": "Version currently tagged 'latest'.",
"type": "string"
},
"package": {
"description": "Canonical package name.",
"type": "string"
},
"versionCount": {
"description": "Total published versions.",
"type": "integer"
},
"weeklyDownloads": {
"description": "Downloads in the last 7 days, or null if unavailable.",
"type": "integer"
}
},
"required": [
"package",
"latestVersion",
"deprecated"
],
"type": "object"
},
"endpoint": {
"description": "Always \"/dev/npm/:packageName\".",
"type": "string"
},
"meta": {
"properties": {
"attribution": {
"description": "Licensing attribution when the source requires it.",
"type": [
"string",
"null"
]
},
"cached": {
"description": "Whether this response was served from cache.",
"type": "boolean"
},
"fetchedAt": {
"description": "ISO 8601 time the data was actually retrieved from the upstream.",
"type": "string"
},
"source": {
"description": "Upstream source: npm registry.",
"type": "string"
}
},
"required": [
"source",
"cached",
"fetchedAt"
],
"type": "object"
},
"ok": {
"description": "true on success.",
"type": "boolean"
}
},
"required": [
"ok",
"endpoint",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://gateway.stride20k.com/dev/npm/:packageName" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://gateway.stride20k.com/dev/npm/:packageName");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://gateway.stride20k.com/dev/npm/:packageName")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1155.json, and this resource appears in /discovery/resources and /discovery/search.