# Npm download counts

Download totals of one or more npm packages for a period: last-day, last-week, last-month, last-year or a date range of 18 months at most. Needs packages.

Download totals of one or more npm packages for a period: last-day, last-week, last-month, last-year or a date range of 18 months at most. A proxy for developer adoption, e.g. to compare frameworks. Comma-separate up to 128 unscoped packages for a comparison (365 days at most); a scoped package such as @types/node must be asked alone. Answers 404 for an unknown single package.

- Tool ID: `npm/downloads`
- Name in the catalog: npm download counts
- Provider: [npm](/providers/npm.md)
- Capability: [GitHub, npm & PyPI](/tools/developer-data/code.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "packages": {
      "type": "string",
      "pattern": "^[@a-z0-9._~/,-]{1,1000}$",
      "description": "Package, or comma-separated unscoped packages, e.g. 'react,vue,svelte'"
    },
    "period": {
      "type": "string",
      "pattern": "^(last-day|last-week|last-month|last-year|[0-9]{4}-[0-9]{2}-[0-9]{2}:[0-9]{4}-[0-9]{2}-[0-9]{2})$",
      "default": "last-month",
      "description": "'last-week', 'last-month', 'last-year' or 'YYYY-MM-DD:YYYY-MM-DD', e.g. '2026-01-01:2026-06-30'"
    }
  },
  "required": [
    "packages"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "npm/downloads",
  "input": {
    "packages": "react,vue,svelte",
    "period": "last-month"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: npm public registry.

Attribution: Data from the npm public registry.

[Provider documentation](https://github.com/npm/registry/blob/main/docs/download-counts.md)

[REST inspection](https://api.agentik.cc/v1/tools/npm/downloads) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/npm/downloads) · [Agent index](/llms.txt)
