# Ubuntu Security Notices Scraper (`real-estate-api/ubuntu-security-notices-scraper`) Actor

Ubuntu Security Notices Scraper is a Python tool to extract USN advisory IDs, affected release versions, package updates, CVE mappings, and issue descriptions from the Ubuntu Security API. It exports structured vulnerability datasets into clean CSV or JSON formats

- **URL**: https://apify.com/real-estate-api/ubuntu-security-notices-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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

### Ubuntu Security Notices Scraper — Extract Ubuntu Security Advisories and CVE Details

![Ubuntu Security Notices Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/ubuntu-security-notices-scraper-cover.png)

Extract Ubuntu Security Notices (USNs) with their associated CVE identifiers, summaries, publication dates, and affected package information. Export structured security advisory data to JSON, CSV, Excel, and other supported dataset formats.

### Features

- **Ubuntu Security Notices:** Collect USN advisory records from Canonical's publicly available security notices.
- **CVE Identification:** Extract CVE identifiers associated with each security notice.
- **Advisory Details:** Capture notice titles, summaries, and publication timestamps.
- **Affected Packages:** Retrieve release-specific package information, including package names, versions, descriptions, and source-package indicators.
- **Release Filtering:** Narrow results by Ubuntu release codename.
- **Detailed Records:** Choose whether to include additional notice details.
- **Duplicate Prevention:** Avoid duplicate records using USN identifiers.
- **Custom Result Limits:** Control the maximum number of notices collected.

### Use Cases

- **Vulnerability Monitoring:** Track Ubuntu security advisories and their associated CVEs.
- **Patch Planning:** Review affected packages across Ubuntu releases such as Noble and Jammy.
- **Compliance Records:** Maintain structured exports of security advisories for audits and security reviews.
- **Security Research:** Combine Ubuntu advisory records with other vulnerability datasets for further analysis.
- **Package Impact Analysis:** Identify affected package versions and descriptions across releases.

### Input Parameters

| Parameter | Type | Description | Default |
|---|---|---|---|
| `mode` | String | Select the collection mode. Currently supports `listNotices`. | `listNotices` |
| `release` | String | Optionally filter notices by Ubuntu release codename. | — |
| `details` | Boolean | Control whether additional notice details are included. | — |
| `maxItems` | Integer | Maximum number of notices to collect. | — |
| `requestDelayMs` | Integer | Delay between collection requests in milliseconds. | — |

### Example Input

```json
{
  "mode": "listNotices",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Extracted Data

| Field | Description |
|---|---|
| `usnId` | Ubuntu Security Notice identifier. |
| `noticeTitle` | Title of the security notice. |
| `summary` | Description of the reported security issue. |
| `published` | Notice publication timestamp. |
| `release_packages` | Affected packages grouped by Ubuntu release. |
| `cves_ids` | CVE identifiers associated with the notice. |
| `scrapedAt` | Date and time the record was collected. |

### Example Output

```json
{
  "usnId": "USN-8954-1",
  "noticeTitle": "zlib vulnerability",
  "summary": "zlib could be made to crash or run programs if it received specially crafted input.",
  "published": "2026-10-22T19:54:53.531412",
  "release_packages": {
    "noble": [
      {
        "name": "zlib",
        "version": "1:1.3.dfsg-3.1ubuntu2.3",
        "description": "Lossless data-compression library",
        "is_source": true
      }
    ]
  },
  "cves_ids": [
    "CVE-2026-85091"
  ],
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Working with Dataset

After the actor finishes, you can access the collected records in the Apify Dataset.

Export your results in formats such as:

- **JSON** — For structured data processing and automation.
- **CSV** — For spreadsheets and data analysis.
- **Excel** — For reviewing advisories and affected packages.
- **XML** — For compatible data-processing workflows.

### FAQ

**What is this scraper used for?**

It collects Ubuntu Security Notices with their associated CVE identifiers, summaries, publication dates, and affected package information.

**Who can use this actor?**

Security engineers, system administrators, SREs, vulnerability researchers, and compliance analysts who work with Ubuntu security advisories.

**Can I filter notices by Ubuntu release?**

Yes. Use the `release` input to filter notices by an Ubuntu release codename.

**Can I include additional notice details?**

Yes. The `details` option controls whether additional notice details are included.

**Can I run the actor automatically?**

Yes. You can configure an Apify schedule to collect updated security notices at your preferred intervals.

**Which Ubuntu releases are supported?**

The actor can collect release-specific package information available in the notices, including releases such as Noble and Jammy.

### Disclaimer

This is an independent data collection tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Canonical or Ubuntu. Ubuntu, Canonical, and related trademarks belong to their respective owners. The collected information is provided for research, monitoring, and informational purposes. Always verify security advisories and package information against official Canonical publications before making security or deployment decisions.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to fetch. List USN notices pages Canonical Ubuntu security notices newest first.

## `release` (type: `string`):

Optional release codename filter passed as release= (for example noble). Untested against Canonical.

## `details` (type: `string`):

Optional details/CVE filter query passed to Canonical. Untested.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between page requests. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds. Notice pages are large; raise if downloads time out.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "listNotices",
  "release": "noble",
  "details": "CVE-2024-3094",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/ubuntu-security-notices-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/ubuntu-security-notices-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 '{}' |
apify call real-estate-api/ubuntu-security-notices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/ubuntu-security-notices-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/lKyxVWP006pdJhgsN/builds/GDVZmhjqgWF4OYinK/openapi.json
