# SaaS Pricing Page Structured JSON Extractor (MCP Ready) (`corridordata/saas-pricing-page-structured-extractor`) Actor

Convert any SaaS domain or /pricing URL into structured JSON: plan tiers, monthly & annual prices, currency, per-seat vs usage-based model, free tier/trial detection, enterprise custom flags, and clean Markdown for AI agents.

- **URL**: https://apify.com/corridordata/saas-pricing-page-structured-extractor.md
- **Developed by:** [Corridor Data](https://apify.com/corridordata) (community)
- **Categories:** AI, Agents, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 structured saas pricing pages

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 Page Structured JSON Extractor (MCP & AI-Agent Ready)

Turn any **SaaS `/pricing` URL or company domain** (e.g., `linear.app`, `resend.com`, `basecamp.com`) into **deterministic structured JSON**—capturing plan `tiers`, `lowestPaidMonthlyPrice`, `currency`, `perSeatModel`, `usageBasedModel`, `freePlanAvailable`, `freeTrial`, `enterpriseCustom`, `keyLimits`, and token-clean `cleanMarkdown` for RAG and MCP AI Agents.

***

### Why AI Agents & Competitive Intelligence Teams Use This Actor

1. **Domain-to-Pricing Auto-Discovery:** Pass bare domains (`"linear.app"`) or explicit `/pricing` URLs—the Actor automatically probes `/pricing` and `/plans` before falling back to the root URL.
2. **Zero-LLM Deterministic Mode Included (`$0` API Key Required):** Extracts structured tiers, currencies, seat vs. usage billing flags, free trials, enterprise sales gates, and quota bullets out-of-the-box in `<128 MB` RAM.
3. **Optional BYO-LLM Precision Pass (`OpenAI` / `DeepSeek` / `OpenRouter`):** Supply an optional `llmApiKey` + `llmBaseUrl` to run a structured JSON LLM refinement pass over complex pricing matrices.
4. **Built for Apify MCP Server:** Designed from day one for Claude Desktop, Cursor, n8n AI Agents, and programmatic SaaS comparison engines.

***

### Sample Output JSON

```json
{
  "domain": "linear.app",
  "resolvedUrl": "https://linear.app/pricing",
  "pageTitle": "Pricing – Linear",
  "currency": "USD",
  "lowestPaidMonthlyPrice": 8,
  "highestListedPrice": 16,
  "freePlanAvailable": true,
  "freeTrial": null,
  "perSeatModel": true,
  "usageBasedModel": false,
  "annualDiscountMentioned": true,
  "enterpriseCustom": true,
  "tiers": [
    { "name": "Free", "monthlyPrice": 0, "annualMonthlyEquivalent": null, "currency": "USD", "billingUnit": "per_month", "customPricing": false },
    { "name": "Basic", "monthlyPrice": 10, "annualMonthlyEquivalent": 8, "currency": "USD", "billingUnit": "per_seat_month", "customPricing": false },
    { "name": "Business", "monthlyPrice": 16, "annualMonthlyEquivalent": 14, "currency": "USD", "billingUnit": "per_seat_month", "customPricing": false },
    { "name": "Enterprise", "monthlyPrice": null, "annualMonthlyEquivalent": null, "currency": "USD", "billingUnit": "custom_quote", "customPricing": true }
  ],
  "keyLimits": ["Unlimited members", "SAML SSO"],
  "extractionMethod": "deterministic-dom-markdown",
  "scrapedAt": "2026-11-18T14:26:00.000Z"
}
```

***

### API Quickstart (`curl` / MCP)

```bash
curl -X POST "https://api.apify.com/v2/acts/corridordata~saas-pricing-page-structured-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://linear.app/pricing", "https://resend.com/pricing"]
  }'
```

***

### Use with Claude Desktop, Cursor & AI Agents (Apify MCP Server)

This Actor is **MCP-native** and can be invoked autonomously by **Claude Desktop**, **Cursor**, **Windsurf**, **VS Code**, **OpenAI Agents SDK**, or **LangChain** using either the dedicated `@corridordata/mcp-server` package (tool: `extract_saas_pricing`) or Apify's official `@apify/actors-mcp-server`.

#### Option A — Corridor Data B2B Suite (`@corridordata/mcp-server`)

```json
{
  "mcpServers": {
    "corridordata": {
      "command": "npx",
      "args": [
        "-y",
        "@corridordata/mcp-server",
        "--tools",
        "extract_saas_pricing"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### Option B — Official Apify MCP Server (`@apify/actors-mcp-server`)

```json
{
  "mcpServers": {
    "corridordata-saas-pricing-page-structured-extractor": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "corridordata/saas-pricing-page-structured-extractor"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

**Example Agent Prompt:**

> *"Compare the pricing tiers, free-plan limits, and per-seat billing models of linear.app and resend.com."*

***

### Automate in `n8n`, `Make`, `Clay` & Python

#### 1. `n8n` HTTP Request Node (Synchronous JSON Dataset Output)

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/corridordata~saas-pricing-page-structured-extractor/run-sync-get-dataset-items?format=json&clean=true`
- **Header:** `Authorization: Bearer YOUR_APIFY_TOKEN`
- **JSON Body:**

```json
{
  "urls": [
    "https://linear.app/pricing",
    "https://resend.com/pricing"
  ]
}
```

#### 2. Copy-Paste Importable `n8n` Workflow Snippet (`Cmd+V` / `Ctrl+V` onto Canvas)

Copy the JSON block below and paste it directly onto any `n8n` workflow canvas to create a scheduled trigger + pre-wired Apify node immediately:

```json
{
  "name": "Weekly Competitor SaaS Pricing Tier & Packaging Change Watcher -> Slack",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 8 * * 1-5"
            }
          ]
        }
      },
      "id": "c0010001-0001-4000-8000-000000000001",
      "name": "Weekday Morning Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        240,
        320
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/corridordata~saas-pricing-page-structured-extractor/run-sync-get-dataset-items?format=json&clean=true",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "={{ 'Bearer ' + ($env.APIFY_TOKEN || 'YOUR_APIFY_TOKEN') }}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"urls\": [\n    \"https://linear.app/pricing\",\n    \"https://resend.com/pricing\"\n  ]\n}",
        "options": {
          "timeout": 180000
        }
      },
      "id": "c0010001-0001-4000-8000-000000000002",
      "name": "Run corridordata/saas-pricing-page-structured-extractor",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        520,
        320
      ]
    }
  ],
  "connections": {
    "Weekday Morning Schedule": {
      "main": [
        [
          {
            "node": "Run corridordata/saas-pricing-page-structured-extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
```

#### 3. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("corridordata/saas-pricing-page-structured-extractor").call(run_input={
  "urls": [
    "https://linear.app/pricing",
    "https://resend.com/pricing"
  ]
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

***

### Frequently Asked Questions (FAQ)

- **Do I need residential proxies or external API keys?**\
  No. This Actor runs in an ultra-lightweight `128 MB` container using optimized public endpoints—zero proxy configuration or third-party subscriptions required.
- **How does Pay-Per-Event (`result-item`) billing work?**\
  You are only billed per validated record written to your output dataset (`result-item`), with automatic volume discounts on Apify `BRONZE`, `SILVER`, and `GOLD` plans. You can cap spend on any run using Apify's `maxTotalChargeUsd` setting.
- **Can I export results to CSV, Excel, Parquet, or Webhook?**\
  Yes—every run writes to a standard Apify Dataset supporting one-click export to **JSON, CSV, XLSX, XML, RSS**, or automatic webhook delivery to **Clay, HubSpot, Salesforce, Slack, Google Sheets, and n8n**.

# Actor input Schema

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

List of SaaS pricing URLs or root domains (bare domains automatically probe /pricing and /plans).

## `includeCleanMarkdown` (type: `boolean`):

Include a stripped, token-efficient Markdown representation of the pricing page alongside structured JSON fields.

## `llmApiKey` (type: `string`):

Optional API key if you want an OpenAI-compatible LLM pass on top of the built-in deterministic HTML/JSON-LD pricing parser.

## `llmBaseUrl` (type: `string`):

OpenAI-compatible chat completions URL when llmApiKey is provided (e.g. https://api.openai.com/v1/chat/completions or https://api.deepseek.com/v1/chat/completions).

## `llmModel` (type: `string`):

Model identifier used when llmApiKey is supplied (e.g. gpt-4o-mini or deepseek-chat).

## Actor input object example

```json
{
  "urls": [
    "https://linear.app/pricing",
    "https://resend.com/pricing",
    "https://basecamp.com/pricing"
  ],
  "includeCleanMarkdown": true,
  "llmBaseUrl": "https://api.openai.com/v1/chat/completions",
  "llmModel": "gpt-4o-mini"
}
```

# Actor output Schema

## `pricingPages` (type: `string`):

Extracted SaaS pricing tiers, billing models, free-trial flags, and Markdown.

## `runSummary` (type: `string`):

Execution summary and extraction mode statistics.

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

// Run the Actor and wait for it to finish
const run = await client.actor("corridordata/saas-pricing-page-structured-extractor").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://linear.app/pricing",
        "https://resend.com/pricing",
        "https://basecamp.com/pricing",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corridordata/saas-pricing-page-structured-extractor"
        }
    }
}
```

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/snzlgiEekmPNCSS4t/builds/fnLG3bKYh1kuEc6SS/openapi.json
