{"uid":"cap_JqN-bms2nZc1BjX8DbPs2","slug":"brainiac-cybersecurity-intelligence-dependency-tree-5ad6ffdf","name":"BRAINIAC Cybersecurity Intelligence — Dependency Tree","description":"Return direct and transitive dependencies, dependency versions and available dependency metadata using Google deps.dev API.","url":"https://www.brainiac.software/api/v1/cybersecurity-intelligence/dependency-tree?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"version":{"type":"string"},"ecosystem":{"enum":["GO","RUBYGEMS","NPM","CARGO","MAVEN","PYPI","NUGET"],"type":"string"},"packageName":{"type":"string"}}},"responseSchema":{"type":"json","example":{"input":{"version":"4.18.0","ecosystem":"NPM","packageName":"express"},"sources":[{"url":"https://api.deps.dev/v3/systems/NPM/packages/express/versions/4.18.0/dependencies","source":"Google deps.dev API","retrievedAt":"2026-10-29T12:00:00.000Z"}],"limitations":["Dependency tree data is from deps.dev.","Only direct and transitive dependencies in deps.dev are included.","…"],"retrievedAt":"2026-10-29T12:00:00.000Z","dependencyTree":{"result":{"name":"express","system":"NPM","version":"4.18.0","dependencies":[{"name":"accepts","system":"NPM","version":"1.3.8"}]}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aka0XWlW_YG8zTTUcBL4J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the full direct and transitive dependency tree for a given package version across major ecosystems (NPM, PyPI, Maven, etc.)","exampleAgentPrompt":"Can you fetch the full dependency tree for the NPM package express version 4.18.0, so I can see all of its direct and transitive dependencies?","exampleUseCases":[{"title":"Supply chain security audit","prompt":"Pull the full dependency tree for lodash version 4.17.21 on NPM — I need to see every transitive dependency it brings in so I can check for known vulnerable packages."},{"title":"License compliance review","prompt":"Get me the complete dependency graph for the PyPI package requests at version 2.31.0, including all nested dependencies, so I can audit what third-party libraries we're pulling in."},{"title":"Cargo crate dependency mapping","prompt":"Show me all direct and transitive dependencies for the Cargo crate tokio version 1.35.0 — I want to understand the full dependency footprint before we ship."}],"resultDescription":"Returns a JSON object containing the full hierarchical dependency tree for the requested package, including each dependency's name, ecosystem, and version. Also includes the data source URL (Google deps.dev), retrieval timestamp, and a list of known limitations (e.g., incomplete coverage for some ecosystems).","failureModes":["Package not found in the specified ecosystem — returns empty or error result","Version string does not exist for the package — may return no dependency data","Ecosystem not fully supported by deps.dev — partial or missing transitive dependency data","Invalid ecosystem enum value — request rejected with validation error","deps.dev upstream unavailable — service may time out or return stale data"],"whenToPreferThis":"Use this endpoint when you need programmatic, structured access to a package's full dependency graph without setting up a local package manager or toolchain. It is especially useful for security audits, license compliance checks, and software composition analysis (SCA) across multiple ecosystems in a single API-compatible interface. It is backed by Google's deps.dev dataset, making it reliable for well-known packages. Prefer this over manual package manager queries when you need a consistent, language-agnostic API that covers NPM, PyPI, Maven, Cargo, RubyGems, Go modules, and NuGet in one place.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:11.108Z","isFirstParty":false,"canonicalSlug":"brainiac-cybersecurity-intelligence-dependency-tree-5ad6ffdf"}