npm Package Dependency Scraper avatar

npm Package Dependency Scraper

Pricing

$3.00 / 1,000 npm package or dependency rows

Go to Apify Store
npm Package Dependency Scraper

npm Package Dependency Scraper

Try for free → Input → Start (1 bounded first run ≈ USD 0.01–0.03/package). npm package dependency scraper: extract versions, dependencies, release cadence. From USD 0.01–0.03/package.

Pricing

$3.00 / 1,000 npm package or dependency rows

Rating

0.0

(0)

Developer

naoki anzai

naoki anzai

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

npm Package Dependency Intelligence

Open Input (leave defaults → Start) Paid first-run JSON ≈ USD 0.01–0.03/package (1 bounded first run). Keep reports, exports, and movement options bounded for the first run. Open Try for free → Input and run this JSON.

{
"packages": [
"react"
],
"includeVersionHistory": false,
"includeDevDependencies": false,
"maxVersionRowsPerPackage": 1,
"maxDependencyRowsPerPackage": 1,
"concurrency": 1,
"timeoutMs": 10000,
"delivery": "dataset",
"webhookUrl": "",
"dryRun": false
}

Paste package name and Start.

Analyze npm packages from the official registry.npmjs.org packument endpoint and export flattened rows for package summaries, version metadata, dependency declarations, maintainer hints, release cadence, and package hygiene signals.

This actor is built for direct package watchlists. It does not scrape npmjs.com HTML pages.

Store Quickstart

Run this input to exercise the documented first-run path. Review the pricing section before increasing the scope.

{
"packages": [
"react",
"vite",
"@types/node"
],
"includeVersionHistory": true,
"includeDevDependencies": true,
"maxVersionRowsPerPackage": 25,
"maxDependencyRowsPerPackage": 250,
"concurrency": 3,
"timeoutMs": 15000,
"delivery": "dataset",
"webhookUrl": "",
"dryRun": false
}

Use with Apify MCP

Exact actor: taroyamada/npm-package-dependency-intelligence

Sample input JSON:

{
"packages": [
"react"
],
"includeVersionHistory": true,
"includeDevDependencies": true,
"maxVersionRowsPerPackage": 25,
"maxDependencyRowsPerPackage": 250,
"concurrency": 3,
"timeoutMs": 15000,
"delivery": "dataset"
}

Run the next report

Use cases

Use this actor for OSS dependency & supply-chain audit — resolve npm package metadata and transitive dependency trees. Auth-free, official-API-first, with a stable output schema and documented source compliance.

Inputs

FieldDefaultNotes
packagesrequirednpm package names such as react, vite, express, or @types/node.
includeVersionHistorytrueEmit package_version rows. When false, only the latest version row is emitted.
includeDevDependenciestrueInclude devDependencies from emitted versions.
maxVersionRowsPerPackage100Cap version rows per package.
maxDependencyRowsPerPackage250Cap dependency rows per package across emitted versions.
concurrency5Parallel package fetches.
timeoutMs15000Per-request timeout in ms.
deliverydatasetdataset or webhook.
webhookUrlemptyRequired when delivery=webhook.
dryRunfalseSkip dataset and webhook delivery.

Dataset Rows

The dataset is flattened so it can be filtered and joined without unpacking one large object.

package_summary

  • packageName, normalizedPackageName, requestedName, status
  • latestVersion, description, license, homepage, repositoryUrl, bugsUrl
  • keywords, author, maintainers, publisher, distTags
  • versionCount, emittedVersionCount, firstPublishedAt, latestPublishedAt, modifiedAt
  • releaseCadenceDays, dependencyCount, emittedDependencyCount
  • nodeEngine, deprecated, warnings, fetchedAt

package_version

  • packageName, version, publishedAt, distTags, isLatest
  • license, nodeEngine, deprecated
  • dependency group counts
  • tarballUrl, shasum, integrity, unpackedSize, fetchedAt

dependency

  • packageName, packageVersion
  • dependencyName, normalizedDependencyName
  • dependencyGroup such as runtime, development, peer, optional, or bundled
  • versionSpec, rawSpec, optional, bundled, fetchedAt

Example Input

{
"packages": ["react", "vite", "@types/node"],
"includeVersionHistory": true,
"includeDevDependencies": true,
"maxVersionRowsPerPackage": 25,
"maxDependencyRowsPerPackage": 250,
"concurrency": 3,
"timeoutMs": 15000,
"delivery": "dataset",
"webhookUrl": "",
"dryRun": false
}

Sample output

Each run produces structured dataset rows (see the Dataset Rows section above for the field list). Run the actor once with the example input to see a live sample before scheduling.

Local Development

npm install
npm test
node src/index.js

output/result.json contains the full payload for local inspection. On Apify, dataset delivery writes the flattened rows.

Limitations

  • V1 is direct package lookup only; npm search and npmjs.com HTML pages are out of scope.
  • Dependency declarations come from published package metadata in registry.npmjs.org/{package}.
  • Historical dependency rows are capped by maxVersionRowsPerPackage and maxDependencyRowsPerPackage.

Input Examples

Example: Single-target audit

{
"targets": [
"example-target-1"
],
"maxResultsPerTarget": 30
}

Example: Bulk portfolio

{
"targets": [
"target-1",
"target-2",
"target-3"
],
"maxResultsPerTarget": 50,
"snapshotKey": "npm-package-dependency-intelligence-state"
}

Example: Recurring delta watch

{
"targets": [
"target-1"
],
"snapshotKey": "npm-package-dependency-intelligence-state",
"emitChangedOnly": true
}