npm & PyPI Package Download Intelligence avatar

npm & PyPI Package Download Intelligence

Pricing

$1.50 / 1,000 package-day results

Go to Apify Store
npm & PyPI Package Download Intelligence

npm & PyPI Package Download Intelligence

Compare daily npm and PyPI download counts side by side, with latest version, release date and license. Official public APIs, no login. $1.50 per 1,000 rows.

Pricing

$1.50 / 1,000 package-day results

Rating

0.0

(0)

Developer

Atesen Software

Atesen Software

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

npm & PyPI Package Download Intelligence

Need to know whether an npm or PyPI package is really being adopted, or how two libraries compare across ecosystems? This Apify Actor puts daily npm and PyPI download counts side by side in one table, with each package's latest version, release date and license, for $1.50 per 1,000 rows.

It reads the official public sources: the npm downloads API and npm registry, the PyPI JSON API and PyPI Stats (hosted by the Python Software Foundation). No login, API key or proxy needed.

Which Actor? Only need npm, or npm metadata such as dependencies and deprecation flags? Use our npm Package Intelligence Actor ($0.00045 per row). Choose this Actor when you want npm and PyPI compared in one dataset.

What you can use it for

  • Pick a dependency: compare express vs fastify, or requests vs httpx, on real daily downloads before you commit.
  • Cross-ecosystem reports: track a JS SDK and its Python twin (for example openai on npm and PyPI) in one dataset.
  • Open-source and devtool marketing: watch your own packages and competitors every day or week with an Apify schedule.
  • Dashboards: send rows to Google Sheets, BI tools, n8n, Make or Zapier through the Apify API and integrations.

Download counts measure installs, including CI and bots. They are not unique users or revenue.

How to use it

  1. Enter up to 20 npm package names (scoped names such as @types/node work) and up to 20 PyPI names. Leave a list empty to skip that registry.
  2. Pick Last week (7 days) or Last month (30 days).
  3. Optionally set Maximum result rows (a global cap) and Maximum run time.
  4. Run, then export as JSON, CSV, Excel or HTML, or read the dataset through the API.

Input example

{
"npmPackages": ["express", "fastify", "@types/node"],
"pypiPackages": ["requests", "httpx"],
"period": "last-month",
"maxResults": 150
}

maxResults is a total across all packages. One package over 30 days gives up to 30 rows. npm packages are processed first, then PyPI.

Run option maxItems is a hard cap. If you start the run with maxItems (Console run options, the API ?maxItems=10 parameter, or an MCP/agent call), the Actor writes and charges at most that many result rows, even when maxResults is higher. The smaller of maxResults and maxItems wins. Leave maxItems empty for no extra cap. Example: 3 packages for the last month would give 90 rows; with maxItems=10 you get exactly 10 rows and pay for 10.

Output example

Real rows from a run on 15 November 2026:

[
{"type":"result","registry":"npm","packageName":"express","date":"2026-11-14","downloads":17243345,"latestVersion":"5.3.0","latestVersionPublishedAt":"2026-10-09T12:56:54.505Z","license":"MIT","packageUrl":"https://www.npmjs.com/package/express","sourceUrl":"https://api.npmjs.org/downloads/range/last-week/express","excludesKnownMirrors":false,"collectedAt":"2026-11-15T22:26:54.506Z"},
{"type":"result","registry":"pypi","packageName":"requests","date":"2026-11-14","downloads":37121241,"latestVersion":"2.34.2","latestVersionPublishedAt":"2026-05-14T19:25:26.443000Z","license":"Apache-2.0","packageUrl":"https://pypi.org/project/requests/","sourceUrl":"https://pypistats.org/api/packages/requests/overall?mirrors=false","excludesKnownMirrors":true,"collectedAt":"2026-11-15T22:26:57.669Z"}
]
FieldMeaning
typeresult for a package-day row, status for a free run status row
registrynpm or pypi
packageNamePackage name; PyPI names are normalized (My_Package becomes my-package)
dateUTC day of the download count
downloadsDownloads of all versions on that day
latestVersion / latestVersionPublishedAtCurrent latest release and its publish time, at collection time
licenseShort license expression from the registry, or null
excludesKnownMirrorstrue for PyPI Stats "without mirrors" counts
packageUrl / sourceUrlPackage page and the exact statistics endpoint used
collectedAtUTC time of collection

How much does it cost?

$1.50 per 1,000 result rows ($0.0015 per package-day row). There is no start fee. Example: 10 packages for the last month = 300 rows = $0.45.

Status rows are free. If the input is invalid, the run ends successfully with one free status row explaining what to fix, and nothing is charged. If some packages fail (for example a name that does not exist), you pay only for the rows actually saved, and a free status row lists each failed package with the real counts.

Limits, errors and caching

  • Up to 20 npm + 20 PyPI packages per run, 1-10,000 rows, 30-600 seconds run time.
  • Requests are sequential, with about 1 second between uncached calls. HTTP 429 or 5xx gets one retry that respects Retry-After; no proxy rotation or bypass.
  • PyPI Stats asks clients to fetch each endpoint at most once a day and not to bulk-download the whole registry. The Actor caches each endpoint for the UTC day in a named key-value store (package-download-intelligence-cache) in your account and caps list sizes, so repeated runs on the same day reuse the data.
  • PyPI Stats keeps about 180 days of history; this Actor returns the latest 7 or 30 days.
  • npm and PyPI publish on slightly different schedules; compare rows with the same date.
  • The REPORT record in the run's key-value store lists completed packages, failures, request count and why the run stopped (maxResults, which also covers a lower maxItems run option, maxRuntime or a spending limit).

FAQ

Are these unique users? No. They are daily download counts across all versions, including automated installs.

Does it collect personal data? No. Maintainer names and emails are never saved to the output or the cache. License values containing an email address or long license texts are dropped.

Can I scan all of PyPI or npm? No. It is built for watchlists. For whole-registry history, use the public PyPI BigQuery dataset or npm's bulk endpoint directly.

Data sources and attribution: npm download and registry data from npm, Inc. public APIs; PyPI metadata from pypi.org (Python Software Foundation); PyPI download statistics from pypistats.org. This Actor is independent and not endorsed by npm, GitHub or the Python Software Foundation.

Support: open an issue on the Actor's Issues tab with your input and run link, or email support@atesensoftware.com.

Built and maintained by Atesen Software.