{"uid":"cap_OyxmJHkQXAw05nG_2G_p1","slug":"npm-downloads-dc9e4fae","name":"npm-downloads","description":"npm download counts for a package: last day, week and month totals plus a 30-day daily series, from the public npm downloads API. Popularity and trend signals for dependency decisions. $0.01 per package.","url":"https://intel.rallylive.ca/data/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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n41fJbzsPQ1LeqjE8l6OD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns npm download counts for a package — last day, week, and month totals plus a 30-day daily time series — from the public npm downloads API.","exampleAgentPrompt":"What are the npm download stats for the 'chalk' package — I want to see last day, last week, last month totals and the 30-day daily trend to decide if it's still popular.","exampleUseCases":[{"title":"Evaluating a dependency before adoption","prompt":"Before we add 'date-fns' to our project, can you pull its npm download counts for the last day, week, and month plus the 30-day daily breakdown so I can see if it's widely used and trending up?"},{"title":"Comparing package popularity for a tech radar","prompt":"I'm building a tech radar report — can you get the npm download stats for 'zod' so I can see its current popularity and whether downloads are growing or shrinking over the last 30 days?"},{"title":"Monitoring a published package's adoption","prompt":"Can you check the npm download numbers for my package 'my-utility-lib' — I want the totals for the past day, week, and month plus the daily series so I can track how adoption is going?"}],"resultDescription":"Returns structured data including total download counts for the past day, past week, and past month, plus a 30-day daily time series array — giving both point-in-time popularity metrics and trend signals for the specified npm package.","failureModes":["Package not found on npm — returns an error or empty data for non-existent or misspelled package names","npm API unavailability — upstream npm registry downtime causes lookup failure","Rate limiting or network error from the upstream npm downloads API","Missing or malformed package name parameter causes a bad request error"],"whenToPreferThis":"Use this endpoint when you need quick, reliable npm download statistics for dependency evaluation, open-source health checks, or trend analysis. Prefer it over scraping npmjs.com manually or building your own npm API client. It is especially useful when an agent needs both aggregate counts (day/week/month) and a daily time series in a single call at low cost ($0.01 per lookup).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:19.949Z","isFirstParty":false}