# Datakoot Package Info

> Datakoot Package Info is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Looks up metadata for a software package on npm, PyPI, or Cargo by name, returning version, license, repository, description, and maintainers.

## Facts

- Endpoint: POST https://x402.datakoot.com/api/package_info?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-package-info-3a9ae0fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LRA8AeYBgEKNJDAbtEp5l

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 datakoot-package-info-3a9ae0fb -d '<json body>'
```

Example prompt: What version, license, and repository does the 'requests' package on PyPI have?

## When to prefer this

Use this endpoint when you need quick, structured metadata about a specific package on npm, PyPI, or Cargo — especially version, license, and repository — without needing vulnerability scan data or deep security analysis. It is a lightweight, low-cost ($0.002 USDC) lookup suitable for dependency auditing, license compliance, or enriching package references in documentation or pipelines.

## Known failure modes

- Package not found in the specified ecosystem — returns error or empty response
- Invalid ecosystem value (not npm, pypi, or cargo) — schema validation error
- Package name typo leads to not-found response
- Payment failure via x402 — call is not charged and not executed
- Rate limit exceeded on free MCP tier (100 calls/day)

## How this service works

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.

## Output

A JSON object containing the package name, ecosystem, current version, SPDX license string, homepage URL (if any), repository URL, human-readable description, and a list of maintainers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "Package/crate name"
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi",
    "cargo"
   ],
   "type": "string",
   "description": "Package registry to look in. One of: npm, pypi, cargo."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "requests",
  "license": "Apache-2.0",
  "version": "2.34.2",
  "homepage": null,
  "ecosystem": "pypi",
  "repository": "https://github.com/psf/requests",
  "description": "Python HTTP for Humans.",
  "maintainers": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-package-info-3a9ae0fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
