Bundlephobia Scraper - npm Bundle Size & Dependencies avatar

Bundlephobia Scraper - npm Bundle Size & Dependencies

Pricing

from $0.75 / 1,000 results

Go to Apify Store
Bundlephobia Scraper - npm Bundle Size & Dependencies

Bundlephobia Scraper - npm Bundle Size & Dependencies

$0.5/1K 🔥 Bundlephobia scraper! npm package bundle size, gzip & dependency count. No key. JSON, CSV, Excel or API in seconds. Audit JS bundle size & perf budgets ⚡

Pricing

from $0.75 / 1,000 results

Rating

0.0

(0)

Developer

ninhothedev

ninhothedev

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Categories

Share

Bundlephobia Scraper 📦

Know the real cost of every npm dependency — before you ship it.

Bundlephobia Scraper resolves any npm package into its minified size, gzip size, dependency count and a dependency-size breakdown, straight from Bundlephobia. No API key, no login, no browser automation — just clean structured JSON you can drop into a CI pipeline, a spreadsheet, or a performance budget.

Feed it a list of package names (optionally pinned to a version like react@18.2.0) and get one tidy dataset row per package.


💡 Why use this actor?

  • No API key required — public data, zero auth friction.
  • Minified + gzip sizes in both bytes and KB, ready to chart.
  • Dependency count + top-10 dependency sizes to spot bloat.
  • Version-aware — pin an exact version or take the latest.
  • Fast & cheap — concurrent batches, ~$0.50 per 1,000 packages.
  • CI-friendly output — flat, permissive JSON that maps to any tool.

🚀 Use cases

  • JavaScript bundle analysis — compare libraries before adding them.
  • Dependency audits — flag heavyweight transitive dependencies.
  • Performance budgets — enforce size limits in CI/CD.
  • Developer tooling — power dashboards, linters and PR bots.

🛠 Input

FieldTypeDescription
modeselectScraping mode. Currently packages (resolve by name).
packagesarraynpm package names. Optionally name@version. Prefilled with react, lodash, axios.
maxItemsintegerMax packages per run (default 100, max 1000).

Example input

{
"mode": "packages",
"packages": ["react", "lodash", "axios@1.7.2", "next"],
"maxItems": 100
}

📤 Output

One dataset item per package:

{
"name": "react",
"version": "19.2.8",
"min_size_bytes": 7595,
"min_size_kb": 7.42,
"gzip_bytes": 2910,
"gzip_kb": 2.84,
"dependency_count": 0,
"has_side_effects": true,
"repository": "https://github.com/react/react.git",
"description": "React is a JavaScript library for building user interfaces.",
"top_dependencies": [{ "name": "react", "approximateSize": 7813 }],
"url": "https://bundlephobia.com/package/react",
"source": "bundlephobia",
"scraped_at": "2026-07-25T00:00:00+00:00"
}


⚖️ Notes

This actor uses Bundlephobia's public, unauthenticated size API. Cold packages are built on demand and may take a few seconds; the actor retries automatically. Only publicly available package metadata is collected.