{"uid":"cap_xbTax8XDvj1d9lzdsrAiB","slug":"agentservices-npm-package-stats-f2a29dd0","name":"AgentServices NPM Package Stats","description":"Paid data APIs for AI agents. Crypto market data, DeFi yields, IP geolocation, dispute resolution, marketing intelligence. Powered by x402 micropayments on Base.","url":"https://agentservices.to/v1/npm-stats/%7Bpackage%7D","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":["DELETE","GET","HEAD"],"type":"string"},"pathParams":{"type":"object","required":["package"],"properties":{"package":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}},"routeTemplate":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5lZCEqLb6xWR-mBgd5kzP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns download statistics and metadata for a given npm package by package name","exampleAgentPrompt":"Can you look up the npm download stats for the 'lodash' package and tell me how popular it is?","exampleUseCases":[{"title":"Evaluating library popularity before adopting","prompt":"Before we add 'date-fns' as a dependency, can you check how many downloads it gets on npm so I can gauge how widely adopted it is?"},{"title":"Tracking competitor package growth","prompt":"I want to see the download numbers for 'webpack' on npm — pull the stats so I can compare it against our bundler's adoption."},{"title":"Vetting an open source dependency","prompt":"We're considering using 'zod' for schema validation — can you fetch its npm download stats to see how much traction it has in the community?"}],"resultDescription":"Returns download statistics for the specified npm package, including total downloads, weekly and/or monthly download counts, and potentially package metadata such as version info and publication details — giving the agent a quantitative measure of a package's popularity and usage.","failureModes":["Package name not found or misspelled — returns 404 or empty result","Package name contains special characters that aren't URL-encoded — may cause routing errors","Payment failure via x402 micropayment — call is rejected before data is returned","Rate limiting or quota exceeded — returns 429 error","Private or unlisted packages may not have public stats available"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically fetch npm download statistics for a specific package, especially in workflows involving dependency vetting, open-source library research, competitive analysis of JavaScript packages, or automated reporting on package adoption trends. Prefer this over manual npm website lookups when the data needs to be machine-readable and integrated into a larger agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T06:30:25.732Z","isFirstParty":false}