# OSV Advisory Monitor - New advisories for packages (`mmdincer/osv-advisory-monitor`) Actor

Extract open-source vulnerability advisories from api.osv.dev. Includes the package, advisory id and whether it is new. Package versions you list, including a baseline and a newly seen advisory. Results as JSON, CSV or Excel. Access through API or MCP.

- **URL**: https://apify.com/mmdincer/osv-advisory-monitor.md
- **Developed by:** [Muhammet Mustafa Dincer](https://apify.com/mmdincer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 package version checkeds

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

### 🤖 What does the OSV advisory monitor do?

A OSV advisory monitor reads open-source vulnerability advisories from api.osv.dev.
It can collect:

- **open-source vulnerability advisories** from api.osv.dev
- **the package, advisory id and whether it is new**
- **A saved baseline** when the source compares the next run
- **JSON, CSV or Excel** from the dataset
- **The same run through the Apify API or MCP**

### 💡 Why use the OSV advisory monitor?

People use a OSV advisory monitor when the same public page would otherwise be checked by hand.

- **Watch a change.** The Actor keeps a baseline and writes the next difference.
- **Feed a sheet.** The dataset opens as JSON, CSV or Excel.
- **Call it from code.** The Apify API runs the same input.
- **Hand it to an agent.** Apify MCP can call the Actor with that input.
- **Stay on the sample.** The prefilled input is the short, cheap run.

### 🚀 How do you run the OSV advisory monitor?

1. Open this Actor and click **Try for free**.
2. Keep the prefilled sample, or set Packages.
3. Leave the other fields on their defaults unless you need a narrower run.
4. Click **Run**.
5. Open the **Dataset** tab and download JSON, CSV or Excel.

Sample input from the prefilled schema:

```json
{
  "packages": [
    "npm:lodash@4.17.20"
  ],
  "onlyNew": false,
  "monitorName": "default"
}
```

### ⚠️ What limits does this Actor have?

The input schema is the limit. Defaults and prefills are unchanged by this copy update.

- `packages`: at most 10 items.
- Actor Start is priced in the table. The other events are billed only when the source charges them and the charge is accepted.
- A spending limit that cannot pay for the next event stops that event. The source does not invent a result to replace it.

### 💳 How much does the OSV advisory monitor cost?

The table is the live pay-per-event price list (`pricingInfos`) for this Actor. It is not a guessed price.
| Event | What the price list calls it | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `apify-actor-start` | Actor Start | $0.0005 | $0.0005 | $0.0005 | $0.0005 | $0.0005 | $0.0005 |
| `package-checked` | Package version checked | $0.01 | $0.009 | $0.008 | $0.007 | $0.007 | $0.007 |
| `new-advisory` | Newly seen advisory | $0.02 | $0.018 | $0.016 | $0.014 | $0.014 | $0.014 |

One Free-plan run that bills one `package-checked` plus Actor Start is $0.0005 + $0.01 = $0.0105. 1,000 `package-checked` events on the Free plan are $10.00, before Actor Start. These figures use only the live prices in the table.

`apify-actor-start` is in the live price list. Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event).
The source names `package-checked` and charges it with Actor.charge when that event happens. One package version whose OSV query returned HTTP 200, including a version with no advisories and a later run whose ids did not change. A network error, an API error, an invalid line, or a skip because of the spending limit is not charged.
The source names `new-advisory` and charges it with Actor.charge when that event happens. Charged in addition to the package check for each advisory id that was not in the saved baseline. The first baseline and an id that was already saved are not this event.

### 📝 What input does this Actor take?

Required fields are marked. Defaults and prefills are the quick run; this text does not change them.

| Field | Required | What it means |
| --- | --- | --- |
| `packages` (Packages) | Yes | One package version per line, as <code>ecosystem:name@version</code>. Example: <code>npm:lodash@4... |
| `onlyNew` (Only new advisories) | No | Leave this off for the sample so a repeated run still writes the current advisory ids. Turn it on... |
| `monitorName` (Watchlist name) | No | Baselines are stored per watchlist. Use a new name to start over without deleting the old snapshot. |

### 📊 What output does this Actor return?

The dataset schema names every stored field.

| Field | What the schema says |
| --- | --- |
| `recordType` | advisory: one row per OSV id, or a package with no ids. |
| `status` | baseline_saved, unchanged, new_advisory, resolved, no_advisories, api... |
| `ecosystem` | OSV ecosystem, such as npm. |
| `name` | Package name. |
| `version` | Version sent to OSV. |
| `advisoryId` | OSV id. Null when the response had no advisories. |
| `aliases` | Public aliases such as CVE ids. Empty when the id left the response. |
| `summary` | Short public summary from OSV, at most 300 characters. |
| `severity` | First CVSS vector string from OSV, when present. |
| `published` | OSV published timestamp. |
| `modified` | OSV modified timestamp. |
| `input` | The package line as entered. |
| `httpStatus` | HTTP status from OSV. Null when no request was made. |
| `checkedAt` | When this row was handled, ISO 8601. |
| `charged` | True when the package-checked event was accepted for the query behind... |
| `message` | What changed, or why the package was not read. |

