{"uid":"cap_behKxsRFT3JKeOg0lF5Ou","slug":"npm-package-download-statistics-87341f52","name":"NPM Package Download Statistics","description":"Machine-payable data APIs for AI agents — 35 endpoints across web search, on-chain reads, trading data, and AI-visibility. Pay per call in USDC via x402 on Base. No API keys, no signup.","url":"https://x402-agent-store.rileycraig14.workers.dev/npm/downloads?utm_source=zero.xyz","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":{"type":"json","example":{"period":"last-week","package":"react","downloads":25000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/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_wveKaYTZPMzj7BUJBnBKY","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 time period (last-day, last-week, or last-month), and the total download count as a number for that period.","failureModes":["Unknown or misspelled package name returns an error or zero downloads","Invalid period value (not last-day, last-week, or last-month) may cause a bad request error","Missing required 'package' query parameter returns a validation error","Payment of 0.001 USDC via x402 on Base must succeed or the request is rejected with a 402 status"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call download count for any npm package without needing an API key or account. Ideal for AI agents that need to assess package popularity or usage trends on demand, especially when comparing libraries or checking adoption metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:04:28.504Z","isFirstParty":false,"canonicalSlug":"npm-package-download-statistics-87341f52"}