{
  "openapi": "3.0.1",
  "info": {
    "title": "SaaS Pricing Delta Tracker",
    "description": "Tracks plans, prices, features, and billing cycles across SaaS pricing pages. Detects changes, quarantines anomalous runs, and fires webhook alerts. 3-tier fetch: HTTP, Lightpanda, Camoufox.",
    "version": "1.0",
    "x-build-id": "m1jSQXwlpk0ER52b0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/floydyra~saas-pricing-delta-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-floydyra-saas-pricing-delta-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/floydyra~saas-pricing-delta-tracker/runs": {
      "post": {
        "operationId": "runs-sync-floydyra-saas-pricing-delta-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/floydyra~saas-pricing-delta-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-floydyra-saas-pricing-delta-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Pricing Page URLs / Domains",
            "type": "array",
            "description": "List of SaaS domains (e.g. stripe.com) or full URLs (e.g. https://stripe.com/pricing) to track.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Execution Mode",
            "enum": [
              "changes_only",
              "snapshot"
            ],
            "type": "string",
            "description": "snapshot: Always save pricing plan results. changes_only: Only output data when plans or pricing configurations have changed.",
            "default": "changes_only"
          },
          "webhook_url": {
            "title": "Notification Webhook URL",
            "type": "string",
            "description": "An external HTTP POST endpoint. Fired only on pricing changes/deltas."
          },
          "concurrency_limit": {
            "title": "Global Concurrency Limit",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of total pages monitored in parallel.",
            "default": 3
          },
          "max_concurrency_per_domain": {
            "title": "Per-Domain Concurrency Limit",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of parallel browser sessions/requests active against the same domain name.",
            "default": 1
          },
          "delay_between_same_domain_requests_ms": {
            "title": "Same-Domain Polite Delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Wait time between consecutive requests to the same domain name to avoid overloading target sites.",
            "default": 2000
          },
          "allow_empty_snapshots": {
            "title": "Allow Empty Snapshots",
            "type": "boolean",
            "description": "Set to true if you want to permit overwriting healthy snapshots with empty plan arrays.",
            "default": false
          },
          "confidence_threshold": {
            "title": "Confidence Gate Threshold",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Confidence score boundary. Plans with lower scores are warning-flagged and excluded from alert triggers.",
            "default": 0.65
          },
          "debug": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "If enabled, saves raw DOM HTML and headless screenshots of browser states to Key-Value store on failures.",
            "default": false
          },
          "debug_artifact_retention_days": {
            "title": "Debug Artifact Retention Days",
            "type": "integer",
            "description": "Number of days before old debug HTML and screenshot files are automatically pruned from Key-Value store.",
            "default": 7
          },
          "alert_deduplication": {
            "title": "Alert Deduplication",
            "type": "boolean",
            "description": "If enabled, blocks duplicate alerts if identical changes have already been sent in previous runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}