Get npm package download statistics for a specified time period. Returns total download counts with start/end dates for single packages, scoped packages, or bulk queries (up to 128 packages). Supports preset periods (last-day, last-week, last-month, last-year) or custom date ran…
periodRequiredstringTime period for downloads. Supported formats: (1) Preset periods: 'last-day', 'last-week', 'last-month', 'last-year'. (2) Explicit date range: 'YYYY-MM-DD:YYYY-MM-DD' (max 365 days for bulk queries, 18 months otherwise). Data available from 2015-01-10 onwards.
packageRequiredstringName of the npm package to fetch download counts for. Supports single packages (e.g., 'express') and scoped packages (e.g., '@babel/core'). For multiple packages, query them individually as the bulk query format returns a different response structure.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.