{"uid":"cap_iT3WHExWXJgsFwKbUHynZ","slug":"npm-package-health-check-c915fd96","name":"NPM Package Health Check","description":"Stable edge-hosted x402 utilities for autonomous agents.","url":"https://free-asset-radar-x402.besenok2018.workers.dev/api/x402/npm-package-health?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"latest":"5.x","package":"typescript","deprecated":false,"weeklyDownloads":1000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TtFQ-RRHvlo3kpX-Wt-e4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns health metadata for an npm package including latest version, deprecation status, and weekly download count","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Vetting a dependency before install","prompt":"Before I add 'moment' to my project, can you check if it's deprecated and what its current weekly download numbers look like on npm?"},{"title":"Validating TypeScript version in CI","prompt":"What's the latest version of the 'typescript' package on npm and is it still actively downloaded? I want to make sure we're not falling behind."},{"title":"Auditing a list of package dependencies","prompt":"Check npm health for 'express' — I need to know if it's deprecated and how popular it still is by weekly downloads before we recommend it to our team."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:41:44.792Z","isFirstParty":false,"canonicalSlug":"npm-package-health-check-c915fd96"}