# NPM Package Weekly Download Count

> NPM Package Weekly Download Count is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Returns the weekly download count for a specified npm package

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net/data/npm
- Price: $0.003/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-weekly-download-count-5aaeadbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BZyg4HiHX8ljcvRA-UT3o

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-weekly-download-count-5aaeadbf
```

Example prompt: How many weekly downloads does the 'axios' npm package get right now?

## When to prefer this

Choose this endpoint when you need a quick, single-package weekly download count from npm without setting up direct npm registry API access. It is ideal for lightweight popularity checks, dependency audits, or monitoring a known package's adoption over time. Prefer this over scraping npm's website or integrating the full npm registry API when a simple numeric download count is sufficient.

## Known failure modes

- Package not found — returns an error or empty result if the package name is misspelled or does not exist on npm
- Missing pkg query parameter — request fails or returns an error if no package name is provided
- Rate limiting or upstream npm registry unavailability — may return a timeout or service error
- Scoped package name formatting issues — packages like @scope/name may need proper URL encoding

## How this service works

npm package weekly download count

## Output

Returns the weekly download count for the queried npm package, typically as a JSON object containing the package name and its number of downloads in the most recent week.

## 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",
     "properties": {
      "pkg": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-weekly-download-count-5aaeadbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
