npm downloads API
Download counts for one npm package, as a total or a per-day series.
Ask your agent
“Call npm/downloads with name requests and summarize what comes back.”
Works in any MCP client connected to https://data.openkrill.app/mcp. Install in one line.
- Path
- npm/downloads
- MCP tool
- call_endpoint
- Credits
- 1
- Cache
- 30 min
Parameters
| namestring, required | Package name, such as requests or better-sqlite3 |
|---|---|
| periodstring, optional | day, week or month, default week |
| seriesstring, optional | true returns one row per day instead of a total |
Response
data.resources[] uses the same keys as every other platform: author, engagement, metadata, with npm-only fields under extras. A failed upstream call is never billed.