{"uid":"cap_bZpa4FwOjHlt9sZLVDOPy","slug":"foundry-npm-package-info-0e3e2ebd","name":"Foundry NPM Package Info","description":"npm package info: latest version, license, dependencies count and weekly downloads. Input: a package name.","url":"https://minty-sprout.onrender.com/v1/npm-package?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"An npm package name"}}},"responseSchema":{"type":"json","example":{"name":"axios","license":"MIT","version":"1.21.0","homepage":"https://axios-http.com","repository":"git+https://github.com/axios/axios.git","description":"Promise based HTTP client for the browser and node.js","dependencies":4,"weekly_downloads":145579892}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ykSnpdFKWXYwxW0O_8fPH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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, dependency count, and weekly downloads for a given npm package name.","exampleAgentPrompt":"What's the latest version of lodash on npm, what license does it use, and how many weekly downloads does it get?","exampleUseCases":[{"title":"Vetting a new dependency","prompt":"Before I add react-query to my project, can you pull up its npm info — latest version, license, number of dependencies, and weekly downloads so I can see how actively it's used?"},{"title":"Checking OSS license compliance","prompt":"I need to make sure chalk uses an MIT or Apache license before we use it in our product — can you look it up on npm?"},{"title":"Comparing package popularity","prompt":"How many weekly downloads does moment get on npm right now? I want to compare it against day.js to decide which to use."}],"resultDescription":"A JSON object containing the package name, current latest version, SPDX license string, homepage URL, repository URL, short description, total number of dependencies, and weekly download count from npm.","failureModes":["Package name not found on npm registry — may return an error or empty result","Misspelled or scoped package names (e.g. missing @scope/ prefix) may fail to resolve","Data may be slightly stale if the npm registry cache has not refreshed","Very new packages with no download history may return zero weekly downloads"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured summary of an npm package's current state — version, license, popularity, and dependency footprint — without having to scrape the npm website or call the full npm registry API directly. Ideal for agents doing dependency vetting, license compliance checks, or package popularity comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:42.456Z","isFirstParty":false,"canonicalSlug":"foundry-npm-package-info-0e3e2ebd"}