# npm Package API – downloads, license, OSV vulns – $1.5/1k (`henrycrawl/npm-package-intel`) Actor

npm package intel: latest version, license, weekly downloads, publish date, maintainers, deps count, repo URL and OSV vulnerabilities with fixed versions. Works with AI agents via Apify MCP. Pay per package.

- **URL**: https://apify.com/henrycrawl/npm-package-intel.md
- **Developed by:** [Henry Crawl](https://apify.com/henrycrawl) (community)
- **Categories:** Developer tools, MCP servers, Open source
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 package results

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 Package Intel API – downloads, license, OSV vulnerabilities

Checking npm packages one by one (version, license, popularity, maintainers, known vulnerabilities) is slow. Give this actor a list of packages (or a search phrase) and get one clean row per package from the npm registry, npm download stats, deps.dev and OSV.dev.

### Output fields

| Field | Description |
|---|---|
| package | Package name |
| latestVersion | Latest version (`latest` dist-tag) |
| description | Package description |
| license | SPDX license of the latest version |
| weeklyDownloads | Downloads in the last 7 days (api.npmjs.org) |
| latestPublishedAt | When the latest version was published |
| maintainersCount | Number of npm maintainers (no personal data returned) |
| dependenciesCount, dependencies | Runtime dependencies of the latest version |
| peerDependenciesCount | Number of peer dependencies |
| deprecated | Deprecation message, or `false` |
| hasTypes, nodeEngine | Bundled TypeScript types; `engines.node` |
| repositoryUrl, homepage, npmUrl | Links |
| vulnerabilitiesTotal | All OSV advisories ever published for the package (incl. malware advisories) |
| vulnerabilitiesAffectingLatest | Advisories that still affect the latest version |
| maxSeverityAffectingLatest | Highest severity among those (CRITICAL / HIGH / MODERATE / LOW) |
| vulnerabilities\[] | `id`, `aliases` (CVE), `summary`, `severity`, `cvssVector`, `cwe`, `fixedVersions`, `introducedVersions`, `affectsLatest`, `published`, `url` (latest-affecting first, then by severity) |

### Example output (real run, vulnerability list shortened)

```json
{
 "package": "lodash",
 "latestVersion": "4.18.1",
 "description": "Lodash modular utilities.",
 "license": "MIT",
 "weeklyDownloads": 211231423,
 "latestPublishedAt": "2026-04-01T21:01:20Z",
 "maintainersCount": 3,
 "dependenciesCount": 0,
 "dependencies": [],
 "peerDependenciesCount": 0,
 "deprecated": false,
 "hasTypes": false,
 "nodeEngine": null,
 "repositoryUrl": "https://github.com/lodash/lodash",
 "homepage": "https://lodash.com/",
 "vulnerabilitiesTotal": 10,
 "vulnerabilitiesAffectingLatest": 0,
 "maxSeverityAffectingLatest": null,
 "vulnerabilities": [
  {
   "id": "GHSA-jf85-cpcp-j695",
   "aliases": [
    "CVE-2019-10744",
    "SNYK-JS-LODASH-450202"
   ],
   "summary": "Prototype Pollution in lodash",
   "severity": "CRITICAL",
   "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
   "cwe": [
    "CWE-1321",
    "CWE-20"
   ],
   "fixedVersions": [
    "4.17.12"
   ],
   "introducedVersions": [
    "0"
   ],
   "affectsLatest": false,
   "published": "2019-07-10T19:45:23Z",
   "url": "https://osv.dev/vulnerability/GHSA-jf85-cpcp-j695"
  }
 ],
 "npmUrl": "https://www.npmjs.com/package/lodash",
 "type": "result",
 "status": "OK",
 "scrapedAt": "2026-11-21T16:07:59.709271+00:00"
}
```

### Pricing

**$1.50 per 1,000 packages** (pay per result). Packages that do not exist and invalid names return free error rows. Set `maxResults` to cap your cost.

### Use with AI agents (MCP)

Connect this actor to Claude, Cursor or any MCP client:

`https://mcp.apify.com/?tools=henrycrawl/npm-package-intel`

Ask things like "Check my package.json dependencies for vulnerabilities that affect the latest versions" or "Compare weekly downloads and licenses of these 10 date libraries".

### Input examples

```json
{"packages": ["express", "lodash", "react", "axios", "@babel/core"], "maxResults": 12}
```

```json
{"searchKeywords": "markdown parser", "maxResults": 60}
```

```json
{"packages": ["next", "axios"], "onlyVulnsAffectingLatest": true}
```

Data sources: npm registry, api.npmjs.org, deps.dev and OSV.dev (all public). Not affiliated with npm, Inc. or GitHub.

### Support

Questions, bugs or a field you need? Email **support@tidyware.app** — we reply within 1 business day. You can also open an issue on this page.

# Actor input Schema

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

npm package names (e.g. express, @babel/core). npmjs.com package URLs and name@version are accepted too.

## `searchKeywords` (type: `string`):

Optional search phrase (e.g. 'markdown parser'). Matching packages, in npm relevance order, are added to the list up to maxResults.

## `includeVulnerabilities` (type: `boolean`):

Look up known vulnerabilities and malware advisories for each package on OSV.dev.

## `onlyVulnsAffectingLatest` (type: `boolean`):

List only advisories that still affect the latest published version (counts of all advisories are still returned).

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

Maximum number of packages for the whole run (you are only charged for delivered results).

## Actor input object example

```json
{
  "packages": [
    "express",
    "lodash",
    "react",
    "axios",
    "moment",
    "chalk",
    "next",
    "vue",
    "jsonwebtoken",
    "minimist",
    "webpack",
    "@babel/core"
  ],
  "includeVulnerabilities": true,
  "onlyVulnsAffectingLatest": false,
  "maxResults": 12
}
```

# Actor output Schema

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

One row per result, plus free error rows (type = error).

## `summary` (type: `string`):

Counts for this run (SUMMARY record).

# 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": [
        "express",
        "lodash",
        "react",
        "axios",
        "moment",
        "chalk",
        "next",
        "vue",
        "jsonwebtoken",
        "minimist",
        "webpack",
        "@babel/core"
    ],
    "maxResults": 12
};

// Run the Actor and wait for it to finish
const run = await client.actor("henrycrawl/npm-package-intel").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": [
        "express",
        "lodash",
        "react",
        "axios",
        "moment",
        "chalk",
        "next",
        "vue",
        "jsonwebtoken",
        "minimist",
        "webpack",
        "@babel/core",
    ],
    "maxResults": 12,
}

# Run the Actor and wait for it to finish
run = client.actor("henrycrawl/npm-package-intel").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": [
    "express",
    "lodash",
    "react",
    "axios",
    "moment",
    "chalk",
    "next",
    "vue",
    "jsonwebtoken",
    "minimist",
    "webpack",
    "@babel/core"
  ],
  "maxResults": 12
}' |
apify call henrycrawl/npm-package-intel --silent --output-dataset

```

## MCP server setup

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

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/3hYPBGc16Hm60CT7V/builds/nueeiuP0crJRmwybB/openapi.json
