# NPM Package Download Stats

> NPM Package Download Stats is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns the last-month npm download count for a specified npm package by name.

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/s/npm-download-stats
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-download-stats-a78ed236
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JPuScVj20nfpuK8RCECHk

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 npm-package-download-stats-a78ed236 -d '<json body>'
```

Example prompt: How many times was the 'axios' npm package downloaded last month?

## When to prefer this

Use this endpoint when you need a quick, single-call lookup of an npm package's last-month download count without setting up direct npm registry API access. Ideal for popularity checks, dependency audits, or enriching package metadata in automated workflows. Prefer this over scraping npmjs.com directly or building a full registry integration.

## Known failure modes

- Package not found on npm — may return empty or error JSON
- Invalid or misspelled package name returns no results
- Rate limiting or payment failure returns 402 or error response
- Network timeout if npm registry data is slow to respond

## How this service works

Last-month npm download count for package {q}. Query: ?q= Returns JSON.

## Output

A JSON object containing the last-month download count for the specified npm package, keyed by package name and download figure.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-download-stats-a78ed236/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
