# SaaS Pricing, OpenAPI & Changelog Semantic Diff Monitor (`lu-tools/saas-pricing-api-diff-monitor`) Actor

Stateful, noise-free competitor monitor for n8n, Slack & AI agents: detects real SaaS pricing tier changes, OpenAPI breaking changes, and changelog/policy diffs with severity ratings (BREAKING/MAJOR/MINOR). Zero proxies.

- **URL**: https://apify.com/lu-tools/saas-pricing-api-diff-monitor.md
- **Developed by:** [lu Jerry](https://apify.com/lu-tools) (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.00 / 1,000 target url 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

## SaaS Pricing, OpenAPI & Changelog Semantic Diff Monitor

**Stop getting spammed by CSS tweaks and timestamp noise. Get structured `BREAKING / MAJOR / MINOR` JSON alerts only when competitors actually change prices, break APIs, or update policies.**

Built for **RevOps, Product Marketing, DevRel, n8n/Make automation workflows, Slack alerts, and MCP AI Agents**—powered by persistent Apify Key-Value snapshots with **zero browsers and zero proxies**.

***

### Why Semantic Diffing Beats Generic Website Change Monitors

Generic website monitors trigger false alarms every time a marketing banner, script hash, or copyright year updates. **SaaS Pricing, OpenAPI & Changelog Semantic Diff Monitor** runs dedicated deterministic parsers for 3 high-value B2B surfaces:

1. **SaaS Pricing Pages (`pricing`)**: Strips scripts, banners, and layout noise—tracks only currency prices (`$29/mo`, `€49`, etc.), tier/plan headings (`Starter`, `Pro`, `Enterprise`), and quota/feature lines (`SSO`, `SOC 2`, `10,000 requests`). Price changes or removed plans are automatically flagged **`BREAKING`**.
2. **OpenAPI / Swagger Specs (`openapi`)**: Parses live OpenAPI 3.x / Swagger JSON contracts—deterministically detects **removed endpoints**, **newly required parameters/bodies**, and **removed 2xx responses (`BREAKING`)** as well as new endpoints and version bumps (`MAJOR`).
3. **Changelogs, RSS/Atom Feeds, Privacy & Subprocessor Pages (`changelog`)**: Tracks semantic headings and feed entries, flagging deprecations, sunsets, and new subprocessors automatically.

***

### Sample Output (When a Competitor Raises Prices or Breaks an API)

```json
{
  "label": "Competitor API Spec",
  "url": "https://api.example.com/openapi.json",
  "monitorType": "openapi",
  "status": "CHANGED",
  "severity": "BREAKING",
  "changed": true,
  "summary": "OpenAPI BREAKING diff: 2 breaking, +2 added, -1 removed.",
  "addedCount": 2,
  "removedCount": 1,
  "breakingChanges": [
    "Endpoint removed: DELETE /v1/legacy",
    "New required parameter on GET /v1/users: header:org_id"
  ],
  "added": [
    "[ENDPOINT] POST /v2/agents",
    "[REQUIRED_PARAM] GET /v1/users -> header:org_id"
  ],
  "removed": [
    "[ENDPOINT] DELETE /v1/legacy"
  ],
  "checkedAt": "2026-11-21T02:50:00.000Z"
}
```

Enable `"onlyPushChanges": true` on scheduled daily/hourly runs so your n8n/Slack workflow stays **completely silent** when nothing changed!

***

### Transparent Value-Based Pay-Per-Event (PPE) Pricing

Pay pennies for quiet checks, and only pay extra when real actionable intelligence is found:

- **`page-checked`**: **$0.003 per target URL checked** ($3 per 1,000 checks)
- **`meaningful-diff-detected`**: **$0.025** charged **only** when a `BREAKING` or `MAJOR` semantic change is detected
- **Zero proxy surcharges & minimal compute** (256–512 MB RAM, ~0.5s per URL)

***

### Input Example

```json
{
  "targets": [
    { "url": "https://apify.com/pricing", "monitorType": "pricing", "label": "Apify Pricing" },
    { "url": "https://petstore3.swagger.io/api/v3/openapi.json", "monitorType": "openapi", "label": "Petstore OpenAPI" },
    { "url": "https://linear.app/changelog", "monitorType": "changelog", "label": "Linear Changelog" }
  ],
  "stateStoreName": "saas-diff-monitor-snapshots",
  "onlyPushChanges": false,
  "compactMode": true,
  "maxConcurrency": 5
}
```

***

### How Persistent Snapshots Work Across Scheduled Runs

1. **Run 1 (`BASELINE`)**: Captures and stores each target's normalized semantic snapshot inside your named Key-Value Store (`stateStoreName`).
2. **Run 2+ (Daily/Hourly Schedule or n8n Cron)**: Loads the previous snapshot, diffs deterministically, updates the snapshot, and outputs exact `BREAKING / MAJOR / MINOR / UNCHANGED` verdicts.

# Actor input Schema

## `targets` (type: `array`):

List of objects with { url, monitorType, label }. monitorType can be 'auto', 'pricing', 'openapi', or 'changelog'.

## `stateStoreName` (type: `string`):

Named Apify Key-Value Store used to persist previous snapshots across scheduled runs so diffs work automatically.

## `onlyPushChanges` (type: `boolean`):

When enabled, targets with UNCHANGED status are omitted from the dataset (ideal for n8n/Slack alert workflows). Always outputs on first BASELINE run.

## `compactMode` (type: `boolean`):

Return a slim, flattened JSON payload optimized for Slack webhooks, n8n IF nodes, and MCP AI agents.

## `maxConcurrency` (type: `integer`):

Number of URLs fetched and diffed in parallel (1 to 15).

## `timeoutMs` (type: `integer`):

HTTP request timeout in milliseconds (3000 to 20000).

## Actor input object example

```json
{
  "targets": [
    {
      "url": "https://apify.com/pricing",
      "monitorType": "pricing",
      "label": "Apify Pricing"
    },
    {
      "url": "https://petstore3.swagger.io/api/v3/openapi.json",
      "monitorType": "openapi",
      "label": "Petstore OpenAPI v3"
    },
    {
      "url": "https://linear.app/changelog",
      "monitorType": "changelog",
      "label": "Linear Changelog"
    }
  ],
  "stateStoreName": "saas-diff-monitor-snapshots",
  "onlyPushChanges": false,
  "compactMode": false,
  "maxConcurrency": 5,
  "timeoutMs": 8000
}
```

# Actor output Schema

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

Table of monitored targets with change status, severity, summary, and price/endpoint deltas.

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

Aggregated counts of BREAKING, MAJOR, MINOR, BASELINE, and UNCHANGED targets.

# 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 = {
    "targets": [
        {
            "url": "https://apify.com/pricing",
            "monitorType": "pricing",
            "label": "Apify Pricing"
        },
        {
            "url": "https://petstore3.swagger.io/api/v3/openapi.json",
            "monitorType": "openapi",
            "label": "Petstore OpenAPI v3"
        },
        {
            "url": "https://linear.app/changelog",
            "monitorType": "changelog",
            "label": "Linear Changelog"
        }
    ],
    "stateStoreName": "saas-diff-monitor-snapshots"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lu-tools/saas-pricing-api-diff-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 = {
    "targets": [
        {
            "url": "https://apify.com/pricing",
            "monitorType": "pricing",
            "label": "Apify Pricing",
        },
        {
            "url": "https://petstore3.swagger.io/api/v3/openapi.json",
            "monitorType": "openapi",
            "label": "Petstore OpenAPI v3",
        },
        {
            "url": "https://linear.app/changelog",
            "monitorType": "changelog",
            "label": "Linear Changelog",
        },
    ],
    "stateStoreName": "saas-diff-monitor-snapshots",
}

# Run the Actor and wait for it to finish
run = client.actor("lu-tools/saas-pricing-api-diff-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 '{
  "targets": [
    {
      "url": "https://apify.com/pricing",
      "monitorType": "pricing",
      "label": "Apify Pricing"
    },
    {
      "url": "https://petstore3.swagger.io/api/v3/openapi.json",
      "monitorType": "openapi",
      "label": "Petstore OpenAPI v3"
    },
    {
      "url": "https://linear.app/changelog",
      "monitorType": "changelog",
      "label": "Linear Changelog"
    }
  ],
  "stateStoreName": "saas-diff-monitor-snapshots"
}' |
apify call lu-tools/saas-pricing-api-diff-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lu-tools/saas-pricing-api-diff-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/GFUWaTHGzdx8Nv9RI/builds/6ehVsI1fuW8hesb0m/openapi.json
