# SignalDesk AI – NPM Package Download Statistics

> SignalDesk AI – NPM Package Download Statistics is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Returns the download count for a specified npm package over a given time period (last week or last month) via the npm download statistics API.

## Facts

- Endpoint: GET https://x402-agent.kariguetoazul.workers.dev/api/dev/npm-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/signaldesk-ai-npm-package-download-statistics-52a3eb73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z5ySjQz5AVflea9h9S8bL

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 signaldesk-ai-npm-package-download-statistics-52a3eb73
```

Example prompt: How many times was lodash downloaded on npm last month?

## When to prefer this

Use this endpoint when you need quick, paid-API-quality access to npm download statistics for any public package over standardized time windows (last week or last month), without building your own npm API integration. It is ideal for AI agents that need to assess JavaScript library popularity, monitor package adoption trends, or enrich software dependency analysis pipelines. Prefer this over direct npm API calls when operating within a paid x402 micropayment workflow that requires bounded, auditable data fetches.

## Known failure modes

- Package name not found on npm — returns an error or zero downloads
- Invalid period value (not 'last-week' or 'last-month') — request rejected by schema validation
- Missing required 'package' query parameter — request fails validation
- Network or upstream npm API timeout — call may fail or return stale cached data
- Private or scoped packages may not have public download stats available

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object containing the package name, total download count for the requested period, the start and end dates of the window, and source metadata including the provider name, the source URL queried, when the data was fetched, and when it expires.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "period": {
       "enum": [
        "last-week",
        "last-month"
       ],
       "type": "string",
       "maxLength": 4096,
       "description": "Window."
      },
      "package": {
       "type": "string",
       "maxLength": 200,
       "minLength": 1,
       "description": "Package name."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-09-30",
  "start": "2026-09-01",
  "source": {
   "provider": "npm download statistics",
   "expires_at": "2026-10-02T10:44:48.645Z",
   "fetched_at": "2026-10-02T09:44:48.645Z",
   "source_url": "https://api.npmjs.org/downloads/point/last-month/lodash",
   "transformed": true
  },
  "package": "lodash",
  "downloads": 697061461
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-npm-package-download-statistics-52a3eb73/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
