Firecrawl Alexandria

npm

1Request
stringRequired

Package name as on npm, e.g. `express` or `@types/node` (scoped names unencoded).

string

`last-day`, `last-week`, `last-month`, `last-year`, a single `YYYY-MM-DD` or a `YYYY-MM-DD:YYYY-MM-DD` range (npm caps ranges at 18 months). Counts lag the current day by 1-3 days.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "npmjs-com",
    capability: "packages/get_download_range",
    options: {
      package: "express",
      period: "last-week",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from npm.

{
  "days": [
    {
      "day": "2026-09-15",
      "downloads": 0
    },
    {
      "day": "2026-09-16",
      "downloads": 25426088
    },
    {
      "day": "2026-09-17",
      "downloads": 0
    },
    {
      "day": "2026-09-18",
      "downloads": 23305745
    },
    {
      "day": "2026-09-19",
      "downloads": 13679155
    },
    {
      "day": "2026-09-20",
      "downloads": 13971133
    },
    {
      "day": "2026-09-21",
      "downloads": 25107465
    }
  ],
  "end": "2026-09-21",
  "observed_at_ms": 1790282754576,
  "package": "express",
  "period": "last-week",
  "source_url": "https://api.npmjs.org/downloads/range/last-week/express",
  "start": "2026-09-15",
  "total": 101489586
}
Browse the library