[Integrations](https://spiral.ai/integrations) › [Zapier](https://spiral.ai/integrations/zapier) › [npm, PyPI and crates.io downloads](https://spiral.ai/integrations/zapier/npm-pypi-and-crates-io-downloads)

# How to Use npm, PyPI and crates.io downloads in Zapier

Get daily download counts for an npm, PyPI, or crates.io package. Use the dated series to compare recent activity or investigate spikes; PyPI Stats and crates.io provide shorter histories than a full year.

|  |  |
| --- | --- |
| Model | npm, PyPI and crates.io downloads |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with npm, PyPI and crates.io downloads in Zapier

- Each morning, use npm, PyPI and crates.io downloads for requests on PyPI over the past month. Report the latest available day's count and compare it with the preceding daily counts.
- Every Monday, use npm, PyPI and crates.io downloads for axios and got on npm over the past month. Compare their daily activity and report changes in their weekly totals.
- Every Monday at 9am: use npm, PyPI and crates.io downloads to look this up and give me the result as a table.
- Pull the latest numbers from npm, PyPI and crates.io downloads and tell me what changed since last week.
- Check npm, PyPI and crates.io downloads and summarize what you find in three bullet points.

## How to set up npm, PyPI and crates.io downloads in Zapier

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send Zapier this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Add an MCP Client connection**: In Zapier open Apps, click Add connection and search for MCP Client. Fill in the form:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Zapier never sees it, and you can remove it under Settings › Connected apps in the console.

3. **Run a Spiral tool in a Zap**: Add an MCP Client step to a Zap and choose the Run Tool action with your Spiral connection. Pick a tool: `discover` finds the right model for a task, `estimate_cost` prices it and `run` runs it. For example, `run` with:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run npm, PyPI and crates.io downloads in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds npm, PyPI and crates.io downloads, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run npm, PyPI and crates.io downloads**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "package-registry-metadata-download-stats/packages/downloads",
    "input": {
      "name": "<name>",
      "registry": "npm"
    }
  }'
