npm Download Stats
npm.packages.downloadsRetrieve download counts for any npm package over specified time periods to analyze popularity, track adoption trends, and compare alternatives.
Instructions
Get download count for any npm package over a time period: last-day, last-week, last-month, last-year. Useful for measuring package popularity, adoption trends, and comparing alternatives (e.g. express: 92M/week).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | npm package name (e.g. express, lodash, typescript) | |
| period | No | Time period for download stats (default: last-week) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |