NPM Packages Scraper — Downloads, Deps & Quality · $6/1k
Pricing
$6.00 / 1,000 npm package results
NPM Packages Scraper — Downloads, Deps & Quality · $6/1k
Search the public NPM registry by keyword and get weekly/monthly downloads, dependencies, maintainers, license and quality/popularity scores, with optional deep per-package detail. No login. $6 per 1,000 packages.
Pricing
$6.00 / 1,000 npm package results
Rating
0.0
(0)
Developer
Gio
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
24 days ago
Last modified
Categories
Features
Share
Why use this scraper
The public NPM registry has a search API and a per-package metadata API, but they are two separate calls with two different JSON shapes: the search endpoint gives you download counts and quality scores, while dependency lists, engine requirements, and contributor counts only live on the per-package endpoint. Anyone who wants "packages matching this keyword, with their dependencies and download trend" ends up stitching two NPM API calls together themselves, once per package.
This Actor does that stitching for you: search by keyword, and it returns each matching package's metadata, weekly and monthly downloads, license, maintainers, and quality/popularity/maintenance scores in one row, with an optional deeper pass that also pulls dependency lists, engine requirements, and contributor counts per package.
Overview
The Actor queries the public NPM registry's own search API directly,
with no browser involved, and optionally follows up with a per-package
detail call when you ask for it. A search for a common keyword with a
handful of results finishes in a couple of seconds; turning on
scrapeDetails adds one extra API call per package, so a larger
maxItems with details enabled takes longer than the same run without
them. Because the NPM registry's API is free and public, there is no
subscription or data license to account for.
Supported inputs
keyword(required) — the search term to query NPM's registry search with, exactly as you'd type it into npmjs.com's search box (e.g.web scraping,react,machine learning).maxItems(default 50) — caps how many packages come back.scrapeDetails(defaultfalse) — whentrue, fetches each matched package's full registry detail (dependencies, dev dependencies, engines, contributor count) in a second call per package. Slower, but richer.
Use cases
- Engineering and security teams auditing which packages exist for a given capability (e.g. "web scraping" or "PDF parsing") before picking a dependency, comparing download counts and maintenance scores at a glance.
- Developer tool and SaaS competitive intel teams tracking how many weekly downloads a category of packages gets, to gauge demand for a tool category before building in that space.
- Open-source researchers studying the NPM ecosystem, such as license distribution or dependency count trends, across packages matching a topic.
- Procurement and vendor-risk teams checking a candidate package's maintainers, license, and last-published date before approving it for internal use.
- Dependency and supply-chain tooling building a "packages like this one" feature by searching on a package's own keywords.
- AI coding agents that need to recommend or compare NPM packages for a task, with real download and quality data instead of guessing from training data that may be out of date.
How it works
The Actor calls NPM's own public registry search API
(registry.npmjs.org/-/v1/search) with your keyword, paging through
results 250 at a time (the registry's own page size limit) until it
reaches maxItems or runs out of matches. Each result already carries
download counts and NPM's own quality, popularity, and maintenance
scores straight from the search response. When scrapeDetails is
enabled, the Actor makes one additional call per package to the
registry's package endpoint to pull the latest version's full dependency
list, dev-dependency count, engine requirements, and contributor count,
merging that into the same row so you get one flat record per package
either way.
Input configuration
Mode 1 — keyword search, no detail fetch:
{"keyword": "web scraping","maxItems": 20}
Mode 2 — keyword search with full dependency detail:
{"keyword": "pdf parsing","maxItems": 15,"scrapeDetails": true}
Mode 3 — a broader keyword, larger batch:
{"keyword": "react state management","maxItems": 100,"scrapeDetails": false}
All three examples are valid against the Actor's input schema and run immediately.
Output sample
Real output from a production run, keyword: "web scraping":
[{"name": "scrapfly-sdk","version": "0.12.0","description": "SDK for Scrapfly.io API for web scraping, screenshotting and data extraction","keywords": ["web scraping", "scrapfly", "api", "sdk"],"license": "BSD","author": "GitHub Actions","authorEmail": "npm-oidc-no-reply@github.com","maintainers": ["scrapfly"],"weeklyDownloads": 20724,"monthlyDownloads": 64422,"dependents": 2,"quality": 1,"popularity": 1,"maintenance": 1,"finalScore": 327.54,"homepage": "https://scrapfly.io/","repository": "https://github.com/scrapfly/typescript-scrapfly","npmUrl": "https://www.npmjs.com/package/scrapfly-sdk","lastPublished": "2026-09-08T13:51:46.476Z","searchKeyword": "web scraping","scrapedAt": "2026-11-01T09:18:57.655Z"},{"name": "node-scrapy","version": "0.5.0","description": "Simple, lightweight and expressive web scraping with Node.js","keywords": ["web", "html", "css", "selector", "scraping", "scrape", "scraper", "scrapy", "crawler"],"license": "MIT","author": "stefanmaric","authorEmail": "me@stefanmaric.com","maintainers": ["stefanmaric"],"weeklyDownloads": 4797,"monthlyDownloads": 10424,"dependents": 7,"quality": 1,"popularity": 1,"maintenance": 1,"finalScore": 286.18,"homepage": "https://github.com/eeshi/node-scrapy","repository": "https://github.com/eeshi/node-scrapy","npmUrl": "https://www.npmjs.com/package/node-scrapy","lastPublished": "2020-08-24T11:42:45.552Z","searchKeyword": "web scraping","scrapedAt": "2026-11-01T09:18:57.777Z"}]
Key output fields
| Field | Type | Description |
|---|---|---|
name | string | Package name, including scope (e.g. @scope/name) when present. |
version | string | Latest published version. |
description | string | null | Package description from package.json. |
keywords | array of strings | Keywords the package author tagged it with. |
license | string | null | License identifier. |
author, authorEmail | string | null | Publisher of the latest version. |
maintainers | array of strings | NPM usernames with publish access. |
weeklyDownloads, monthlyDownloads | integer | null | Download counts from NPM's own download API. |
dependents | integer | null | Number of other packages depending on this one, per NPM's index. |
quality, popularity, maintenance | number | null | NPM's own 0-1 search-relevance scores. |
finalScore | number | null | NPM's combined search ranking score. |
homepage, repository, npmUrl | string | null | Links to the project's homepage, source repo, and NPM page. |
lastPublished | string | null | ISO date of the latest published version. |
dependencies | array of strings | null | Runtime dependency names (only when scrapeDetails: true). |
dependencyCount, devDependencyCount | integer | null | Dependency counts (only when scrapeDetails: true). |
engines | object | null | Node/npm engine requirements (only when scrapeDetails: true). |
contributorsCount | integer | null | Contributor count, when the package lists one (only when scrapeDetails: true). |
searchKeyword | string | The keyword you searched for. |
scrapedAt | string | ISO timestamp of when the Actor retrieved the row. |
Pricing
This Actor charges per package returned, with no browser cost layered on, since it is one or two calls to NPM's own public registry API per package.
| Event | Price |
|---|---|
| NPM package result | $0.006 per package |
That works out to $6 per 1,000 packages.
What makes this richer than the competition
Two other Actors on the Apify Store cover NPM registry scraping.
outstanding-vegetable/npm-packages-scraper (2 users in the last 30
days) covers package metadata, downloads, dependencies, and maintainers
from the same public API, marketed at a comparable $5 per 1,000 records.
rupom888/npm-registry-scraper-nodejs (2 users) covers metadata and
download counts (weekly, monthly, yearly) plus dependency information.
This Actor's differentiator is the scrapeDetails toggle: by default it
returns fast, single-call search results (downloads and quality scores),
and when you specifically need the heavier per-package detail
(dependency lists, engine requirements, contributor counts) you opt into
it per run, rather than always paying the cost of a second API call per
package whether you need that depth or not.
Notes & limitations
- Without
scrapeDetails,dependencies,dependencyCount,devDependencyCount,engines, andcontributorsCountcome backnull; enable it to populate those fields. contributorsCountstaysnulleven withscrapeDetailsenabled when the package's ownpackage.jsondoes not list acontributorsfield, which many packages omit.weeklyDownloadsandmonthlyDownloadsreflect NPM's own download tracking and can be0for a brand-new or very low-traffic package.maxItemsis capped by how many results NPM's search API has for that keyword; an unusual or very narrow keyword may return fewer packages than requested.- The Actor searches NPM's registry only; it does not cover packages hosted exclusively on other registries (e.g. a private registry or GitHub Packages).
FAQ
Do I need an NPM account or API key? No. NPM's registry search and package APIs are free and public, and the Actor needs no credentials.
What's the difference between running with and without scrapeDetails?
Without it, you get one fast call per search returning metadata and
scores for every result. With it, the Actor makes one extra call per
package to also pull dependencies, engines, and contributor count, which
takes longer for a larger maxItems.
Can I search for a scoped package like @babel/core?
Yes, pass the scoped name or a related keyword as keyword; NPM's search
matches scoped package names the same way it does unscoped ones.
Why are quality, popularity, and maintenance scores between 0 and
1?
Those are NPM's own normalized search-relevance scores, not a custom
calculation by this Actor; NPM computes them from factors like test
coverage, download trend, and issue response time.
Does this return historical download trends over time? No, it returns NPM's current weekly and monthly download counts at the time of the run, not a time series.
Can I use this to find alternatives to a package I already use? Yes, search using that package's own keywords (visible on its npmjs.com page) to surface similar packages ranked by NPM's own relevance scoring.
For AI Agents & LLM Apps
This Actor is available over Apify's MCP server (mcp.apify.com) for any
MCP-compatible agent, and over the REST API for direct calls. Example
using the synchronous dataset endpoint:
curl "https://api.apify.com/v2/acts/gio21~npm-packages-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"keyword": "web scraping", "maxItems": 10, "scrapeDetails": true}'
Agents building dependency recommendation tools, coding assistants, or supply-chain audit bots can call this endpoint directly and receive ready JSON package records, with no need to stitch together NPM's search and detail APIs themselves.
Disclaimer
This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by npm, Inc. or GitHub. All data is sourced from the public NPM registry API and remains subject to npm's terms of use.
SEO Keywords
npm packages scraper, npm registry api, npm package downloads scraper, npm dependency scraper, npm search api, node package scraper, npm quality score api