{"uid":"cap_PxVwhHzfUn6YmETzyiGU6","slug":"npm-package-download-statistics-lookup-ced6ca18","name":"NPM Package Download Statistics Lookup","description":"Download counts of an npm package for the last day, week and month, from the official npm registry API. Use to judge how widely a dependency is used.","url":"https://agent-data-tools.revmesh2074.workers.dev/npm/downloads?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["package"],"properties":{"package":{"type":"string","description":"Package name, e.g. react or @scope/name"}}},"responseSchema":{"type":"object","properties":{"lastDay":{"type":"number"},"package":{"type":"string"},"lastWeek":{"type":"number"},"lastMonth":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-fX8VUJsmsn1L4SYoEHAx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily, weekly, and monthly download counts for a given npm package","exampleAgentPrompt":"How many downloads did the 'hono' npm package get last day, last week, and last month?","exampleUseCases":[{"title":"Checking library popularity before adoption","prompt":"Before we add it to our project, how popular is the 'zod' npm package — can you show me its download counts for the past day, week, and month?"},{"title":"Comparing framework usage trends","prompt":"I'm trying to decide between Fastify and Express — can you pull the npm download stats for 'fastify' so I can see how many installs it gets per day, week, and month?"},{"title":"Monitoring open source project growth","prompt":"Can you check how many times the 'ai' npm package has been downloaded recently — I want to see the daily, weekly, and monthly numbers to track its growth."}],"resultDescription":"Returns a JSON object with the package name and three download count fields: lastDay (downloads in the past 24 hours), lastWeek (downloads in the past 7 days), and lastMonth (downloads in the past 30 days), all as integers.","failureModes":["Package not found on npm registry returns an error or zero counts","Misspelled or scoped package names (e.g. missing @scope/ prefix) may return no results","npm registry API downtime may cause failures","Rate limiting or upstream unavailability from the npm stats API"],"whenToPreferThis":"Use this endpoint when you need quick, structured npm download statistics for a specific package without setting up an npm registry API key. It is ideal for agents assessing library popularity, tracking adoption trends, or comparing package usage, and costs only $0.001 USDC per call with no authentication required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:18:18.425Z","isFirstParty":false,"canonicalSlug":"npm-package-download-statistics-lookup-ced6ca18"}