Bundlephobia Package Size Scraper
Pricing
from $2.99 / 1,000 results
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
Maintained by CommunityActor 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?
| Field | Type | Description |
|---|---|---|
name | string | Package name |
version | string | Resolved package version |
packageDescription | string | Short description from the package info |
size | integer | Minified size in bytes |
gzip | integer | Gzipped size in bytes |
dependencyCount | integer | Total dependency count |
hasJSModule | boolean | Whether an ESM entry is reported |
hasSideEffects | boolean | Whether side effects are declared |
repository | string | Repository URL if available |
scraped_at | string | UTC timestamp |
error | string | Failure note on error rows |
url | string | Request URL on error rows |
status | integer | HTTP status on error rows |
message | string | Failure message for error views |
Input configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | string | sizes | Size checking mode |
packages | array | ["react", "lodash@4.17.21"] | List of npm names and optional @version tags |
requestDelaySecs | number | 1 | Wait time between requests |
userAgent | string | BigiByteActorResearch/1.0 | Custom client identifier |
timeoutSecs | integer | 300 | Overall run time limit in seconds |
requestTimeoutSecs | integer | 30 | Individual request timeout limit |
proxyConfiguration | object | {"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.
Is web scraping legal?
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?