# SaaS Pricing Monitor - Track Plan Prices & Changes (`xegheplimo/saas-pricing-monitor`) Actor

Monitor SaaS pricing pages and return clean structured plan data: plan name, price, currency, billing period. Renders JavaScript, snapshots each URL and labels changes between runs.

- **URL**: https://apify.com/xegheplimo/saas-pricing-monitor.md
- **Developed by:** [TRAN XUAN DUY](https://apify.com/xegheplimo) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 pricing rows

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

## SaaS Pricing Monitor

Track SaaS pricing pages and get a clean, machine-readable record of every plan: name, price, currency and billing period. Snapshots are stored per URL, so each run tells you exactly what changed — plan added, removed, or repriced.

### What it does

- Fetches any pricing page and extracts plans — `{url, planName, price, priceText, currency, billingPeriod, change}`.
- **Renders JavaScript by default** (`renderJs: true`, Playwright + Chromium), so modern SPA pricing pages (Notion, Linear, Vercel, Sentry, Stripe) work out of the box. Set `renderJs: false` for a faster plain-HTTP run on static pages.
- Stores a per-URL snapshot in the default Key Value Store and compares the next run against it, labelling rows `new`, `removed`, or unchanged.
- Writes a `SUMMARY` record with `plansFound`, `changed` and `error` per URL, and never silently swallows a failure — errors are reported per URL.
- Falls back cleanly: if rendering fails or a page blocks automation, it retries with plain HTTP and reports `renderError` instead of returning nothing.

### Input

| Field | Type | Description |
|---|---|---|
| `urls` | array of strings | Pricing page URLs to monitor. |
| `renderJs` | boolean | Render with headless Chromium before parsing. Default `true`. |
| `mode` | string | `auto` (default) tries JSON-LD → pricing-card markup → constrained text fallback; `jsonld` uses structured data only; `css` treats one element per `cssSelector` as a plan card. |
| `cssSelector` | string | Selector used when `mode` is `css`. |
| `includeRawText` | boolean | Keep the surrounding raw text of each price for auditability. |
| `notifyOnChange` | boolean | Retain `change` labels on output rows. Does not send email. |

### Output

One dataset item per current or removed plan:

```json
{
  "url": "https://www.notion.com/pricing",
  "planName": "Plus",
  "price": 10,
  "priceText": "$10",
  "currency": "USD",
  "billingPeriod": "month",
  "change": "same"
}
```

Rows with no trustworthy plan name keep `planName: null` rather than inventing one — the field is honest about extraction confidence, and `priceText` still carries the raw price string.

### Use cases

- Competitive pricing intelligence on a schedule (Apify scheduler → dataset → Google Sheets).
- Detecting plan changes for a list of vendors you resell or benchmark against.
- Building a pricing dataset for analysis without hand-copying pages.

### Tested pages

Verified in a live run (renderJs=true): Notion, Linear, Vercel, Sentry returned recognisable plan names; Stripe (transaction-fee pricing) and GitHub returned partial rows. Rate-fee pages are not subscription plans — treat `planName: null` rows as raw price evidence, not as plans.

### Local run

`python main.py` reads `input.json` and writes `out/dataset.json`, `out/SUMMARY.json` and local snapshot state. Requires the Playwright Chromium browser (`python -m playwright install chromium`) when `renderJs` is true; the Docker image ships with it.

# Actor input Schema

## `urls` (type: `array`):

Pricing pages to monitor. One row set per URL; snapshots are stored per URL so the next run reports changes.

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

auto = JSON-LD, then pricing-card markup, then constrained text fallback. jsonld = structured data only. css = treat one element per cssSelector as a plan card.

## `cssSelector` (type: `string`):

Selector for one plan card, used only when mode is css.

## `renderJs` (type: `boolean`):

Render the page in headless Chromium before parsing. Needed for modern SPA pricing pages (Notion, Linear, Vercel). Turn off for a faster plain-HTTP run on static pages.

## `includeRawText` (type: `boolean`):

Keep the surrounding raw text of each price for auditability.

## `notifyOnChange` (type: `boolean`):

Retain change labels (none/new/removed/price_changed/first_run) on output rows. Does not send email.

## Actor input object example

```json
{
  "urls": [
    "https://www.notion.com/pricing",
    "https://linear.app/pricing",
    "https://vercel.com/pricing"
  ],
  "mode": "auto",
  "cssSelector": "",
  "renderJs": true,
  "includeRawText": false,
  "notifyOnChange": true
}
```

# Actor output Schema

## `rows` (type: `string`):

All pricing rows extracted in this run.

## `rowsCsv` (type: `string`):

Same rows in CSV format, ready for Google Sheets.

# 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 = {
    "urls": [
        "https://www.notion.com/pricing",
        "https://linear.app/pricing",
        "https://vercel.com/pricing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xegheplimo/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 = { "urls": [
        "https://www.notion.com/pricing",
        "https://linear.app/pricing",
        "https://vercel.com/pricing",
    ] }

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

```

## MCP server setup

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