{"uid":"cap_z3PYSc8SuO6rNpTayrs0I","slug":"npm-package-info-5a7fb963","name":"npm Package Info","description":"An npm package's latest version, description, license, repository, dependencies, peer dependencies, TypeScript types, size, publish dates, deprecation and weekly downloads. Use to choose or audit a JavaScript dependency.","url":"https://bess-x402.onrender.com/v1/dev/npm?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["package"],"properties":{"package":{"type":"string","description":"Package name, e.g. react or @types/node"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OSea2-_oJ-cCr-vZt8PPL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches metadata for an npm package including version, description, license, dependencies, TypeScript types, size, publish dates, deprecation status, and weekly downloads.","exampleAgentPrompt":"Can you pull up the npm package info for 'zod' — I want to know the latest version, its license, whether it has TypeScript types, and how many weekly downloads it gets?","exampleUseCases":[{"title":"Auditing a project's dependencies","prompt":"I'm reviewing my project's package.json and want to check if 'lodash' is deprecated, what license it uses, and how actively it's maintained — can you look it up on npm?"},{"title":"Choosing between JavaScript libraries","prompt":"I'm trying to decide between using 'date-fns' and 'dayjs' — can you fetch their npm metadata so I can compare their weekly downloads, sizes, and TypeScript support?"},{"title":"Checking TypeScript compatibility","prompt":"Before I add '@tanstack/react-query' to my project, can you check if it ships with TypeScript types and what version is currently on npm?"}],"resultDescription":"Returns the npm package's latest version, description, license type, repository URL, direct dependencies, peer dependencies, TypeScript types availability, bundle size, first and last publish dates, deprecation status, and weekly download count.","failureModes":["Package name not found — returns 404 or empty result if the package doesn't exist on npm","Scoped package names (e.g. @types/node) must be URL-encoded or passed correctly — malformed names cause errors","Network or npm registry outage may cause timeouts","Very new packages may have incomplete metadata (no downloads, no size info)"],"whenToPreferThis":"Use this endpoint when an AI agent needs to evaluate, audit, or compare npm packages — especially for checking latest version, license compliance, TypeScript support, deprecation status, or download popularity. Prefer this over scraping npmjs.com or the full npm registry API when you need a concise, structured summary for decision-making.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:05:33.914Z","isFirstParty":false,"canonicalSlug":"npm-package-info-5a7fb963"}