{"uid":"cap_LQjBycL_TbaWfeFqFQZq2","slug":"api-x402node-dev-b094ea06","name":"NPM Package Dependency Tree Analyzer","description":"Get NPM package dependency tree with counts (runtime, dev, peer, optional) and version constraints. Use ?package=react and version=18.2.0. Built for dependency audit and bundle bloat analysis.","url":"https://api.x402node.dev/npm/deps","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":{"version":{"type":"string","description":"Version (optional)"}}}},"additionalProperties":false}}},"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_H18XLEIgQqekzWcLq31Kl","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 a full dependency tree for an NPM package with counts and version constraints across runtime, dev, peer, and optional dependency categories.","exampleAgentPrompt":"Can you pull the full dependency tree for react version 18.2.0 and tell me the counts broken down by runtime, dev, peer, and optional deps, along with their version constraints?","exampleUseCases":null,"resultDescription":"A structured dependency tree for the specified npm package and version, including categorized counts (runtime, dev, peer, optional) and version constraint strings for each dependency.","failureModes":["Package not found on npm registry — returns error indicating unknown package","Invalid or non-existent version specified — returns version-not-found error","Missing required query parameters (package or version) — returns 400 bad request","Payment not included or invalid — returns 402 Payment Required","Network timeout fetching registry data — returns 503 or timeout error"],"whenToPreferThis":"Use this endpoint when you need a structured, categorized breakdown of an npm package's dependencies — especially for dependency auditing, bundle bloat analysis, or understanding peer/optional dependency requirements. Prefer this over manually parsing package.json when you need counts and version constraints in one call without setting up a local npm environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:54:56.839Z","isFirstParty":false}