Skip to content
Eden Engine

npm Download Count

npmdownloads/download-count

Returns the total downloads of one npm package over the last day, week, month or year, or over a date range, with the start and end dates covered. Download counts from the npm downloads API, https://api.npmjs.org, passed through unmodified and served by Eden Engine; not an official npm product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.

Data source

npm downloads API

Download counts from the npm downloads API, https://api.npmjs.org, passed through unmodified and served by Eden Engine; not an official npm product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "npmdownloads/download-count" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "npmdownloads/download-count" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "npmdownloads/download-count", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "npmdownloads/download-count", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 26, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^(@[A-Za-z0-9-~][A-Za-z0-9-._~]*/)?[A-Za-z0-9-~][A-Za-z0-9-._~]*$",
      "maxLength": 214,
      "minLength": 1,
      "description": "Package name as on npm, for example ms, react or @types/node."
    },
    "period": {
      "type": "string",
      "default": "last-week",
      "pattern": "^(last-day|last-week|last-month|last-year|\\d{4}-\\d{2}-\\d{2}:\\d{4}-\\d{2}-\\d{2})$",
      "description": "last-day, last-week, last-month, last-year, or a date range start:end as YYYY-MM-DD:YYYY-MM-DD. Default last-week."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "downloads",
    "start",
    "end",
    "package"
  ],
  "properties": {
    "end": {
      "type": "string",
      "description": "Last day counted, YYYY-MM-DD."
    },
    "start": {
      "type": "string",
      "description": "First day counted, YYYY-MM-DD."
    },
    "package": {
      "type": "string",
      "description": "Package name."
    },
    "downloads": {
      "type": "integer",
      "description": "Total downloads of the package's tarballs over the period."
    }
  },
  "additionalProperties": true
}