# npm Package Scraper API - Versions & Dependencies (`pink_comic/npm-package-intelligence`) Actor

Build dependency and release intelligence from publisher-maintained npm registry metadata. Search package lists, latest tags or exact versions, or bounded history; filter releases and expose dependency counts, integrity, tarballs, maintainers and source links.

- **URL**: https://apify.com/pink_comic/npm-package-intelligence.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Developer tools, AI, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 npm package scraper api - versions & dependencies evidence items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Package Scraper API - Dependency & Release Intelligence

Retrieve latest, exact-version, dist-tag, or bounded version-history metadata from the npm registry. Search package lists (including scoped names), filter publisher-maintained release/dependency/license/deprecation/maintainer/keyword evidence, and export normalized dependency counts, version age, integrity, tarball, repository, bugs, homepage, and npm links.

Empty input returns one current React latest-version row for at most **$0.0021** ($0.0001 start + $0.002/item).

```json
{"packages":["react"],"version":"latest","maxResults":1}
```

```json
{"packages":["@types/node"],"includeHistory":true,"maxHistoryVersions":20,"publishedFrom":"2025-01-01","dependency":"undici-types","maxResults":10}
```

Package, history, body, and total-result limits bound work. No match and exhausted source failures are explicit dataset items.

npm registry metadata is publisher-maintained and can be incomplete, stale, changed, transferred, or removed. It does not independently prove package safety, provenance, maintenance quality, compatibility, maintainer identity, legal ownership, or license compliance. Review package contents, lockfiles, advisories, upstream sources, and license terms before consequential use.

See the full README for all filters, outputs, examples, pricing, and interpretation limits.

### How to use

