# npm Registry Scraper - Packages & Downloads (`antishock/npm-registry-packages-scraper`) Actor

Search the npm registry and export package data: weekly and monthly downloads, dependents count, maintainers, last publish date, quality and popularity scores, repository and homepage links. Filter by keyword, author, maintainer or scope. No API key required.

- **URL**: https://apify.com/antishock/npm-registry-packages-scraper.md
- **Developed by:** [Ryan Zinburg](https://apify.com/antishock) (community)
- **Categories:** Developer tools, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 result exporteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## npm Registry Scraper - Package Data, Downloads & Maintainers

Search the **public npm registry** and export structured package data: downloads, dependents, maintainers, repository links and the npms quality, popularity and maintenance scores.

No API key, no proxy, no rate-limit wall.

### What you get per package

| Field | Example |
|---|---|
| `name` | axios |
| `version` | 1.20.0 |
| `description` | Promise based HTTP client for the browser and node.js |
| `keywords` | \["http", "ajax", "promise", "rest"] |
| `weeklyDownloads` | 86205929 |
| `monthlyDownloads` | 454819837 |
| `dependentsCount` | 179549 |
| `lastPublished` | 2026-09-15T12:27:41Z |
| `publisher`, `maintainers`, `maintainerCount` | who owns the package |
| `qualityScore`, `popularityScore`, `maintenanceScore`, `finalScore` | npms scoring, 0 to 1 |
| `isDeprecated`, `isUnstable` | package flags |
| `npmUrl`, `homepage`, `repository`, `bugsUrl` | links |

### Search filters

- **searchTerm** - free text across name, description and keywords, e.g. `scraper`, `pdf parser`
- **keyword** - exact npm keyword, e.g. `typescript`
- **author** / **maintainer** - npm username
- **scope** - organisation scope, e.g. `babel` for `@babel/*`
- **excludeDeprecated** - drop deprecated packages
- **unstableOnly** - only pre-1.0 packages
- **quality**, **popularity**, **maintenance** - weight the ranking, each 0 to 1
- **maxResults** - up to 5000 packages per run

### Example input

```json
{
  "searchTerm": "pdf parser",
  "excludeDeprecated": true,
  "popularity": 1,
  "maxResults": 200
}
```

### Use cases

- **Developer tool market research** - size a niche by counting packages and their download volume
- **Open source due diligence** - check maintainer count, last publish date and deprecation before adopting a dependency
- **Supply chain review** - list every package in an organisation scope with its dependents
- **Competitive analysis** - compare download trajectories across alternatives in a category
- **Developer marketing** - find maintainers of packages adjacent to your product
- **Tech trend tracking** - monitor which keywords are gaining packages and downloads

### Why the npm registry

npm is the largest software registry in the world and its search endpoint exposes downloads, dependents and quality scores in a single response, so a full export needs no per-package follow-up requests. Everything is public and free to query.

### Notes

- `dependentsCount` counts other npm packages that depend on this one, a better popularity signal than downloads alone for libraries.
- Scores come from the npms.io analysis pipeline and range from 0 to 1.
- The search endpoint returns at most 250 packages per request; the actor pages through automatically.

# Actor input Schema

## `searchTerm` (type: `string`):

Free text across package name, description and keywords.

## `keyword` (type: `string`):

Exact npm keyword, e.g. typescript.

## `author` (type: `string`):

npm username of the package author.

## `maintainer` (type: `string`):

npm username of a maintainer.

## `scope` (type: `string`):

Organisation scope without the @, e.g. babel for @babel/\*.

## `excludeDeprecated` (type: `boolean`):

Drop packages marked as deprecated.

## `unstableOnly` (type: `boolean`):

Restrict to packages below version 1.0.

## `quality` (type: `string`):

Ranking weight for quality, 0 to 1.

## `popularity` (type: `string`):

Ranking weight for popularity, 0 to 1.

## `maintenance` (type: `string`):

Ranking weight for maintenance, 0 to 1.

## `maxResults` (type: `integer`):

How many packages to save.

## Actor input object example

```json
{
  "searchTerm": "scraper",
  "excludeDeprecated": true,
  "unstableOnly": false,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped records in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerm": "scraper",
    "excludeDeprecated": true,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("antishock/npm-registry-packages-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerm": "scraper",
    "excludeDeprecated": True,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("antishock/npm-registry-packages-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerm": "scraper",
  "excludeDeprecated": true,
  "maxResults": 100
}' |
apify call antishock/npm-registry-packages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,antishock/npm-registry-packages-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/UTHubevUvmdW39O71/builds/x1e5ND2sLW08xLzqM/openapi.json
