# Datakoot Package Downloads

> Datakoot Package Downloads 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-10).

Returns the last-month download count for a named package in npm, PyPI, or Cargo registries

## Facts

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

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-downloads-e976796a -d '<json body>'
```

Example prompt: How many downloads did the 'express' package get last month on npm?

## When to prefer this

Use this endpoint when you need a quick, single-call lookup of last-month download statistics for a specific package in npm, PyPI, or Cargo. It is ideal for popularity checks, dependency vetting, and trend monitoring without requiring a registry API key. At $0.002 USDC per successful call it is cost-effective for spot checks; use the free MCP tier (100 calls/day) for light workloads.

## Known failure modes

- Package not found in the specified ecosystem — returns error or empty result
- Invalid ecosystem value supplied (not npm, pypi, or cargo) — validation error
- Misspelled or non-existent package name — no data returned
- Payment failure via x402 — call is not charged and no result returned
- Registry data temporarily unavailable — upstream timeout or error

## 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 ecosystem name (e.g. 'npm') and the integer count of downloads in the last calendar month (e.g. {"ecosystem":"npm","last_month":738139197}).

## 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."
  },
  "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": {
  "ecosystem": "npm",
  "last_month": 738139197
 }
}
```

## More

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