{"uid":"cap_BZyg4HiHX8ljcvRA-UT3o","slug":"npm-package-weekly-download-count-5aaeadbf","name":"NPM Package Weekly Download Count","description":"npm package weekly download count","url":"https://pyfile-agent.taile3ff35.ts.net/data/npm","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","properties":{"pkg":{"type":"string"}}}}},"output":{"type":"object"}}},"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_wInp_vzWcO4Yk9APakt85","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 the weekly download count for a specified npm package","exampleAgentPrompt":"How many weekly downloads does the 'axios' npm package get right now?","exampleUseCases":[{"title":"Assess library popularity before adopting","prompt":"Before I add 'zod' as a dependency in my project, can you check how many weekly downloads it gets on npm so I know how widely used it is?"},{"title":"Compare package download trends","prompt":"I'm choosing between 'dayjs' and 'moment' for date handling — can you pull the weekly download count for 'dayjs' on npm so I can compare their popularity?"},{"title":"Monitor open source project growth","prompt":"Can you check the weekly npm download count for 'my-open-source-lib' so I can see how our user adoption is trending this week?"}],"resultDescription":"Returns the weekly download count for the queried npm package, typically as a JSON object containing the package name and its number of downloads in the most recent week.","failureModes":["Package not found — returns an error or empty result if the package name is misspelled or does not exist on npm","Missing pkg query parameter — request fails or returns an error if no package name is provided","Rate limiting or upstream npm registry unavailability — may return a timeout or service error","Scoped package name formatting issues — packages like @scope/name may need proper URL encoding"],"whenToPreferThis":"Choose this endpoint when you need a quick, single-package weekly download count from npm without setting up direct npm registry API access. It is ideal for lightweight popularity checks, dependency audits, or monitoring a known package's adoption over time. Prefer this over scraping npm's website or integrating the full npm registry API when a simple numeric download count is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:49.942Z","isFirstParty":false}