{"uid":"cap_EAEAjOdVTKCHj1OjmBTZ9","slug":"jsdelivr-cdn-stats-for-npm-packages-e16e0ec4","name":"jsDelivr CDN Stats for npm Packages","description":"jsDelivr CDN usage of an npm package over the last month: total hits, rank, bandwidth, daily hit series (last 14 days) and the top 10 versions by hits with their share. A popularity signal independent of npm download counts. $0.01 per package.","url":"https://intel.rallylive.ca/dev/jsdelivr-stats","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__MlY4IBmXb_rnwJzlGxsQ","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 jsDelivr CDN usage statistics for an npm package over the last month, including total hits, rank, bandwidth, daily hit series for the last 14 days, and top 10 versions by hit share.","exampleAgentPrompt":"Can you pull the jsDelivr CDN stats for the npm package 'lodash' — I want to see total hits, bandwidth, its CDN rank, the daily hit trend for the last 14 days, and which versions are getting the most traffic?","exampleUseCases":[{"title":"Evaluating library adoption before depending on it","prompt":"Before I add 'chart.js' as a dependency, can you check its jsDelivr CDN stats — specifically its total monthly hits, CDN rank, and which versions are most popular right now?"},{"title":"Comparing two packages by CDN popularity","prompt":"I'm deciding between 'axios' and 'got' for my project — can you get the jsDelivr usage stats for 'axios' so I can see its hit count, rank, and top versions as a popularity signal?"},{"title":"Monitoring daily CDN traffic trends for own package","prompt":"Can you fetch the jsDelivr stats for my npm package 'my-ui-kit' and show me the daily hit series for the last 14 days so I can see if traffic has been growing or dropping?"}],"resultDescription":"Returns a structured response with: total CDN hits over the last month, a popularity rank among all packages on jsDelivr, total bandwidth consumed, a daily hit series covering the last 14 days, and the top 10 package versions ranked by hit count along with their percentage share of total traffic.","failureModes":["Package not found on jsDelivr — returns empty or zero stats","Invalid or malformed package name — may return an error or no data","Package has zero CDN traffic — all metrics return zero","Rate limiting or payment failure — request rejected with 402 or 429","jsDelivr API upstream outage — endpoint may return 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need a CDN-based popularity signal for an npm package that is independent of npm download counts, which can be inflated by CI/CD pipelines. It is ideal for assessing browser/CDN adoption, identifying which versions are actively used in production, and spotting traffic trends over the past two weeks. Prefer this over npm download stats when evaluating front-end library adoption or CDN delivery patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:59.199Z","isFirstParty":false}