# NPM Package Download Statistics Lookup

> NPM Package Download Statistics Lookup is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns the download count for a specified npm package over a given time period (last-day, last-week, or last-month)

## Facts

- Endpoint: GET https://store.agentexchange.work/npm/downloads
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-download-statistics-lookup-b386a8d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l6nli_nXKnOREAZ9d1dKo

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-b386a8d7
```

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

## When to prefer this

Choose this endpoint when you need quick, pay-per-call npm download statistics without API key setup. Ideal for AI agents that need on-demand package popularity data for a single package lookup paid in USDC via x402 on Base, especially when no npm API credentials are available.

## Known failure modes

- Package not found on npm — returns error or zero count
- Invalid period value (not last-day, last-week, or last-month) — may return error
- Missing required 'package' query parameter — returns validation error
- Payment failure via x402/USDC — 402 Payment Required response
- Network timeout from upstream npm registry

## How this service works

Download counts for any npm package over the last day/week/month. For dependency-intel, due-diligence, and market-research agents. Live from the npm registry stats API.

## Output

A JSON object containing the package name, the requested period (last-day, last-week, or last-month), and the total download count as a number for that period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "period": {
       "type": "string",
       "description": "last-day|last-week|last-month"
      },
      "package": {
       "type": "string",
       "description": "npm package name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "package": {
       "type": "string"
      },
      "downloads": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-download-statistics-lookup-b386a8d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