1. Open [npm Package Scraper API - Versions & Dependencies](https://apify.com/pink_comic/npm-package-intelligence) in Apify Console and click **Start** (or **Try for free**).
2. Fill in the input form - start with **Package names**, **Exact version or dist-tag**, **Versions examined per package**. Every field is optional unless marked required, and the form is prefilled with a working example.
3. Set **Maximum results** to cap your cost, then run the Actor.
4. Download the results as JSON, CSV, Excel, XML or HTML, or pull them with the Apify API.

### Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `packages` | array | no | \["react"] | npm names, including scoped names such as @types/node. |
| `version` | string | no | "latest" | Examples: latest, next, or 19.2.0. Blank means latest outside history mode. |
| `includeHistory` | boolean | no | false | Fetch package metadata and return newest published versions, bounded by maxHistoryVersions. |
| `maxHistoryVersions` | integer | no | 25 | Newest published versions examined in history mode. |
| `publishedFrom` | string | no |  | YYYY-MM-DD; history metadata supplies authoritative per-version publication timestamps. |
| `publishedTo` | string | no |  | Inclusive YYYY-MM-DD. |
| `modifiedFrom` | string | no |  | YYYY-MM-DD package-level modified timestamp filter, available in history mode. |
| `modifiedTo` | string | no |  | Inclusive YYYY-MM-DD package-level modified timestamp filter. |
| `license` | string | no |  | Case-insensitive publisher-maintained license metadata filter; not a compliance determination. |
| `deprecated` | string | no | "any" | Filter publisher deprecation metadata. |
| `dependency` | string | no |  | Checks runtime, dev, peer and optional dependency names. |
| `maintainer` | string | no |  | Case-insensitive maintainer name or public email filter. |
| `keyword` | string | no |  | Case-insensitive publisher keyword filter. |
| `maxPackages` | integer | no | 20 | Bound on package list requests. |
| `maxResults` | integer | no | 1 | Total paid dataset-item cap across packages after filters. Also reduced against the run charge limit. |

#### Example input

```json
{
  "packages": [
    "react"
  ],
  "version": "latest",
  "includeHistory": false,
  "maxHistoryVersions": 25,
  "deprecated": "any",
  "maxPackages": 20,
  "maxResults": 1
}
```

### Output example

One record from a real run (long values shortened, contact details partly masked):

```json
{
  "author": null,
  "boundedQuery": "packages=1; mode=single_version; maxHistoryVersions=25; maxResults=1",
  "bugsUrl": "https://github.com/react/react/issues",
  "dependencies": {},
  "dependencyCount": 0,
  "deprecated": false,
  "deprecationMessage": "",
  "description": "React is a JavaScript library for building user interfaces.",
  "devDependencies": {},
  "devDependencyCount": 0,
  "distFileCount": 27,
  "distIntegrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
  "distShasum": "26e9523fc36ea06be5050ebb780249a133260ad7",
  "distTarballUrl": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
  "distUnpackedSize": 178663,
  "evidenceStatus": "NPM_PACKAGE_VERSION_FOUND",
  "historyLimitApplied": false,
  "historyMode": false,
  "homepageUrl": "https://react.dev/",
  "keywords": [
    "react"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "fb",
      "email": "o***@fb.com",
      "url": ""
    },
    {
      "name": "react-bot",
      "email": "r***@meta.com",
      "url": ""
    }
  ],
  "modifiedAt": "2026-11-11T16:21:40.444Z",
  "npmUrl": "https://www.npmjs.com/package/react/v/19.3.1",
  "optionalDependencies": {}
}
```

### Pricing

Pay per event: **$0.002 per npm package scraper api - versions & dependencies evidence item** plus **$0.0001 per run start**. No subscription to this Actor is needed. Apify Store discounts apply, so the price per result is lower on Silver, Gold and higher Apify plans. Use **Maximum results** to cap the cost of each run.

### FAQ

#### How much does npm Package Scraper API - Versions & Dependencies cost?

$0.002 per npm package scraper api - versions & dependencies evidence item plus $0.0001 per run. For example, 1,000 results cost about $2.00. Higher Apify plans get a Store discount.

#### Do I need an API key or login?

This Actor has an optional or required key field in the input; see the input table above.

#### Can I run it on a schedule or from code?

Yes. Use Apify Schedules for recurring runs, or call it from the Apify API, the JavaScript or Python client, Make, Zapier, n8n, or any MCP-compatible AI agent.

#### Why did my run return no results?

Your filters are probably too narrow. Remove a filter or broaden the search, then run again. You only pay the result price for records that are actually saved.

#### Is the data accurate and up to date?

Each run fetches live data from the source described above, so results are as current as that source. Verify critical records with the original source before acting on them.

# Actor input Schema

## `packages` (type: `array`):

npm names, including scoped names such as @types/node.

## `version` (type: `string`):

Examples: latest, next, or 19.2.0. Blank means latest outside history mode.

## `includeHistory` (type: `boolean`):

Fetch package metadata and return newest published versions, bounded by maxHistoryVersions.

## `maxHistoryVersions` (type: `integer`):

Newest published versions examined in history mode.

## `publishedFrom` (type: `string`):

YYYY-MM-DD; history metadata supplies authoritative per-version publication timestamps.

## `publishedTo` (type: `string`):

Inclusive YYYY-MM-DD.

## `modifiedFrom` (type: `string`):

YYYY-MM-DD package-level modified timestamp filter, available in history mode.

## `modifiedTo` (type: `string`):

Inclusive YYYY-MM-DD package-level modified timestamp filter.

## `license` (type: `string`):

Case-insensitive publisher-maintained license metadata filter; not a compliance determination.

## `deprecated` (type: `string`):

Filter publisher deprecation metadata.

## `dependency` (type: `string`):

Checks runtime, dev, peer and optional dependency names.

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

Case-insensitive maintainer name or public email filter.

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

Case-insensitive publisher keyword filter.

## `maxPackages` (type: `integer`):

Bound on package list requests.

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

Total paid dataset-item cap across packages after filters. Also reduced against the run charge limit.

## Actor input object example

```json
{
  "packages": [
    "react"
  ],
  "version": "latest",
  "includeHistory": false,
  "maxHistoryVersions": 25,
  "deprecated": "any",
  "maxPackages": 20,
  "maxResults": 1
}
```

# Actor output Schema

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

All records from this run in the default dataset, shown with the Overview table view.

# 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 = {
    "packages": [
        "react"
    ],
    "version": "latest",
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/npm-package-intelligence").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 = {
    "packages": ["react"],
    "version": "latest",
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/npm-package-intelligence").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 '{
  "packages": [
    "react"
  ],
  "version": "latest",
  "maxResults": 1
}' |
apify call pink_comic/npm-package-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pink_comic/npm-package-intelligence"
        }
    }
}
```

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/6YFAtO8UMbx4GLBzp/builds/jDBs0U014sxNqncM6/openapi.json
