{"uid":"cap_l6nli_nXKnOREAZ9d1dKo","slug":"npm-package-download-statistics-lookup-b386a8d7","name":"NPM Package Download Statistics Lookup","description":"Download counts for any npm package over the last day/week/month. For dependency-intel, due-diligence, and market-research agents. Live from the npm registry stats API.","url":"https://store.agentexchange.work/npm/downloads","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":{"period":{"type":"string","description":"last-day|last-week|last-month"},"package":{"type":"string","description":"npm package name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"package":{"type":"string"},"downloads":{"type":"number"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b__KnzwjowL2l2eVLva7W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the download count for a specified npm package over a given time period (last-day, last-week, or last-month)","exampleAgentPrompt":"How many times was the 'axios' npm package downloaded last week?","exampleUseCases":null,"resultDescription":"A JSON object containing the package name, the requested period (last-day, last-week, or last-month), and the total download count as a number for that period.","failureModes":["Package not found on npm — returns error or zero count","Invalid period value (not last-day, last-week, or last-month) — may return error","Missing required 'package' query parameter — returns validation error","Payment failure via x402/USDC — 402 Payment Required response","Network timeout from upstream npm registry"],"whenToPreferThis":"Choose this endpoint when you need quick, pay-per-call npm download statistics without API key setup. Ideal for AI agents that need on-demand package popularity data for a single package lookup paid in USDC via x402 on Base, especially when no npm API credentials are available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:34.153Z","isFirstParty":false}