# BRAINIAC Cybersecurity Intelligence — Dependency Tree

> BRAINIAC Cybersecurity Intelligence — Dependency Tree is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-17).

Returns the full direct and transitive dependency tree for a given package version across major ecosystems (NPM, PyPI, Maven, etc.)

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/cybersecurity-intelligence/dependency-tree?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-cybersecurity-intelligence-dependency-tree-5ad6ffdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JqN-bms2nZc1BjX8DbPs2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-cybersecurity-intelligence-dependency-tree-5ad6ffdf -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Return direct and transitive dependencies, dependency versions and available dependency metadata using Google deps.dev API.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "version": {
   "type": "string"
  },
  "ecosystem": {
   "enum": [
    "GO",
    "RUBYGEMS",
    "NPM",
    "CARGO",
    "MAVEN",
    "PYPI",
    "NUGET"
   ],
   "type": "string"
  },
  "packageName": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
     }
    ]
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-cybersecurity-intelligence-dependency-tree-5ad6ffdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
