# NPM Package Download Statistics Lookup

> NPM Package Download Statistics Lookup is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Returns daily, weekly, and monthly download counts for a given npm package

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/npm/downloads?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-download-statistics-lookup-ced6ca18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PxVwhHzfUn6YmETzyiGU6

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-statistics-lookup-ced6ca18
```

Example prompt: How many downloads did the 'hono' npm package get last day, last week, and last month?

## When to prefer this

Use this endpoint when you need quick, structured npm download statistics for a specific package without setting up an npm registry API key. It is ideal for agents assessing library popularity, tracking adoption trends, or comparing package usage, and costs only $0.001 USDC per call with no authentication required.

## Known failure modes

- Package not found on npm registry returns an error or zero counts
- Misspelled or scoped package names (e.g. missing @scope/ prefix) may return no results
- npm registry API downtime may cause failures
- Rate limiting or upstream unavailability from the npm stats API

## How this service works

Download counts of an npm package for the last day, week and month, from the official npm registry API. Use to judge how widely a dependency is used.

## Output

Returns a JSON object with the package name and three download count fields: lastDay (downloads in the past 24 hours), lastWeek (downloads in the past 7 days), and lastMonth (downloads in the past 30 days), all as integers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "package"
 ],
 "properties": {
  "package": {
   "type": "string",
   "description": "Package name, e.g. react or @scope/name"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lastDay": {
   "type": "number"
  },
  "package": {
   "type": "string"
  },
  "lastWeek": {
   "type": "number"
  },
  "lastMonth": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-download-statistics-lookup-ced6ca18/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
