# SaaS Pricing Page Extractor (`s3nafps/saas-pricing-page-extractor`) Actor

Extract structured pricing plans, prices, billing periods, features, limits, and CTA text from public SaaS pricing pages.

- **URL**: https://apify.com/s3nafps/saas-pricing-page-extractor.md
- **Developed by:** [mohamed senator](https://apify.com/s3nafps) (community)
- **Categories:** SEO tools, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## SaaS Pricing Page Extractor

Extract pricing plans, prices, billing periods, features, limits, and CTA text from public SaaS pricing pages.

### What this Actor does

SaaS Pricing Page Extractor fetches public pricing pages, scans the HTML for pricing sections, and saves structured pricing data to the Apify Dataset.

It is designed for quick competitor pricing research where a clean JSON summary is more useful than manually reading each page.

### Use cases

- Build a competitor pricing spreadsheet.
- Track public SaaS plan names, prices, and billing periods.
- Collect pricing data for market research.
- Feed pricing pages into downstream monitoring or analysis tools.

### Who this is for

Founders, analysts, agencies, pricing researchers, GTM teams, product marketers, and data teams tracking public SaaS pricing.

### Input

- `urls` - Public SaaS pricing page URLs. Required, 1-50 items.
- `maxPages` - Maximum pages to process. Default: `10`, maximum: `50`.
- `includeRawText` - Include cleaned page text in the output. Default: `true`.
- `useBrowserFallback` - Reserved for JS-heavy pricing pages. The current Actor uses static extraction first and does not run a browser fallback yet. Default: `true`.

### Example input

```json
{
  "urls": ["https://www.apify.com/pricing"],
  "maxPages": 5,
  "includeRawText": true,
  "useBrowserFallback": true
}
````

### Output

The Actor saves one Dataset item per pricing URL.

- `sourceUrl` - Final fetched page URL.
- `companyName` - Hostname-derived company name.
- `pageTitle` - HTML page title.
- `currency` - First detected currency marker such as `$`, `USD`, `EUR`, or `GBP`.
- `plans` - Array of detected plans with `planName`, `price`, `billingPeriod`, `features`, `limits`, and `ctaText`.
- `hasFreePlan` - Whether free pricing appears on the page.
- `hasEnterprisePlan` - Whether enterprise, custom, or contact-sales pricing appears.
- `lastUpdatedText` - Matching "last updated" text when present.
- `rawText` - Cleaned page text, or `null` when disabled.
- `scrapedAt` - ISO timestamp for the run.
- `confidenceScore` - Heuristic extraction confidence from 0 to 1.
- `extractionStatus` - `succeeded` or `failed`.
- `errorMessage` - Failure reason when no plans are detected or the page request fails.

### Example output

```json
{
  "sourceUrl": "https://www.apify.com/pricing",
  "companyName": "apify",
  "pageTitle": "Pricing",
  "currency": "$",
  "plans": [
    {
      "planName": "Pro",
      "price": "$49",
      "billingPeriod": "month",
      "features": ["More usage", "Priority support"],
      "limits": ["10 projects"],
      "ctaText": "Start"
    }
  ],
  "hasFreePlan": true,
  "hasEnterprisePlan": true,
  "lastUpdatedText": null,
  "rawText": "Pricing page text...",
  "scrapedAt": "2026-07-04T00:00:00.000Z",
  "confidenceScore": 0.69,
  "extractionStatus": "succeeded",
  "errorMessage": null
}
```

### How it works

- Reads the Actor input.
- Normalizes and deduplicates pricing URLs.
- Fetches public HTML.
- Looks for pricing-like blocks containing prices, free/custom/contact-sales text, plan names, features, limits, and CTAs.
- Saves one structured result per page to the Apify Dataset.

### Limitations

- Public pages only.
- No login, private pricing, cookies, CAPTCHA bypass, or restricted content.
- Pricing page layouts vary widely, so extraction is heuristic.
- JavaScript-only pricing can return incomplete or failed results because browser fallback is not implemented in this version.
- Completeness depends on the page HTML available to a normal public request.

### Error handling

Invalid or empty `urls` input fails run validation. Request failures return a failed Dataset item with `extractionStatus: "failed"` and `errorMessage`. Pages with no detected pricing plans also return a failed item instead of silently succeeding.

### Troubleshooting

- If a page fails, confirm the URL is a public pricing page and can be opened without login.
- If no plans are detected, the pricing content may be rendered only by JavaScript or loaded after the initial HTML response.
- If the output is too large, set `includeRawText` to `false`.
- If plan details look incomplete, review the returned `rawText` to see what was available in the public HTML.

### API usage

```bash
curl -X POST "https://api.apify.com/v2/acts/USERNAME~saas-pricing-page-extractor/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://www.apify.com/pricing"],
    "maxPages": 5,
    "includeRawText": true,
    "useBrowserFallback": true
  }'
```

### Integration ideas

- Export pricing records to a spreadsheet or BI tool.
- Schedule runs for a fixed competitor list.
- Send failed pages to manual review.
- Pair with Competitor Change Monitor API for pricing page change alerts.

### SEO keywords

SaaS pricing scraper, pricing extractor, competitor pricing, pricing API, pricing plans, SaaS research, market intelligence, pricing monitor, Apify pricing actor, public pricing data

### Ethical use

This Actor is designed for public data and user-provided URLs only. Do not use it to access private, login-protected, or restricted content.

# Actor input Schema

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

Public SaaS pricing page URLs.

## `maxPages` (type: `integer`):

Maximum pricing pages to process.

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

Include cleaned page text in the output.

## `useBrowserFallback` (type: `boolean`):

Reserved for JS-heavy pricing pages. Static extraction is tried first.

## Actor input object example

```json
{
  "urls": [
    "https://www.apify.com/pricing"
  ],
  "maxPages": 10,
  "includeRawText": true,
  "useBrowserFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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.apify.com/pricing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s3nafps/saas-pricing-page-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://www.apify.com/pricing"] }

# Run the Actor and wait for it to finish
run = client.actor("s3nafps/saas-pricing-page-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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.apify.com/pricing"
  ]
}' |
apify call s3nafps/saas-pricing-page-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=s3nafps/saas-pricing-page-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SaaS Pricing Page Extractor",
        "description": "Extract structured pricing plans, prices, billing periods, features, limits, and CTA text from public SaaS pricing pages.",
        "version": "0.1",
        "x-build-id": "h1Fev7XFccJlpwhWA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/s3nafps~saas-pricing-page-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-s3nafps-saas-pricing-page-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/s3nafps~saas-pricing-page-extractor/runs": {
            "post": {
                "operationId": "runs-sync-s3nafps-saas-pricing-page-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/s3nafps~saas-pricing-page-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-s3nafps-saas-pricing-page-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Pricing page URLs",
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "description": "Public SaaS pricing page URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPages": {
                        "title": "Maximum pages",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum pricing pages to process.",
                        "default": 10
                    },
                    "includeRawText": {
                        "title": "Include raw text",
                        "type": "boolean",
                        "description": "Include cleaned page text in the output.",
                        "default": true
                    },
                    "useBrowserFallback": {
                        "title": "Use browser fallback",
                        "type": "boolean",
                        "description": "Reserved for JS-heavy pricing pages. Static extraction is tried first.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
