{"uid":"cap_rQpIzsVU7Jvd-dsXf5ovq","slug":"npm-package-weekly-download-count-a68537b4","name":"npm Package Weekly Download Count","description":"npm package weekly download count","url":"https://pyfile-agent.taile3ff35.ts.net:10000/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_39FS19OHQbAQOo-MhjDDG","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 given npm package by name","exampleAgentPrompt":"How many weekly downloads does the 'axios' npm package get?","exampleUseCases":[{"title":"Check library popularity before adopting","prompt":"Before we add it to our project, can you check how many weekly downloads 'zod' gets on npm? I want to make sure it's widely used enough."},{"title":"Compare two packages by download volume","prompt":"How many weekly downloads does 'moment' get on npm? I'm deciding between it and 'date-fns' for our codebase."},{"title":"Monitor open source package traction","prompt":"Can you pull the current weekly download count for my npm package 'my-cli-tool' so I can track how it's growing?"}],"resultDescription":"Returns the weekly download count for the specified npm package, indicating how many times it was downloaded in the past week. The response is a data object containing the package name and its numeric download figure.","failureModes":["Package name not provided — missing required 'pkg' query parameter results in an error response","Package not found — if the package name doesn't exist on npm, returns an error or zero count","Network or upstream npm registry unavailability causing timeout or failure","Typo in package name returning incorrect or null results"],"whenToPreferThis":"Use this endpoint when you need a quick, single-call lookup of npm weekly download counts without setting up direct npm registry API access. Ideal for agents that need to assess package popularity, compare adoption levels, or track growth over time for a known package name.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:55:48.166Z","isFirstParty":false}