{"uid":"cap_htw_3VnBJsZ77plHsvMpC","slug":"npm-package-info-lookup-931fccdd","name":"npm Package Info Lookup","description":"npm package downloads, current version, and license — latest version, license, and last week's download count for an npm package. Parameter: ?name=<package> (e.g. express, or @scope/name for a scoped package).","url":"https://x402-seller-0ay3.onrender.com/api/npm/package","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":["name"],"properties":{"name":{"type":"string","description":"npm package name (e.g. express, @scope/name)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"express","license":"MIT","version":"5.2.1","fetched_at":"2026-09-01T12:00:00.000Z","description":"Fast, unopinionated, minimalist web framework","weekly_downloads":35000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c9uS7sdjbdubqyySH_JYu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest version, license, and last week's download count for any npm package by name.","exampleAgentPrompt":"What's the latest version, license, and last week's download count for the express npm package?","exampleUseCases":[{"title":"Checking package popularity before adopting","prompt":"How many downloads did lodash get last week on npm, and what license does it use? I want to know if it's widely adopted before adding it to our project."},{"title":"Verifying a dependency's current version","prompt":"What's the current published version of the typescript npm package? I want to check if we're behind on our dependency."},{"title":"Auditing license compliance for a scoped package","prompt":"Can you look up the license for the @angular/core npm package? I need to make sure it's MIT or Apache before we use it commercially."}],"resultDescription":"A JSON object containing the package name, latest version string, license identifier, weekly download count from the previous week, a short description of the package, and a fetched_at timestamp indicating when the data was retrieved.","failureModes":["Package not found — returns an error if the name does not exist on the npm registry","Invalid package name format — malformed scoped names (e.g. missing slash) may cause lookup failure","Network timeout — if the npm registry is slow or unreachable, the request may fail","Rate limiting — underlying registry throttling could return errors under heavy load"],"whenToPreferThis":"Use this endpoint when you need quick, structured npm package metadata — version, license, and download popularity — without setting up direct npm registry API access or an API key. It is especially useful for agents doing dependency auditing, license compliance checks, or popularity assessments for JavaScript/Node.js packages, including scoped packages like @scope/name.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:38:53.748Z","isFirstParty":false}