{"uid":"cap_t77gd34qTOJrSLY58ISGW","slug":"payload402-npm-package-download-stats-6f66d127","name":"payload402 NPM Package Download Stats","description":"npm package download velocity: last-week and last-month download counts plus latest version publish date. For agents comparing dependency popularity before install.","url":"https://payload402.edgebytenet.workers.dev/npm/stats?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["package"],"properties":{"package":{"type":"string","description":"npm package name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"note":"Download counts from npm public API; not a security or quality score","source":"npm-registry","package":"lodash","downloads":{"lastWeek":25000000,"lastMonth":100000000},"publishedAt":"2020-02-20T15:00:00.000Z","latestVersion":"4.17.21"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1z5UoGKpFwRcDXjPUir29","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns last-week and last-month download counts plus the latest version and publish date for any npm package","exampleAgentPrompt":"Before I add it to the project, can you check how many weekly and monthly downloads 'lodash' gets on npm and when its latest version was published?","exampleUseCases":[{"title":"Compare dependency popularity before install","prompt":"I'm deciding between 'date-fns' and 'moment' for date handling — can you pull the npm download stats for both so I can see which one is more popular?"},{"title":"Validate package health in CI pipeline","prompt":"As part of our automated dependency review, check the npm download counts and latest publish date for 'axios' so we can flag if it looks abandoned or low-traffic."},{"title":"Research unfamiliar package before adoption","prompt":"I found this package called 'zod' referenced in a tutorial — how many downloads does it get per week on npm and when was its latest version released?"}],"resultDescription":"A JSON object containing the npm package name, source label ('npm-registry'), last-week and last-month download counts as integers, the latest published version string, and the ISO 8601 publish date of that version, plus a note clarifying these are download counts and not quality or security scores.","failureModes":["Package not found on npm — returns an error or empty result","Misspelled package name yields no data","npm public API rate limiting or downtime causes failure","Scoped package names (e.g. @org/pkg) may require exact formatting"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to quickly gauge npm package popularity or freshness before recommending or installing a dependency. It is ideal for automated dependency triage pipelines, coding agents comparing alternatives, or any workflow needing a lightweight, fast signal on package adoption — without needing the full npm registry API or authentication.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T19:26:37.117Z","isFirstParty":false,"canonicalSlug":"payload402-npm-package-download-stats-6f66d127"}