npm and PyPI Package Adoption
Pricing
from $2.55 / 1,000 package rows
npm and PyPI Package Adoption
Adoption numbers for npm and PyPI packages from the public registry APIs. One row per package: daily downloads for the last year, 30 day trend, monthly totals, latest version, release dates, release cadence, license, repository, and maintainers. No login and no key.
Pricing
from $2.55 / 1,000 package rows
Rating
0.0
(0)
Developer
Mamba Labs
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 minutes ago
Last modified
Categories
Features
Share
Give npm or PyPI package names. The actor reads the public npm and PyPI registry APIs and returns one row per package: downloads for the last day, 7, 30, 180, and 365 days, the 30 day trend against the prior 30 days, monthly totals, latest version, first and latest release dates, releases in the last 12 months, license, repository, homepage, maintainers count, deprecation, runtime requirement, and dependencies count. You pay this actor per package row on Apify. No login and no key.
Features
- npm and PyPI packages in one run, by name or by package page URL. Scoped npm names such as
@angular/corework. - Daily download counts rolled up to 1, 7, 30, 180, and 365 day totals, plus one total per calendar month.
- A 30 day trend: the last 30 days against the 30 days before, in percent.
- Release cadence: first release, latest release, days since the latest release, and releases in the last 12 months.
- Deprecated npm versions and yanked or Inactive PyPI releases are flagged with the registry's note.
- A package listed twice is read once and charged once.
How the data is read
npm: the registry document at registry.npmjs.org/<package> for versions, release times, license, repository, and maintainers, and api.npmjs.org/downloads/range/last-year/<package> for daily downloads. PyPI: the JSON API at pypi.org/pypi/<package>/json for releases and metadata, and the pypistats.org API (/api/packages/<package>/overall, downloads without mirrors) for daily downloads. Requests go one at a time with one User-Agent that names this actor; pypistats.org calls are at least 1.1 seconds apart to stay under its 60 calls a minute.
These are the public APIs each registry documents for programmatic use. The actor reads no npmjs.com or pypi.org website page, calls the APIs directly with no proxy, needs no key or login, and calls no other developer's actor. A rate limit answer gets one wait (the Retry-After time, at most 60 seconds) and one more try; a second limit ends the run with a free row. The actor never moves to another address to get past a limit.
Input
| Field | Type | Default | What it does |
|---|---|---|---|
npm_packages | array | npm package names or npmjs.com package URLs, for example express, @angular/core, or https://www.npmjs.com/package/react. One per line; one line can hold several names separated by commas. In Clay, put the column inside a one item list. | |
pypi_packages | array | PyPI package names or pypi.org project URLs, for example requests, django, or https://pypi.org/project/httpx/. One per line; one line can hold several names separated by commas. | |
max_charge_usd | string | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. |
Output
| Field | Type | What it holds |
|---|---|---|
row_type | string | One of: package, run_summary. run_summary is the one free row written when the input is refused. |
registry | string | npm or pypi: which registry this package is from. |
query | string | The package name or URL you gave. |
package | string | Package name as the registry lists it. |
description | string | The package's one line description. |
latest_version | string | The version the registry marks as latest. |
latest_release_at | string | When the latest version was published, ISO 8601 UTC. |
first_release_at | string | When the first version was published, ISO 8601 UTC. |
days_since_latest_release | integer | Whole days from the latest release to the run. |
versions_total | integer | Versions published (PyPI: releases with at least one file). |
releases_last_12_months | integer | Versions published in the 365 days before the run. |
downloads_last_day | integer | Downloads on the last day the stats cover. |
downloads_last_7_days | integer | Downloads in the last 7 days the stats cover. |
downloads_last_30_days | integer | Downloads in the last 30 days the stats cover. |
downloads_prior_30_days | integer | Downloads in the 30 days before those. |
downloads_trend_pct | number | Change of the last 30 days against the prior 30 days, in percent. |
downloads_last_180_days | integer | Downloads in the last 180 days the stats cover. |
downloads_last_365_days | integer | npm only: downloads in the last 365 days. PyPI stats cover 180 days, so this is empty for PyPI. |
downloads_through | string | The last day the download stats cover, YYYY-MM-DD. |
monthly_downloads | array | Downloads per calendar month as YYYY-MM: count; the first and last month can be partial. |
license | string | License as the package declares it. |
repository_url | string | Source repository link the package declares. |
homepage_url | string | Homepage or documentation link the package declares. |
registry_url | string | The package page on npmjs.com or pypi.org. |
maintainers_count | integer | npm only: accounts that can publish the package. PyPI does not publish this, so it is empty. |
deprecated | boolean | True when npm marks the latest version deprecated, or PyPI marks it yanked or Inactive. |
deprecation_message | string | The registry's deprecation or yank note, when there is one. |
requires_runtime | string | The Node or Python version range the latest version declares. |
dependencies_count | integer | Runtime dependencies of the latest version (PyPI: without optional extras). |
keywords | array | Keywords the package declares. |
row_status | string | ok, or why this row carries no data: no_results, no_change, partial, blocked, or error. |
error_reason | string | Why the row is not ok. A refused input reads input_invalid: followed by what to fix. |
billable_events_json | string | What this row was billed as, for example {"package-row":1}. {} means free. |
scraped_at | string | When the row was written, UTC. |
Pricing
Pay per event. You pay Apify's run start event and one package-row event per package returned. Package names that do not exist, repeats, a rate limit, API errors, and a refused input are free rows.
| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
package-row, one package | $0.003 | $0.00285 | $0.0027 | $0.00255 |
apify-actor-start, once per run (one per GB of memory; the default 512 MB is one) | $0.004 | $0.004 | $0.004 | $0.004 |
Per 1,000 rows of package-row: $3.00 on the free plan, $2.55 on Gold.
Free plan cap: 1.50 USD of evaluation a month, about 500 rows. Any paid Apify plan removes the cap, and it resets on the 1st. The run stops before a charge that passes your maximum charge per run in Apify or your max_charge_usd input.
Mamba Labs pays the platform costs of your run, Apify proxy traffic included.
Usage examples
Compare frameworks. npm_packages ["express", "fastify", "koa", "hono"]. Sort the rows by downloads_last_30_days or downloads_trend_pct.
Python HTTP clients. pypi_packages ["requests", "httpx", "aiohttp", "urllib3"].
Find stale dependencies. Put a project's dependency list in npm_packages, then filter days_since_latest_release over 365 or deprecated true.
Developer tool account research. Map a company's open source packages to downloads and release cadence to see adoption and how active the project is.
Clay. A list input takes a JSON list, so put the column inside a one item list. One list item can hold several names separated by commas, because package names hold no commas.
MCP. The Mamba Labs MCP server @mambalabsdev/mcp-npm-pypi-package-adoption exposes this actor to Claude and other MCP clients.
Error handling
| Case | What you get |
|---|---|
| Missing or unreadable input | One free row, row_type run_summary, error_reason starting input_invalid: with what to fix. The run ends successfully and charges nothing but the run start |
| A package name the registry does not have | One free row, row_status no_results, error_reason starting not_found:. The next package still runs |
| A package with no download stats yet (new packages) | The row with metadata, download fields empty, and error_reason starting no_downloads:. Charged, because the metadata was read |
| A rate limit after one wait | One free row, row_status blocked. The run stops |
| The first 3 packages are all not found | One free row starting miss_stop:; the run stops so a list of wrong names costs only the start |
| The run is close to its timeout | The actor stops starting new work 90 seconds before the timeout and delivers what it has |
Limitations
- PyPI download stats come from pypistats.org and cover the last 180 days, so
downloads_last_365_daysis empty for PyPI rows. npm stats cover 365 days. Both are updated once a day, so the last day can lag the run by one to two days (downloads_throughsays which day). - PyPI counts exclude mirror downloads. npm counts are npm's own totals, which include CI and mirror installs.
- Dependents (packages that depend on this one) are not returned: neither registry offers them through a public API.
maintainers_countis npm only; PyPI's JSON API does not list maintainers. No maintainer names or emails are returned.- At most 1,000 packages per run.
- npm's Open Source Terms bar automated access to the npmjs.com website and state that "You may replicate data from the Public Registry using the Public APIs". PyPI's API policy asks for a User-Agent that identifies the client and serial requests; its robots.txt lists the JSON paths for crawlers, and this actor reads them as the documented API. pypistats.org asks clients to cache and not to pull every package. Your use of the data falls under each registry's terms.
Mamba Labs actor suite
Built by Mamba Labs.