{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Sales Trigger Radar",
    "description": "Monitor business websites for booking-link failures, contact changes, technology changes, and website availability. Export evidence-backed sales triggers.",
    "version": "0.1",
    "x-build-id": "k1OyBSnyyFgRzf6uj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexascout~website-sales-trigger-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexascout-website-sales-trigger-radar",
        "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/nexascout~website-sales-trigger-radar/runs": {
      "post": {
        "operationId": "runs-sync-nexascout-website-sales-trigger-radar",
        "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/nexascout~website-sales-trigger-radar/run-sync": {
      "post": {
        "operationId": "run-sync-nexascout-website-sales-trigger-radar",
        "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": [
          "websites"
        ],
        "properties": {
          "websites": {
            "title": "Websites",
            "minItems": 1,
            "type": "array",
            "description": "Business website URLs or domains to monitor (e.g. https://example.com).",
            "items": {
              "type": "string"
            }
          },
          "maxWebsites": {
            "title": "Max websites",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on the number of websites processed in a single run.",
            "default": 100
          },
          "historyKey": {
            "title": "History key",
            "type": "string",
            "description": "Isolates independent baseline histories (e.g. 'agency-client-a'). Different keys never share baselines.",
            "default": "default"
          },
          "saveHistory": {
            "title": "Save history",
            "type": "boolean",
            "description": "Persist a new baseline after each successfully scanned website.",
            "default": true
          },
          "baselineMode": {
            "title": "Baseline mode",
            "enum": [
              "AUTO",
              "FORCE_BASELINE",
              "COMPARE_ONLY"
            ],
            "type": "string",
            "description": "AUTO = use prior baseline if present else create one; FORCE_BASELINE = overwrite baseline without emitting change triggers; COMPARE_ONLY = require an existing baseline.",
            "default": "AUTO"
          },
          "crawlMode": {
            "title": "Crawl mode",
            "enum": [
              "HOMEPAGE_ONLY",
              "CONVERSION_FOCUSED",
              "CUSTOM_PATHS"
            ],
            "type": "string",
            "description": "HOMEPAGE_ONLY = homepage only; CONVERSION_FOCUSED = homepage + bounded conversion-relevant pages; CUSTOM_PATHS = homepage + customCriticalPaths.",
            "default": "CONVERSION_FOCUSED"
          },
          "maxPagesPerWebsite": {
            "title": "Max pages per website",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bounded cap on pages crawled per website.",
            "default": 12
          },
          "maxDepth": {
            "title": "Max depth",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum link depth from the homepage. 0 crawls the homepage only (no conversion subpages).",
            "default": 2
          },
          "pageTimeoutSecs": {
            "title": "Page timeout (secs)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-request HTTP timeout in seconds.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum concurrent website scans.",
            "default": 5
          },
          "checkBookingAndCtas": {
            "title": "Check booking & CTAs",
            "type": "boolean",
            "description": "Detect booking and contact calls to action and safely check their destination pages without submitting forms.",
            "default": true
          },
          "checkBrokenLinks": {
            "title": "Check broken links",
            "type": "boolean",
            "description": "Report newly broken or recovered custom critical pages.",
            "default": true
          },
          "checkContactChanges": {
            "title": "Check contact changes",
            "type": "boolean",
            "description": "Compare public phone numbers, email addresses, and contact-page links with the previous baseline.",
            "default": true
          },
          "checkTechnologyChanges": {
            "title": "Check technology changes",
            "type": "boolean",
            "description": "Detect changes in visible website and booking-provider technologies.",
            "default": true
          },
          "checkPerformance": {
            "title": "Check performance",
            "type": "boolean",
            "description": "Optional PageSpeed (LAB) delta check. Score is 0..1; a material regression is rechecked before CONFIRMED. Requires PAGESPEED_API_KEY; otherwise reported unavailable.",
            "default": true
          },
          "checkAvailability": {
            "title": "Check availability",
            "type": "boolean",
            "description": "Report website availability changes and rechecked outages.",
            "default": true
          },
          "checkMajorContentChanges": {
            "title": "Check major content changes",
            "type": "boolean",
            "description": "Report material changes to conversion-related content while suppressing routine dynamic content.",
            "default": true
          },
          "verifyCriticalIssues": {
            "title": "Verify critical issues",
            "type": "boolean",
            "description": "Recheck high-severity failures once before marking them confirmed.",
            "default": true
          },
          "recheckFailures": {
            "title": "Recheck failures",
            "type": "boolean",
            "description": "Repeat a failed request once before reporting a confirmed issue.",
            "default": true
          },
          "performanceDevice": {
            "title": "Performance device",
            "enum": [
              "MOBILE",
              "DESKTOP"
            ],
            "type": "string",
            "description": "Choose the mobile or desktop Lighthouse measurement profile.",
            "default": "MOBILE"
          },
          "ctaKeywords": {
            "title": "CTA keywords",
            "type": "array",
            "description": "Keywords used to detect conversion CTAs.",
            "default": [
              "book",
              "book now",
              "schedule",
              "schedule now",
              "reserve",
              "reservation",
              "appointment",
              "get quote",
              "request quote",
              "contact",
              "call now",
              "order",
              "buy",
              "sign up",
              "free consultation"
            ],
            "items": {
              "type": "string"
            }
          },
          "customCriticalPaths": {
            "title": "Custom critical paths",
            "type": "array",
            "description": "Additional relative/absolute paths to inspect and recheck as independent critical pages (e.g. /booking). Emits CRITICAL_PAGE_BROKEN / CRITICAL_PAGE_RECOVERED.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "emitUnchanged": {
            "title": "Emit unchanged websites",
            "type": "boolean",
            "description": "When true, also emit a row for websites with no triggers.",
            "default": false
          },
          "minimumSeverity": {
            "title": "Minimum severity",
            "enum": [
              "INFO",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "type": "string",
            "description": "Only emit triggers at or above this severity.",
            "default": "LOW"
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Include additional diagnostics useful for investigating a run.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. When useApifyProxy is true (default), HTTP requests are routed through the Apify proxy.",
            "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}