{"tool":"deps-tree","title":"DependencyPulse Dependency Tree","what":"Bounded transitive dependency graph of an npm package version: every node with the declared range, the resolved version (highest published version satisfying the range, as a fresh install without a lockfile would pick), depth, parent, deprecation, and the OSV advisories that match it. Limits are enforced and reported: nothing is silently cut.","endpoint":"https://yruz.one/api/deps/tree","methods":["GET with query parameters","POST with a JSON body (same fields)"],"price":{"model":"fixed","usdc":"0.01"},"params":[{"name":"name","required":true,"description":"npm package, e.g. express","example":"express"},{"name":"version","required":false,"description":"version or range (default latest)","example":null},{"name":"depth","required":false,"description":"levels below the package, 1-4 (default 3)","example":"2"},{"name":"max_nodes","required":false,"description":"graph size cap, 10-250 (default 150)","example":null},{"name":"optional","required":false,"description":"1 to follow optionalDependencies (default 0)","example":null}],"valid_request":{"get":"https://yruz.one/api/deps/tree?name=express&depth=2","post":{"url":"https://yruz.one/api/deps/tree","body":{"name":"express","depth":"2"}}},"how_to_pay":["1. Send the request without payment: the answer is HTTP 402 with the exact price (x402 v2 in the PAYMENT-REQUIRED header, x402 v1 in the JSON body).","2. Sign one offer of \"accepts\" with an x402 client (USDC on Base eip155:8453 or on Solana mainnet; the facilitator pays the network fee).","3. Resend the identical request (same method, parameters and body) with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1).","4. The answer carries the receipt in PAYMENT-RESPONSE. Any changed parameter needs a new 402."],"response_shape":{"product":"string","result":{"product":"string","task":"string","task_version":"number","api_version":"string","data":{"root":"string","resolution":"string","summary":{"nodes":"number","edges_seen":"number","max_depth":"number","affected_nodes":"number","unique_advisories":"number","unresolved":"number","truncated":"boolean","deeper_dependencies_unchecked":"boolean"},"nodes":[{"id":"string","name":"string","version":"string","depth":"number","requested":"string","via":"null","type":"string","deprecated":"null","advisories":["…"],"advisory_status":"string"}],"affected":[],"advisories":[],"unresolved":[],"note":"string"},"provenance":[{"source":"string","name":"string","source_url":"string","record_urls":[],"retrieved_at":"string","retrieved_until":"string","served_from_cache":"boolean","licence":"string","attribution":"string"}],"data_as_of":"string","freshness_status":"string","coverage":"null","partial":"boolean","warnings":["string"],"usage":{"units":"number","unit":"string","records":"number","upstream_requests":"number","retries":"number","cache_hits":"number","runtime_ms":"number"}},"payment":{"payment_id":"string","transaction":"string"}},"refusals":{"400":"invalid input: the message names the field and the expected format; nothing is charged","402":"payment required, or the payment was refused (reason in \"error\"); nothing is charged","403/404":"not your item, or the asked item does not exist; nothing is charged","409/422":"not allowed right now (state or destination safety); nothing is charged","503":"a source or the payment rail is unavailable; nothing is charged, retry after Retry-After"},"mcp":{"server":"https://yruz.one/mcp/x402","payment":"params._meta[\"x402/payment\"] = PaymentPayload"},"related":{"tools":[{"tool":"deps-check","url":"https://yruz.one/api/deps/check","why":"advisories of one package version","usd":"0.005","how":"https://yruz.one/api/instructions?tool=deps-check"},{"tool":"deps-batch","url":"https://yruz.one/api/deps/batch","why":"many package versions at 0.002 each","usd":"0.01","how":"https://yruz.one/api/instructions?tool=deps-batch"},{"tool":"deps-audit","url":"https://yruz.one/api/deps/audit","why":"a whole lockfile","usd":"0.025","how":"https://yruz.one/api/instructions?tool=deps-audit"}],"more_x402_apis":{"402index":"https://402index.io","x402scan":"https://www.x402scan.com","agent402":"https://agent402.tools","x402_protocol":"https://www.x402.org"},"all_yruz_tools":"https://yruz.one/api/instructions"}}