{"uid":"cap_oDc091Y4Kivw3hqUP_Jst","slug":"npm-package-health-api-0fdf786a","name":"npm Package Health API","description":"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.","url":"https://gateway.stride20k.com/dev/npm/:packageName","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-jxnQjMRC9YmMXlDW6PW-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns npm registry health facts for any npm package: latest version, dist-tags, deprecation status, version count, dependency count, weekly downloads, and last-modified timestamp.","exampleAgentPrompt":"Can you check the npm registry health for the 'axios' package — I want to see if it's deprecated, what the latest version is, how many weekly downloads it gets, and how many runtime dependencies it has?","exampleUseCases":[{"title":"Check if package is deprecated","prompt":"I'm doing a dependency audit on our project and I need to know if 'request' is deprecated — can you pull its npm health info and tell me the deprecation status, latest version, and when it was last updated?"},{"title":"Assess package freshness before updating","prompt":"Before I update our package.json, can you check the npm registry for 'lodash' and tell me the latest version, how recently it was modified, how many versions have been published, and how many weekly downloads it's getting?"},{"title":"Supply chain security review","prompt":"I'm reviewing our dependencies for supply chain risks — can you look up 'left-pad' on npm and give me its download numbers, dependency count, deprecation status, and how active development has been lately?"}],"resultDescription":"Returns a JSON object with: canonical package name, latest version string, all dist-tags (latest/next/beta/etc.), deprecation flag or message, ISO 8601 last-modified timestamp, total published version count, runtime dependency count, and weekly download count. Also includes cache metadata (whether served from cache, when data was fetched).","failureModes":["Package not found on npm registry — returns error response","Scoped package name not URL-encoded (e.g. @babel/core must be %40babel%2Fcore) — causes 404 or routing error","Weekly downloads field may be null if unavailable from npm","Cached response up to 1 hour old may not reflect very recent publishes","Rate limit or upstream npm registry outage could cause temporary failures"],"whenToPreferThis":"Use this endpoint when you need authoritative npm package metadata in a single call, especially for dependency auditing, checking deprecation status, assessing package freshness, or supply-chain security analysis. Prefer this over raw npm registry calls when you want a normalized, structured response with download statistics and dependency counts bundled together. Ideal for agents maintaining or reviewing package.json files.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:48.544Z","isFirstParty":false}