{"uid":"cap__ZUU-1ZJHs32OsV-70LCH","slug":"datakoot-package-dependencies-lookup-6c945c1f","name":"Datakoot Package Dependencies Lookup","description":"48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.","url":"https://x402.datakoot.com/api/package_dependencies?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","description":"Exact package name as published in that registry, e.g. express for npm, requests for pypi, serde for cargo."},"version":{"type":"string","description":"Optional; defaults to the latest/default version"},"ecosystem":{"enum":["npm","pypi","cargo"],"type":"string","description":"Package registry to look in. One of: npm, pypi, cargo."}}},"responseSchema":{"type":"json","example":{"name":"serde","version":"1.0.229","ecosystem":"cargo","direct_dependencies":[{"name":"serde_core","optional":false,"requirement":"=1.0.229"},{"name":"serde_derive","optional":true,"requirement":"^1"}],"dev_dependency_count":0,"build_dependency_count":0,"direct_dependency_count":2,"required_dependency_count":1}},"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.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_ZA8kYRbkjarC-FfrPwkP6","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":"Returns the direct dependencies (and dependency counts) for a given package version in npm, PyPI, or Cargo registries.","exampleAgentPrompt":"What are the direct dependencies of the serde cargo crate version 1.0.229? Include which ones are optional and what version ranges they require.","exampleUseCases":[{"title":"Auditing a Python library's dependencies","prompt":"Can you look up the direct dependencies for the requests package on PyPI, latest version? I want to know what it pulls in and how many are required vs optional."},{"title":"Checking a Node.js package before adopting it","prompt":"Before I add express to my project, can you pull up its direct npm dependencies so I can see what it brings along?"},{"title":"Inspecting a Rust crate for supply chain review","prompt":"I'm doing a supply chain review — can you fetch the direct dependencies for tokio version 1.36.0 on Cargo and tell me how many are required versus optional?"}],"resultDescription":"A JSON object with the package name, resolved version, ecosystem, a list of direct dependencies (each with name, optional flag, and version requirement string), and counts for direct, required, dev, and build dependencies.","failureModes":["Package not found in the specified registry — returns error or empty result","Invalid ecosystem value (not npm, pypi, or cargo) — validation error","Specified version does not exist — version not found error","Malformed package name — registry lookup failure","Network or upstream registry timeout — service unavailable error","Payment failure via x402 — call not charged, no result returned"],"whenToPreferThis":"Use this endpoint when you need structured, machine-readable dependency data for a specific package across npm, PyPI, or Cargo registries — especially when you want direct dependency counts broken down by type (required, optional, dev, build). Prefer this over scraping registry websites or using language-specific CLI tools when you need a uniform API across ecosystems. The per-call x402 micropayment model means no API key setup is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:40:29.283Z","isFirstParty":false,"canonicalSlug":"datakoot-package-dependencies-lookup-6c945c1f"}