NPM Packages Scraper — Downloads, Deps & Quality · $6/1k avatar

NPM Packages Scraper — Downloads, Deps & Quality · $6/1k

Pricing

$6.00 / 1,000 npm package results

Go to Apify Store
NPM Packages Scraper — Downloads, Deps & Quality · $6/1k

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

Gio

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

24 days ago

Last modified

Categories

Features

Limited permissions

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 (default false) — when true, 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

FieldTypeDescription
namestringPackage name, including scope (e.g. @scope/name) when present.
versionstringLatest published version.
descriptionstring | nullPackage description from package.json.
keywordsarray of stringsKeywords the package author tagged it with.
licensestring | nullLicense identifier.
author, authorEmailstring | nullPublisher of the latest version.
maintainersarray of stringsNPM usernames with publish access.
weeklyDownloads, monthlyDownloadsinteger | nullDownload counts from NPM's own download API.
dependentsinteger | nullNumber of other packages depending on this one, per NPM's index.
quality, popularity, maintenancenumber | nullNPM's own 0-1 search-relevance scores.
finalScorenumber | nullNPM's combined search ranking score.
homepage, repository, npmUrlstring | nullLinks to the project's homepage, source repo, and NPM page.
lastPublishedstring | nullISO date of the latest published version.
dependenciesarray of strings | nullRuntime dependency names (only when scrapeDetails: true).
dependencyCount, devDependencyCountinteger | nullDependency counts (only when scrapeDetails: true).
enginesobject | nullNode/npm engine requirements (only when scrapeDetails: true).
contributorsCountinteger | nullContributor count, when the package lists one (only when scrapeDetails: true).
searchKeywordstringThe keyword you searched for.
scrapedAtstringISO 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.

EventPrice
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, and contributorsCount come back null; enable it to populate those fields.
  • contributorsCount stays null even with scrapeDetails enabled when the package's own package.json does not list a contributors field, which many packages omit.
  • weeklyDownloads and monthlyDownloads reflect NPM's own download tracking and can be 0 for a brand-new or very low-traffic package.
  • maxItems is 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