{
  "openapi": "3.0.1",
  "info": {
    "title": "SaaS Pricing & Feature Tracker",
    "description": "Scrapes SaaS company pricing pages to extract plan names, prices, features, limits, and billing options into structured JSON. Auto-discovers pricing pages from homepages. Supports monthly/annual toggle detection, change tracking, and webhook alerts for competitor monitoring.",
    "version": "1.0",
    "x-build-id": "UhogaoyDzvewvAInU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/constructive_calm~saas-pricing-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-constructive_calm-saas-pricing-tracker",
        "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/constructive_calm~saas-pricing-tracker/runs": {
      "post": {
        "operationId": "runs-sync-constructive_calm-saas-pricing-tracker",
        "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/constructive_calm~saas-pricing-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-constructive_calm-saas-pricing-tracker",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "URLs to Scrape",
            "type": "array",
            "description": "List of SaaS company URLs. Can be pricing pages directly (e.g., https://slack.com/pricing) or homepages (e.g., https://slack.com). If a homepage is provided, the actor will attempt to auto-discover the pricing page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "useAI": {
            "title": "AI-Enhanced Extraction",
            "type": "boolean",
            "description": "Automatically use AI vision to verify and improve results when standard extraction is incomplete (missing plans, missing prices, or low confidence). Costs an additional $0.05 per result where AI is needed. Disable to use only CSS-based extraction.",
            "default": true
          },
          "discoverPricingPage": {
            "title": "Auto-Discover Pricing Page",
            "type": "boolean",
            "description": "When enabled, if a URL does not appear to be a pricing page, the actor will crawl the homepage to find a link to the pricing page.",
            "default": true
          },
          "country": {
            "title": "Pricing Region",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "CA",
              "AU",
              "JP",
              "BR",
              "IN",
              "NL",
              "SE",
              "SG"
            ],
            "type": "string",
            "description": "Country to view pricing from. Many SaaS sites show different prices and currencies based on location. Set this to see pricing as it appears in your target market.",
            "default": "US"
          },
          "extractFeatureDetails": {
            "title": "Extract Feature Details",
            "type": "boolean",
            "description": "When enabled, the actor will attempt to extract detailed feature comparison tables in addition to plan-level feature lists. This may increase run time.",
            "default": true
          },
          "useBrowser": {
            "title": "Browser Rendering Mode",
            "enum": [
              "auto",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Controls when to use a full browser (Playwright) vs. fast HTTP requests (Cheerio). 'Auto' tries Cheerio first and falls back to browser if pricing data is not found.",
            "default": "auto"
          },
          "includeScreenshot": {
            "title": "Capture Pricing Page Screenshot",
            "type": "boolean",
            "description": "Save a screenshot of each pricing page to the key-value store for visual reference. Requires browser rendering.",
            "default": false
          },
          "detectChanges": {
            "title": "Detect Pricing Changes",
            "type": "boolean",
            "description": "Compare results against a previous run and flag any pricing changes. Requires 'datasetName' or 'previousDatasetId' to be set.",
            "default": true
          },
          "previousDatasetId": {
            "title": "Previous Dataset ID",
            "type": "string",
            "description": "Dataset ID from a prior run to compare against for change detection. If not set and 'datasetName' is provided, the actor will automatically load the previous results from the named dataset."
          },
          "datasetName": {
            "title": "Named Dataset",
            "type": "string",
            "description": "Optional named dataset for persistent storage across runs. Enables automatic change detection between scheduled runs without needing to set 'previousDatasetId'."
          },
          "webhookUrl": {
            "title": "Webhook URL for Change Alerts",
            "type": "string",
            "description": "Optional URL to POST change notifications to when pricing changes are detected. The webhook payload includes a summary of all changes found."
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of pages to process concurrently. Lower values are gentler on target sites.",
            "default": 5
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests per Crawl",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total number of HTTP requests the actor will make. Use 0 for unlimited.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for bypassing anti-bot measures. Recommended for production use.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}