vøiddo guidesAll Actors on Apify

npm Package Stats Scraper: how to get Metadata and Downloads as JSON/CSV (API, Python, no code)

Snapshot npm package stats from the public registry and downloads APIs. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/npm-package-tracker on Apify.

Open npm Package Stats Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
snapshotAtSnapshot Atdate2026-10-26T04:30:36+00:00
nameNametextreact
descriptionDescriptiontextReact is a JavaScript library for building user interfaces.
latestVersionLatest Versiontext19.3.1
createdAtCreated Atdate2011-10-26T17:46:21.942Z
modifiedAtModified Atdate2026-10-23T16:30:48.610Z
licenseLicensetextMIT
homepageHomepageURLhttps://react.dev/
repositoryUrlRepository Urltextgit+https://github.com/react/react.git
maintainersMaintainerslist
keywordsKeywordslist["react"]
dependenciesCountDependencies Countnumber0
peerDependenciesCountnumber0
devDependenciesCountnumber0
downloadsLastMonthnumber710345967
downloadsLastWeeknumber123680288

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "packages": [
    "react",
    "next",
    "vue",
    "svelte"
  ]
}
Input fieldTypeWhat it does
packagesarrayNPM package names
includeDownloadsbooleanAlso fetch download counts from api.npmjs.org

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "snapshotAt": "2026-10-26T04:30:36+00:00",
    "name": "react",
    "description": "React is a JavaScript library for building user interfaces.",
    "latestVersion": "19.3.1",
    "createdAt": "2011-10-26T17:46:21.942Z",
    "modifiedAt": "2026-10-23T16:30:48.610Z",
    "license": "MIT",
    "homepage": "https://react.dev/",
    "repositoryUrl": "git+https://github.com/react/react.git",
    "keywords": [
      "react"
    ],
    "dependenciesCount": 0,
    "peerDependenciesCount": 0,
    "devDependenciesCount": 0,
    "downloadsLastMonth": 710345967,
    "downloadsLastWeek": 123680288
  },
  {
    "snapshotAt": "2026-10-26T04:30:36+00:00",
    "name": "next",
    "description": "The React Framework",
    "latestVersion": "16.4.3",
    "createdAt": "2011-07-11T11:00:45.416Z",
    "modifiedAt": "2026-10-24T23:56:16.920Z",
    "license": "MIT",
    "homepage": "https://nextjs.org",
    "repositoryUrl": "git+https://github.com/vercel/next.js.git",
    "keywords": [
      "react",
      "framework",
      "nextjs"
    ],
    "dependenciesCount": 6,
    "peerDependenciesCount": 6,
    "devDependenciesCount": 0,
    "downloadsLastMonth": 248208383,
    "downloadsLastWeek": 44586009
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/npm-package-tracker.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'packages': ['react', 'next', 'vue', 'svelte']}

run = client.actor("v0iddo/npm-package-tracker").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "packages": [
    "react",
    "next",
    "vue",
    "svelte"
  ]
};

const run = await client.actor('v0iddo/npm-package-tracker').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~npm-package-tracker/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"packages": ["react", "next", "vue", "svelte"]}'

Price

$0.20 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.14 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

FAQ

What data does the npm Package Stats Scraper return?

Each result is one row in an Apify dataset. Fields include snapshotAt, name, description, latestVersion, createdAt, modifiedAt, license, homepage, and more. The table above shows every field with an example value.

How do I use the npm Package Stats Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/npm-package-tracker with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$0.20 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.14 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open npm Package Stats Scraper on Apify

Related guides