# Apify Saas Pricing Monitor (`heralded_bounty/apify-saas-pricing-monitor`) Actor

- **URL**: https://apify.com/heralded_bounty/apify-saas-pricing-monitor.md
- **Developed by:** [Donghyun LEE](https://apify.com/heralded_bounty) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 companies monitored

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/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

## B2B SaaS Pricing & Changelog Diff Monitor

> **Quick Links & Related Tools:**
>
> - **Run on Apify Store:** [Apify SaaS Pricing Monitor](https://apify.com/heralded_bounty/apify-saas-pricing-monitor)
> - **n8n & Make Automation Pack ($19):** [AI Competitor Pricing & Web Intel Pack on Gumroad](https://9413612092659.gumroad.com/l/competitor-intel-n8n-make)
> - **CleanParse Web & Table Extractor API:** [RapidAPI](https://rapidapi.com/ZhannaBee/api/cleanparse-ai-web-table-extractor) · [GitHub](https://github.com/ZhannaBee/a2a-doc-extractor-api)

**Fast, HTTP-only competitive intelligence for B2B SaaS teams — with deterministic Delta Diff tracking and $0 external LLM costs.**

Track competitor pricing tiers, billing changes, new plans, and product changelog releases across your market automatically. Built for scheduled daily or weekly runs on Apify with persistent snapshot memory.

***

### Why Use This Actor?

- **100% Pure HTTP (`httpx` + `BeautifulSoup4` / `lxml`)**: No heavy headless browsers, no flaky LLM hallucinations, and zero external API keys required.
- **Automatic Endpoint Discovery**: Pass bare domains like `linear.app` or `resend.com` (or explicit `/pricing` and `/changelog` URLs) — the Actor automatically discovers `/pricing`, `/plans`, `/changelog`, `/releases`, and RSS/Atom feeds.
- **Core Moat — Stateful Delta Diff Engine**: Persists canonical snapshot hashes, plan prices, feature lists, and release entries in a named Apify Key-Value Store (with automatic local JSON fallback when running offline). Every subsequent run automatically reports:
  - Price increases/decreases with exact `delta` and `pct_change`
  - Newly launched or sunsetted pricing tiers (`added_plans` / `removed_plans`)
  - Plan feature additions and removals (`feature_changes`)
  - Brand-new changelog releases (`new_releases`)
- **Enterprise-Safe SSRF Protection**: Blocks private IPv4/IPv6 ranges, loopback, link-local cloud metadata (`169.254.169.254`), CGNAT, non-HTTP(S) schemes, and validates every HTTP redirect hop before connecting.
- **Transparent Pay-Per-Event (PPE) Billing**: Charged **$0.01 per `company-monitored`** event — only billed when a competitor company is successfully fetched and analyzed. Respects user spending limits (`maxTotalChargeUsd`).

***

### Top Use Cases

1. **Competitive Pricing Alerts (Slack / Make / n8n / Zapier)**\
   Schedule this Actor weekly with `"onlyPushChanges": true` and trigger a webhook whenever a competitor raises prices, introduces a new Enterprise tier, or changes seat-based billing.
2. **Product Marketing & Battlecard Automation**\
   Keep competitive battlecards automatically synced with your competitors' latest changelog releases and feature packaging shifts.
3. **SaaS Investor & Market Intelligence Pipelines**\
   Track pricing power and shipping velocity across 50–500 B2B SaaS companies at a fraction of browser-scraping cost.
4. **RevOps & Pricing Strategy Benchmarks**\
   Export structured monthly/annual pricing tables into Google Sheets, Snowflake, or Airtable for longitudinal SaaS pricing analysis.

***

### Input Configuration

```json
{
  "targets": [
    "linear.app",
    "resend.com",
    "https://stripe.com/pricing"
  ],
  "includePricing": true,
  "includeChangelog": true,
  "maxChangelogEntries": 10,
  "stateStoreName": "saas-monitor-snapshots",
  "onlyPushChanges": false,
  "timeoutSeconds": 15,
  "maxConcurrency": 5
}
```

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `targets` | `string[]` | *Required* | Competitor domains (`linear.app`) or explicit `/pricing` / `/changelog` URLs. |
| `includePricing` | `boolean` | `true` | Discover and parse structured pricing plans. |
| `includeChangelog` | `boolean` | `true` | Discover and parse recent changelog / release notes. |
| `maxChangelogEntries` | `integer` | `10` | Maximum changelog items extracted per company (1–50). |
| `stateStoreName` | `string` | `"saas-monitor-snapshots"` | Named Apify Key-Value Store for cross-run baseline persistence. |
| `onlyPushChanges` | `boolean` | `false` | Push dataset records only when `changes_detected` is `true`. |
| `timeoutSeconds` | `number` | `15` | Per-request HTTP timeout in seconds (3–60). |
| `maxConcurrency` | `integer` | `5` | Max competitor domains processed in parallel (1–20). |

***

### Sample Output JSON (Run 2 — Changes Detected)

```json
{
  "domain": "acmecloud.io",
  "status": "ok",
  "checked_at": "2026-11-30T09:00:00Z",
  "pricing_url": "https://acmecloud.io/pricing",
  "changelog_url": "https://acmecloud.io/changelog",
  "plan_count": 3,
  "changelog_count": 2,
  "pricing_plans": [
    {
      "plan_name": "Starter",
      "monthly_price": 0.0,
      "annual_price": 0.0,
      "currency": "USD",
      "billing_unit": "free",
      "is_custom_pricing": false,
      "price_display": "$0 / month",
      "features": [
        "Up to 3 team members",
        "1,000 API requests/month",
        "Community support"
      ]
    },
    {
      "plan_name": "Pro",
      "monthly_price": 29.0,
      "annual_price": 24.0,
      "currency": "USD",
      "billing_unit": "per_user_per_month",
      "is_custom_pricing": false,
      "price_display": "$29/mo | $24/mo billed annually",
      "features": [
        "Unlimited projects",
        "SSO & SAML authentication",
        "Priority email support"
      ]
    },
    {
      "plan_name": "Enterprise",
      "monthly_price": null,
      "annual_price": null,
      "currency": "USD",
      "billing_unit": "custom",
      "is_custom_pricing": true,
      "price_display": "Custom",
      "features": [
        "Dedicated VPC deployment",
        "99.99% uptime SLA",
        "Dedicated solutions architect"
      ]
    }
  ],
  "changelog_entries": [
    {
      "title": "v2.5.0 - Automated Workflow Rules",
      "date": "2026-11-28",
      "version": "v2.5.0",
      "summary": "Trigger automated actions when issue priorities change or SLAs approach breach thresholds.",
      "url": "https://acmecloud.io/changelog/v2-5-0"
    },
    {
      "title": "v2.4.0 - Audit Log Exports",
      "date": "2026-11-10",
      "version": "v2.4.0",
      "summary": "Export workspace audit logs in CSV and JSONL formats for SOC 2 compliance.",
      "url": "https://acmecloud.io/changelog/v2-4-0"
    }
  ],
  "snapshot_hash": "8f4b2e91c7c1...",
  "is_first_run": false,
  "changes_detected": true,
  "diff": {
    "status": "changes_detected",
    "previous_snapshot_hash": "1c0a9d4431e2...",
    "current_snapshot_hash": "8f4b2e91c7c1...",
    "added_plans": [],
    "removed_plans": [],
    "price_changes": [
      {
        "plan_name": "Pro",
        "field": "monthly_price",
        "old_value": 20.0,
        "new_value": 29.0,
        "delta": 9.0,
        "pct_change": 45.0,
        "currency": "USD"
      }
    ],
    "feature_changes": [
      {
        "plan_name": "Pro",
        "added_features": [
          "SSO & SAML authentication"
        ],
        "removed_features": []
      }
    ],
    "new_releases": [
      {
        "title": "v2.5.0 - Automated Workflow Rules",
        "date": "2026-11-28",
        "version": "v2.5.0",
        "summary": "Trigger automated actions when issue priorities change or SLAs approach breach thresholds.",
        "url": "https://acmecloud.io/changelog/v2-5-0"
      }
    ],
    "summary": [
      "Pro monthly_price changed: 20.0 -> 29.0 USD (+45.0%)",
      "Pro features updated (+1 / -0)",
      "New release: v2.5.0 - Automated Workflow Rules"
    ]
  },
  "warnings": []
}
```

***

### Pay-Per-Event Pricing

| Event Name | Price (USD) | Trigger |
| :--- | :--- | :--- |
| `company-monitored` | `$0.01` | Charged once per successfully fetched & analyzed SaaS domain. Blocked/unreachable targets are never charged. |

***

### Local Development & Testing

```bash
pip install -r requirements.txt
pip install pytest pytest-asyncio

## Run full unit test suite
pytest -v

## Run live 2-company smoke test (Run 1 baseline + Run 2 diff verification)
python scripts/smoke_test_live.py
```

# Actor input Schema

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

List of B2B SaaS domains (e.g. linear.app, resend.com) or explicit /pricing and /changelog URLs. Domains automatically discover pricing and changelog endpoints.

## `includePricing` (type: `boolean`):

Discover and extract structured pricing plans (monthly/annual prices, currency, billing unit, features).

## `includeChangelog` (type: `boolean`):

Discover and extract recent changelog/release entries (date, version, title, summary).

## `maxChangelogEntries` (type: `integer`):

Maximum number of latest changelog or release items to extract per company.

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

Named Apify Key-Value Store used to persist baseline snapshots across scheduled runs for delta diff tracking. Leave default to persist state automatically.

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

When enabled, dataset output only includes companies where pricing or changelog changes were detected since the previous snapshot.

## `timeoutSeconds` (type: `number`):

Maximum time to wait for each HTTP request.

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

Maximum number of competitor domains processed concurrently.

## Actor input object example

```json
{
  "targets": [
    "linear.app",
    "resend.com"
  ],
  "includePricing": true,
  "includeChangelog": true,
  "maxChangelogEntries": 10,
  "stateStoreName": "saas-monitor-snapshots",
  "onlyPushChanges": false,
  "timeoutSeconds": 15,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `monitoringResults` (type: `string`):

Full JSON dataset containing structured pricing plans, changelog releases, and delta diff reports for all monitored SaaS companies.

## `overviewTable` (type: `string`):

Concise tabular overview highlighting domain status, changes_detected flag, plan counts, and release counts.

# 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": [
        "linear.app",
        "resend.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("heralded_bounty/apify-saas-pricing-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": [
        "linear.app",
        "resend.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("heralded_bounty/apify-saas-pricing-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": [
    "linear.app",
    "resend.com"
  ]
}' |
apify call heralded_bounty/apify-saas-pricing-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,heralded_bounty/apify-saas-pricing-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/sObe6l6HHksM31l78/builds/ewMvLvu5DiXwsD08n/openapi.json
