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

Extract plans, prices, billing periods and features from SaaS pricing pages. Get source-text evidence for extracted fields; unknown values stay null.

- **URL**: https://apify.com/miacx/saas-pricing-extractor.md
- **Developed by:** [mia.cx](https://apify.com/miacx) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Page Extractor

Turn public SaaS pricing pages into plan records your agent can compare without parsing the whole page.
Get names, quoted prices, billing periods, features and source-text evidence from JSON-LD or supported HTML pricing cards.
Unknown values stay null. JavaScript-only pricing is unavailable; no browser or runtime LLM calls run.
Each successfully extracted input URL costs $0.0018, plus $0.00005 per run start at default memory.

### Try it

```json
{"urls":["https://buttondown.com/pricing"]}
```

An empty input `{}` runs the same example. An empty `urls` list fails the run.
No upstream credentials are needed. Supply publicly accessible HTTP(S) pages.

### Use from an agent

Add `https://mcp.apify.com?tools=miacx/saas-pricing-extractor` to your MCP client and sign in to Apify.
Call the dedicated Actor tool with the input above, then read its completed dataset with `get-dataset-items`.
Or set `APIFY_TOKEN` to your Apify API token and request JSON rows:

```sh
curl --fail-with-body 'https://api.apify.com/v2/actors/miacx~saas-pricing-extractor/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"urls":["https://buttondown.com/pricing"]}'
```

### What you get

Read `status` first. On `ok`, inspect `plans` and each field's `evidence`; null values remain unknown.
The dataset contains one row per unique normalized input URL, in input order, subject to the spending limit.
A row contains all extracted plans, not one row per plan.

This output uses the recorded Buttondown JSON-LD fixture; four additional plans are omitted.
The timestamp comes from local fixture replay. These are historical fixture prices, not current live prices.

```json
{
  "url": "https://buttondown.com/pricing",
  "status": "ok",
  "ok": true,
  "sourceUrl": "https://buttondown.com/pricing",
  "fetchedAt": "2026-10-31T05:10:24.785Z",
  "method": "json-ld",
  "plans": [
    {
      "name": "Free",
      "priceAmount": 0,
      "currency": "USD",
      "billingPeriod": null,
      "billingModel": null,
      "freeTier": true,
      "trial": null,
      "ctaText": null,
      "ctaUrl": "https://buttondown.com/register",
      "features": [],
      "confidence": 0.7,
      "evidence": {
        "name": "\"name\":\"Free\"",
        "priceAmount": "\"price\":\"0\"",
        "currency": "\"priceCurrency\":\"USD\"",
        "cta": "\"url\":\"https://buttondown.com/register\"",
        "freeTier": "\"price\":\"0\""
      }
    }
  ],
  "error": null
}
```

Plan fields are always present. Missing features are `[]`; evidence keys are absent when no evidence was found.
`priceAmount` uses major currency units. Bare $ and ¥ leave `currency` null.
A quoted monthly amount billed annually remains monthly; annual totals are not divided by 12.
`billingPeriod` is monthly, yearly or null; `billingModel` is per_seat, flat or null.
`freeTier` and `trial` become false only when explicitly denied.

`ctaText` is the observed call-to-action text; `ctaUrl` resolves its link against the source page.
`features` retains feature text and limits, in source order. DOM features are deduplicated; structured feature entries may repeat.
`confidence` is a completeness score from 0 to 1, not a calibrated probability.
DOM evidence contains decoded text with normalized whitespace. Structured evidence uses original JSON tokens or relevant source strings.

Plans retain first-discovery order and deduplicate by name, amount, currency, billing period and billing model.
Distinct monthly and yearly quotes remain separate entries.
`sourceUrl` identifies the last associated page response; `fetchedAt` records when its response body was read.
Cached responses retain their original timestamp. Failures can retain a source URL and timestamp when a response was available.

### Input

| Field | Default | Accepted input |
| --- | --- | --- |
| `urls` | `["https://buttondown.com/pricing"]` | Nonempty list of public HTTP(S) URL strings, up to 4,096 characters per URL, on ports 80/443 without credentials. |

The Actor processes the list in chunks of up to ten URLs; it imposes no separate total URL-count cap.
An empty list, null or non-string item fails the run. Invalid URL strings become individual error rows.
Whitespace is trimmed, URLs are normalized and fragments are removed before deduplication.
A homepage follows its highest-ranked same-origin pricing link once. The extractor never guesses a pricing path.

### Pricing

A Pricing page event (`pricing-extracted`) costs $0.0018 per unique input URL that yields at least one plan.
All plans on the resulting page are included. Missing plan fields and cached pages still count.
Failed URLs incur no Pricing page events.
Duplicate normalized input URLs incur no additional events within one run.
Different inputs that reach the same pricing page count separately, including a homepage and its pricing URL.

Ten successful input URLs cost $0.01805, including the $0.00005 run start at default 256 MB memory.
The start charge applies even with no billable pages. Apify counts one start event per GB, with a minimum of one.
At the spending limit, the Actor stops; remaining inputs may have no rows.

### Limits and data freshness

- JSON-LD offers take precedence. The extractor does not merge missing fields from unrelated DOM text or reconcile stale JSON-LD.
- DOM extraction supports named pricing cards. Shared-column comparison tables, unnamed tiers, usage rates and price ranges are unsupported.
- Each page returns at most 100 plans and 64 features per plan. Feature text allows 500 characters; most scalar evidence allows 2,000.
- HTML is capped at 1 MiB and robots.txt at 512 KiB. Fetch chains allow three redirects and attempts allow ten seconds.
- Each internal batch allows 40 upstream fetches. Transient network errors, 429s and 5xx responses allow up to three attempts.

The Actor respects robots.txt before each page and redirect destination and blocks private-network addresses.
Pages requiring browser rendering or authentication cannot be extracted.
Public responses can be reused for up to one hour within a run, shortened by upstream cache lifetime.
Responses marked private, no-store or no-cache, or setting cookies, are excluded.
The Actor keeps at most 32 cached responses in memory and has no persistent HTML cache.

The synchronous API waits up to 300 seconds. Use [asynchronous runs](https://docs.apify.com/api/v2/actor-runs-post) for longer batches.

### If a row fails

| Status | Next step |
| --- | --- |
| `invalid_url` | Supply an absolute public HTTP(S) URL without credentials. |
| `robots_disallowed` | Use a page whose robots rules permit extraction. |
| `fetch_failed` | Inspect `error.message` for timeout, size, network or fetch-budget limits. |
| `http_error`, `not_html` | Check that the URL returns a public HTML page. |
| `no_pricing_found` | Supply the pricing page directly and check that supported plans exist in its returned HTML. |

Failed rows contain `ok: false`, `plans: []`, `method: null` and an `error` with code and message.
A missing pricing result does not establish that the product has no paid plans.

# Actor input Schema

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

Public HTTP(S) pricing pages or homepages, for example \["https://buttondown.com/pricing"]. Omitted runs that example; \[] or null fails the run. URLs allow up to 4,096 characters and ports 80/443, without credentials. Duplicates collapse after normalization and fragment removal. Homepages follow one same-origin pricing link. The Actor processes chunks of up to 10 URLs; each successful unique input incurs one Pricing page event per run.

## Actor input object example

```json
{
  "urls": [
    "https://buttondown.com/pricing"
  ]
}
```

# Actor output Schema

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

One row per item, each with a status field.

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

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

# Run the Actor and wait for it to finish
run = client.actor("miacx/saas-pricing-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://buttondown.com/pricing"
  ]
}' |
apify call miacx/saas-pricing-extractor --silent --output-dataset

```

## MCP server setup

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