# deps.dev Scraper | Package Licenses, Advisories & Versions (`muzafferkadir/depsdev-scraper`) Actor

Scrape open-source package licenses, security advisories and versions from Google's deps.dev API: npm, PyPI, Go, Maven, Cargo, NuGet. No API key.

- **URL**: https://apify.com/muzafferkadir/depsdev-scraper.md
- **Developed by:** [Muzaffer Kadir YILMAZ](https://apify.com/muzafferkadir) (community)
- **Categories:** Developer tools, Open source, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 versions

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

## deps.dev Scraper

Scrape **open-source package metadata** — **licenses, security advisories, and versions** — for **npm, PyPI, Go, Maven, Cargo, and NuGet**, straight from **Google's deps.dev API**. No API key or setup needed.

Enter packages like `npm:express` or `pypi:django`, get clean, dated rows with each version's licenses and known advisories, ready to export to CSV, Excel, or JSON — or to feed a dependency-audit pipeline.

### Features

- **Official, rock-solid source** — reads Google's public `api.deps.dev` v3.
- **Six ecosystems** — `npm`, `pypi`, `go`, `maven`, `cargo`, `nuget`, with alias handling (`pip`→`pypi`, `crates`/`rust`→`cargo`, `golang`→`go`).
- **Licenses & advisories** — every row carries the version's SPDX licenses and the IDs of any known security advisories.
- **Latest or full history** — grab just the default (latest) version, or every published version.

### Use cases

- **License compliance** — audit the licenses of the packages your project depends on.
- **Security triage** — flag versions with known advisories before you ship them.
- **Version tracking** — schedule the Actor and watch for new releases of key packages.
- **Data pipelines** — build a structured package-metadata dataset without scraping registries directly.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `packages` | string\[] | Packages as `system:name`. System is everything before the FIRST colon. Examples: `npm:express`, `pypi:django`, `maven:com.google.guava:guava`, `cargo:serde`. |
| `includeAllVersions` | boolean | If true, return every version; otherwise only the default (latest) version. Default `false`. |
| `maxItems` | integer | Max version records total. Default `1000`. |

#### Example

```json
{
  "packages": ["npm:express", "pypi:django", "maven:com.google.guava:guava"],
  "includeAllVersions": false,
  "maxItems": 1000
}
```

### Output

```json
{
  "system": "npm",
  "package": "express",
  "version": "5.2.1",
  "isDefault": true,
  "publishedAt": "2025-12-01T20:49:43Z",
  "licenses": ["MIT"],
  "advisoryIds": [],
  "advisoryCount": 0,
  "links": [
    "https://expressjs.com/",
    "https://github.com/expressjs/express/issues"
  ],
  "url": "https://deps.dev/npm/express/5.2.1",
  "scrapedAt": "2026-08-11T18:00:00.000Z"
}
```

Download the dataset as **JSON, CSV, Excel, or XML**, or pull it via the Apify API.

### Pricing

Pay-per-event: **$0.01 per run start** (per GB of run memory) plus **$0.50 per 1,000 versions**. You only pay for versions actually returned. See the **Pricing** tab for current rates.

### FAQ

**Do I need an API key?**
No. deps.dev's API is public and free; this Actor just packages it into clean rows with licenses, advisories, and links.

**Which systems are supported?**
`npm`, `pypi`, `go`, `maven`, `cargo`, and `nuget`. Common aliases are normalized: `pip`→`pypi`, `crates`/`rust`→`cargo`, `golang`→`go`.

**How do I request a scoped or grouped name?**
Use the name as the registry knows it after the first colon: `npm:@angular/core`, `maven:com.google.guava:guava`, `go:golang.org/x/text`.

**Can I get every version?**
Yes — set `includeAllVersions` to `true`. Otherwise you get just the default (latest) version of each package.

### Disclaimer

This Actor uses the **public deps.dev API** provided by Google. It is not affiliated with or endorsed by Google. Package metadata is provided as-is; you are responsible for how you use it.

# Actor input Schema

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

Packages as "system:name", one per line. System is everything before the FIRST colon; the name is the rest (Maven names keep their own colon). Examples: npm:express, pypi:django, maven:com.google.guava:guava, cargo:serde, go:golang.org/x/text, nuget:Newtonsoft.Json. Scoped npm names work as-is, e.g. npm:@angular/core.

## `includeAllVersions` (type: `boolean`):

If true, return every version; otherwise only the default (latest) version.

## `maxItems` (type: `integer`):

Max version records total across all packages.

## `proxyConfiguration` (type: `object`):

Optional. Leave empty for most runs.

## Actor input object example

```json
{
  "packages": [
    "npm:express",
    "pypi:django"
  ],
  "includeAllVersions": false,
  "maxItems": 1000
}
```

# Actor output Schema

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

No description

# 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": [
        "npm:express",
        "pypi:django"
    ],
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("muzafferkadir/depsdev-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 = {
    "packages": [
        "npm:express",
        "pypi:django",
    ],
    "maxItems": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("muzafferkadir/depsdev-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 '{
  "packages": [
    "npm:express",
    "pypi:django"
  ],
  "maxItems": 1000
}' |
apify call muzafferkadir/depsdev-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muzafferkadir/depsdev-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/mGbSXyKbenhPKkVDl/builds/JAQnad0UxUSiES9Dx/openapi.json
