# NPM Package Download Counts

> NPM Package Download Counts 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 npm package download counts for the last week and last month, serving as an adoption signal for a given package.

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/npm-downloads
- 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-counts-3f9cf53b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tA7Xq_VVXR-iCAkc6wtwe

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-counts-3f9cf53b -d '<json body>'
```

Example prompt: How many times has the 'express' npm package been downloaded in the last week and last month? I want to gauge its adoption.

## When to prefer this

Use this endpoint when you need a quick, quantitative adoption signal for a specific npm package — especially useful for comparing package popularity, vetting dependencies, or monitoring growth trends. Prefer this over scraping npm manually or using the full npm API when you only need weekly and monthly download counts.

## Known failure modes

- Package not found on npm — may return empty or error JSON
- Invalid or missing pkg query parameter — likely returns an error
- Package exists but has zero downloads — returns zero counts
- Rate limiting or payment failure for the x402 micropayment

## How this service works

npm download counts for a package (?pkg=express) over last week and last month — real adoption signal. Returns JSON.

## Output

A JSON object containing the npm package name along with its download counts for the past week and past month, providing a real adoption signal for the queried package.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-download-counts-3f9cf53b/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)