```

Then paste one of the prompts above: Zapier finds npm, PyPI and crates.io downloads on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/zapier

## npm, PyPI and crates.io downloads tools and prices

- [Package registries · Daily downloads](https://spiral.ai/tools/alexandria/package-registry-metadata-download-stats/packages/downloads) (Alexandria): $0.001746 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| period | last-week, last-month, last-year | last-month | How many trailing days to return: last-week (7), last-month (30) or last-year (365, capped by what the source keeps: pypistats ~180 days, crates.io 90). |

## What can you do with npm, PyPI and crates.io downloads in Zapier?

Produce a recurring package review for a fixed watchlist such as react, requests, and serde. A scheduled agent can compare successive registry results and report changes in releases, deprecation flags, download activity, or public dependent counts.

### Compare library candidates

Review axios and got on npm using current package details, release histories, daily downloads, and version-specific dependent counts. Keep download activity and public package adoption as separate columns.

### Prepare a support retirement review

For an older release of requests, assemble its publication date and deprecation status, public dependent counts, current package record, and recent package download trend. Use the evidence to frame a support discussion.

### Prepare an open-source funding brief

Build a review of serde or tokio with project links, release cadence, download activity, and public dependent counts. Give reviewers concrete evidence for choosing projects to support.

### Review activity around a release

Place a package's release dates beside daily downloads, its current record, and dependent counts for selected versions. Report changes around the release without attributing package-wide downloads to that version.

### Investigate download spikes

Compare daily downloads for pandas with its publication timeline to identify spikes that coincide with releases and spikes that need another explanation.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Zapier guides](https://spiral.ai/integrations/zapier)

## npm, PyPI and crates.io downloads in other agents

- [Amp](https://spiral.ai/integrations/amp/npm-pypi-and-crates-io-downloads)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/npm-pypi-and-crates-io-downloads)
- [Claude](https://spiral.ai/integrations/claude-desktop/npm-pypi-and-crates-io-downloads)
- [Claude Code](https://spiral.ai/integrations/claude-code/npm-pypi-and-crates-io-downloads)
- [Cline](https://spiral.ai/integrations/cline/npm-pypi-and-crates-io-downloads)
- [Codex](https://spiral.ai/integrations/codex/npm-pypi-and-crates-io-downloads)
- [Cursor](https://spiral.ai/integrations/cursor/npm-pypi-and-crates-io-downloads)
- [Devin](https://spiral.ai/integrations/devin/npm-pypi-and-crates-io-downloads)
- [dots](https://spiral.ai/integrations/dots/npm-pypi-and-crates-io-downloads)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/npm-pypi-and-crates-io-downloads)
- [Gemini](https://spiral.ai/integrations/gemini/npm-pypi-and-crates-io-downloads)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/npm-pypi-and-crates-io-downloads)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/npm-pypi-and-crates-io-downloads)
- [goose](https://spiral.ai/integrations/goose/npm-pypi-and-crates-io-downloads)
- [Grok](https://spiral.ai/integrations/grok/npm-pypi-and-crates-io-downloads)
- [Grok Build](https://spiral.ai/integrations/grok-build/npm-pypi-and-crates-io-downloads)
- [Hermes](https://spiral.ai/integrations/hermes/npm-pypi-and-crates-io-downloads)
- [Instinct](https://spiral.ai/integrations/instinct/npm-pypi-and-crates-io-downloads)
- [Manus](https://spiral.ai/integrations/manus/npm-pypi-and-crates-io-downloads)
- [Muse](https://spiral.ai/integrations/muse/npm-pypi-and-crates-io-downloads)
- [Muse Code](https://spiral.ai/integrations/muse-code/npm-pypi-and-crates-io-downloads)
- [n8n](https://spiral.ai/integrations/n8n/npm-pypi-and-crates-io-downloads)
- [Notion](https://spiral.ai/integrations/notion/npm-pypi-and-crates-io-downloads)
- [OpenClaw](https://spiral.ai/integrations/openclaw/npm-pypi-and-crates-io-downloads)
- [opencode](https://spiral.ai/integrations/opencode/npm-pypi-and-crates-io-downloads)
- [Perplexity](https://spiral.ai/integrations/perplexity/npm-pypi-and-crates-io-downloads)
- [Raycast](https://spiral.ai/integrations/raycast/npm-pypi-and-crates-io-downloads)
- [VS Code](https://spiral.ai/integrations/vscode/npm-pypi-and-crates-io-downloads)
- [Windsurf](https://spiral.ai/integrations/windsurf/npm-pypi-and-crates-io-downloads)

## More Zapier guides

- [deps.dev package version history](https://spiral.ai/integrations/zapier/deps-dev-package-version-history)
- [npm, PyPI, crates.io and Maven package details](https://spiral.ai/integrations/zapier/npm-pypi-crates-io-and-maven-package-details)
- [deps.dev package dependents](https://spiral.ai/integrations/zapier/deps-dev-package-dependents)
- [xAI API release notes](https://spiral.ai/integrations/zapier/xai-api-release-notes)
- [arXiv subject sets](https://spiral.ai/integrations/zapier/arxiv-subject-sets)
- [xAI company and product page](https://spiral.ai/integrations/zapier/xai-company-and-product-page)

## Questions about npm, PyPI and crates.io downloads in Zapier

**Can Zapier use npm, PyPI and crates.io downloads?**

Yes. Add Spiral to Zapier as an MCP server, and Zapier can find and run npm, PyPI and crates.io downloads like any built-in tool.

**How much does npm, PyPI and crates.io downloads cost in Zapier?**

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Zapier plan is separate.

**Do I need an Alexandria account to use npm, PyPI and crates.io downloads in Zapier?**

No. Spiral runs npm, PyPI and crates.io downloads on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up npm, PyPI and crates.io downloads in Zapier?**

About two minutes: add an MCP Client connection, then sign in to Spiral and approve, then run a Spiral tool in a Zap.

**Does Zapier wait while npm, PyPI and crates.io downloads runs?**

npm, PyPI and crates.io downloads runs in the background. Zapier starts the run, checks on it and gives you the json when it's ready.

**Does the data include private package usage?**

deps.dev counts only public dependents. Its counts describe the visible package ecosystem, so they cannot establish how many private applications use a package.

**How quickly does package data update?**

deps.dev says commonly used packages are usually current within about an hour, while inactive packages can have older data. npm processes download logs once daily shortly after midnight UTC.

**Are package publication dates always available?**

No. deps.dev returns publication timestamps when they are available from the package registry.

**What does the default release mean?**

In deps.dev, it identifies the release installed when no version is specified. Use that flag when your question concerns the default installation.

**Can the release history identify deprecated versions?**

deps.dev version records include a deprecation flag. That identifies a release marked as deprecated, rather than establishing whether every older release should be replaced.

