Bundlephobia Package Size Scraper avatar

Bundlephobia Package Size Scraper

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Bundlephobia Package Size Scraper

Bundlephobia Package Size Scraper

Scrape minified and gzipped sizes, dependency counts, and metadata for npm packages instantly. Export clean JSON, CSV, or Excel datasets.

Pricing

from $2.99 / 1,000 results

Rating

0.0

(0)

Developer

B2B Lead Generation

B2B Lead Generation

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

Bundlephobia Package Size Scraper

Get minified and gzip bundle sizes for npm packages instantly. results are neatly formatted in your Apify dataset for easy export as JSON, CSV, or Excel.

Provide a simple package name like react, or pin a specific release version using lodash@4.17.21. The scraper processes your list sequentially, handles missing items gracefully without stopping the run, and records helpful error details if a package cannot be found.

Use cases

  • Frontend budget: Compare gzip bytes for the libraries you plan to add to your project
  • Dependency review: Record minified size, gzip size, and dependency counts across a sample of packages
  • Version pin checks: Target specific releases when the latest tag isn't what you ship in production
  • Recurring watch: Schedule regular runs for your package lists to monitor size changes over time
  • Spreadsheet export: Download CSV or Excel files for your platform or design reviews
  • Missing package handling: Keep runs moving even if a package name returns a 404, logging status details cleanly

What data does this actor extract?

FieldTypeDescription
namestringPackage name
versionstringResolved package version
packageDescriptionstringShort description from the package info
sizeintegerMinified size in bytes
gzipintegerGzipped size in bytes
dependencyCountintegerTotal dependency count
hasJSModulebooleanWhether an ESM entry is reported
hasSideEffectsbooleanWhether side effects are declared
repositorystringRepository URL if available
scraped_atstringUTC timestamp
errorstringFailure note on error rows
urlstringRequest URL on error rows
statusintegerHTTP status on error rows
messagestringFailure message for error views

Input configuration

ParameterTypeDefaultDescription
modestringsizesSize checking mode
packagesarray["react", "lodash@4.17.21"]List of npm names and optional @version tags
requestDelaySecsnumber1Wait time between requests
userAgentstringBigiByteActorResearch/1.0Custom client identifier
timeoutSecsinteger300Overall run time limit in seconds
requestTimeoutSecsinteger30Individual request timeout limit
proxyConfigurationobject{"useApifyProxy": false}Optional proxy settings

Example input

{
"mode": "sizes",
"packages": ["react", "lodash@4.17.21"],
"requestDelaySecs": 1,
"timeoutSecs": 300,
"requestTimeoutSecs": 30,
"proxyConfiguration": { "useApifyProxy": false }
}

Trademark Notice

All product names, logos, and brands belong to their respective owners. Use of these names does not imply endorsement or official partnership.


FAQ

Can I export CSV? Yes. Open the dataset and export JSON, CSV, or Excel.

What happens if a package name is wrong? You get one error row with status 404 and the request URL. The rest of the list still runs.

Why is the description field called packageDescription? Apify reserves the name description in dataset schemas. The text is the same field the size payload calls description.


This Actor only collects publicly available data without bypassing any access controls or restrictions. Scraping public data is generally standard practice, but how you use the data matters:

  • Personal data: If results include personal details, applicable privacy regulations like GDPR or CCPA may govern how you store and process that information. Only collect personal data when you have a valid, legitimate purpose.
  • Copyright: Content such as descriptions or text snippets may be protected by copyright. Avoid republishing full copyrighted materials without permission.
  • Terms of use: Always respect platform guidelines, stated rate limits, and attribution requirements.
  • Legal advice: This overview is for general informational purposes and does not constitute legal counsel. Consult a professional if you have specific legal questions.

To learn more, read Apify's guide: Is web scraping legal?