# Datakoot Package Versions Lookup

> Datakoot Package Versions Lookup 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).

Returns the release history and latest version of a package from npm, PyPI, or Cargo registries

## Facts

- Endpoint: POST https://x402.datakoot.com/api/package_versions?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-versions-lookup-f0ee753b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I9DyFlcIxutyp4IpNS_0g

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-versions-lookup-f0ee753b -d '<json body>'
```

Example prompt: What are the last 15 versions of react on npm, including their release dates?

## When to prefer this

Choose this endpoint when you need authoritative, up-to-date version history and release timestamps for packages across npm, PyPI, or Cargo from a single unified API. It is ideal for agents that need to audit dependencies, check for updates, or validate version strings without scraping individual registry websites. At $0.002 USDC per call via x402, it is cost-effective for programmatic agent use.

## Known failure modes

- Package not found in the specified ecosystem returns an empty or error response
- Wrong ecosystem specified for the package (e.g. npm package looked up in cargo) returns no results
- Misspelled package name returns no results
- Rate limit or payment failure returns a 402 or error without charging
- Limit parameter exceeding available versions returns only what exists

## 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, the latest version string, and an array of version objects each with a version string and ISO 8601 release timestamp, limited to the requested number of results.

## Request schema (JSON Schema)

```json
{
 "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."
  },
  "limit": {
   "type": "integer",
   "default": 15,
   "description": "Maximum number of results to return."
  },
  "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": "react",
  "latest": "19.3.0",
  "versions": [
   {
    "version": "0.0.0-experimental-278794d7-20261002",
    "released": "2026-10-02T17:46:45.775Z"
   },
   {
    "version": "19.3.0-canary-278794d7-20261002",
    "released": "2026-10-02T17:44:54.950Z"
   }
  ],
  "ecosystem": "npm"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-package-versions-lookup-f0ee753b/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)