Field examples declared in the dataset schema shipped with this Actor. They are not a newly invented row.

```json
{
  "recordType": "advisory",
  "status": "baseline_saved",
  "ecosystem": "npm",
  "name": "lodash",
  "version": "4.17.20",
  "advisoryId": "GHSA-29mw-wpgm-hmr9",
  "aliases": [
    "CVE-2020-28500"
  ],
  "summary": "Regular Expression Denial of Service (ReDoS) in lodash",
  "severity": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
  "published": "2022-01-06T20:30:46Z",
  "modified": "2022-01-06T20:30:46Z",
  "input": "npm:lodash@4.17.20",
  "httpStatus": 200,
  "checkedAt": "2026-11-07T12:00:00.000Z",
  "charged": true,
  "message": "Baseline saved."
}
```

### 🔌 How do you call this Actor from the API?

Call `mmdincer/osv-advisory-monitor` with the Apify API. The body is the input schema. MCP clients on Apify use the same input.
Make and Zapier can start the Actor through Apify's integration. The input is the same JSON.

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("mmdincer/osv-advisory-monitor").call(run_input={"packages": ["npm:lodash@4.17.20"], "onlyNew": false, "monitorName": "default"})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

```javascript
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "<APIFY_TOKEN>" });
const run = await client.actor("mmdincer/osv-advisory-monitor").call({"packages": ["npm:lodash@4.17.20"], "onlyNew": false, "monitorName": "default"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### ❓ What else should you know?

#### Does the OSV advisory monitor need a login?

The sample run uses the public source and the prefilled input. A field that asks for your own key is optional unless the input schema marks it required.

#### What does the OSV advisory monitor charge for?

The primary event in the live price list is `package-checked` (Package version checked). Actor Start is separate. An event the source does not call is not billed by the source.

#### Can this Actor run on a schedule?

Yes. Save the input and schedule it. The next run compares against the baseline when the source stores one.

#### Where do the results go?

Results land in the run dataset. Download JSON, CSV or Excel, or read them with the API.

### ⚖️ Is it legal to use the OSV advisory monitor?

You are responsible for the source terms and for privacy law that applies to you, including the GDPR if you handle personal data. This Actor stores the public fields described above. This Actor is not affiliated with OSV.

Not affiliated with OSV.
Source license: Apache-2.0.
The live prices in the table are set on the platform.
The source calls api.osv.dev. Snyk is a different product and is not this Actor.

### 🔗 Which related actors sit beside this one?

Other public Actors from mmdincer in this group:

- [ASN Prefix Monitor - Announcements for networks](https://apify.com/mmdincer/asn-prefix-change-monitor)

Download the dataset as JSON, CSV or Excel when the run finishes.

The same input can be saved and started again tomorrow.

A status row explains a page that was skipped or blocked.

Defaults and prefills stay the short sample, so the first run stays small.

The dataset schema is the list of columns in the download.

An empty optional filter leaves that filter unused.

The run page shows the log beside the dataset.

You can copy the input JSON into the API example above.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

Save the finished dataset before you change the input.

# Changelog

This Actor's version history is a separate document: https://apify.com/mmdincer/osv-advisory-monitor/changelog.md

# Actor input Schema

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

One package version per line, as <code>ecosystem:name@version</code>. Example: <code>npm:lodash@4.17.20</code> or <code>npm:@scope/pkg@1.2.3</code>. Up to 10.

## `onlyNew` (type: `boolean`):

Leave this off for the sample so a repeated run still writes the current advisory ids. Turn it on, or omit the field, to hide ids that were already in the baseline. A first read, a newly seen id, and an id that left the OSV response are still written.

## `monitorName` (type: `string`):

Baselines are stored per watchlist. Use a new name to start over without deleting the old snapshot.

## Actor input object example

```json
{
  "packages": [
    "npm:lodash@4.17.20"
  ],
  "onlyNew": false,
  "monitorName": "default"
}
```

# Actor output Schema

## `advisories` (type: `string`):

One row per advisory id, or one row when OSV returned none.

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

Packages requested, baselines, new ids, and ids that left the response.

# 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:lodash@4.17.20"
    ],
    "onlyNew": false,
    "monitorName": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mmdincer/osv-advisory-monitor").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:lodash@4.17.20"],
    "onlyNew": False,
    "monitorName": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("mmdincer/osv-advisory-monitor").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:lodash@4.17.20"
  ],
  "onlyNew": false,
  "monitorName": "default"
}' |
apify call mmdincer/osv-advisory-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mmdincer/osv-advisory-monitor"
        }
    }
}
```

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/L8J8qQK9JbCxgEp7l/builds/y3YUtl89zqHIIMkVO/openapi.json
