{
  "openapi": "3.0.1",
  "info": {
    "title": "US Click-to-Cancel, Subscription & ARL Compliance Auditor",
    "description": "Bulk-audit DTC & SaaS sites via fast HTTP for US Click-to-Cancel & Auto-Renewal laws (CA AB 2863, NY/NYC ARL, CO SB 25-145 B2B SaaS, ROSCA & CA SB 478 drip fees) with HTML/JS fix snippets & B2B outreach hooks.",
    "version": "0.0",
    "x-build-id": "aimOQ6upmRh8UX1RP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/healthy_addax~us-click-to-cancel-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-healthy_addax-us-click-to-cancel-auditor",
        "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/healthy_addax~us-click-to-cancel-auditor/runs": {
      "post": {
        "operationId": "runs-sync-healthy_addax-us-click-to-cancel-auditor",
        "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/healthy_addax~us-click-to-cancel-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-healthy_addax-us-click-to-cancel-auditor",
        "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",
        "properties": {
          "urls": {
            "title": "Target Store or SaaS URLs / Bare Domains",
            "type": "array",
            "description": "List of DTC store or SaaS URLs or bare domains to audit (supports full URLs like \"https://shop.example.com\", bare domains like \"app.example.com\", or RequestList objects like [{\"url\": \"https://shop.example.com\"}]).",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Single URL or Domain (Optional Shorthand)",
            "type": "string",
            "description": "Optional single store or SaaS URL/domain convenience field for REST webhooks, Clay HTTP columns, or MCP calls."
          },
          "datasetId": {
            "title": "Upstream Apify Dataset ID (Optional Chaining)",
            "type": "string",
            "description": "Optional Apify Dataset ID (e.g. from Shopify Store Scraper, Google Maps Scraper, or SaaS Directory Scraper) to auto-import URLs and deduplicate with urls."
          },
          "datasetUrlField": {
            "title": "Dataset URL Field Override (Optional)",
            "type": "string",
            "description": "Optional column name to extract URLs from datasetId items. When omitted, auto-detects website, url, domain, shopUrl, storeUrl, appUrl, or pricingUrl."
          },
          "maxLegalPagesPerDomain": {
            "title": "Max Internal Pricing/Terms/Cancel Subpages per Site",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of discovered same-origin internal pages (/cancel, /pricing, /plans, /subscribe, /membership, /terms, /billing, /faq) fetched per site in addition to the homepage (0-5).",
            "default": 3
          },
          "includeRemediationPack": {
            "title": "Generate US ARL Consent + 1-Click Cancel HTML/JS Pack",
            "type": "boolean",
            "description": "Generates ready-to-paste CA AB 2863 / CO SB 25-145 Unchecked Express Auto-Renewal Consent Box + 1-Click Online Cancellation Modal HTML/JS snippets when compliance findings exist (+$0.01/site).",
            "default": true
          },
          "checkClickToCancel": {
            "title": "Check Online Click-to-Cancel & Survey/Support Obstructions",
            "type": "boolean",
            "description": "Checks for online same-medium Click-to-Cancel links/portals vs. call-only/email-only/chat-only cancellation traps and NYC Oct 2026 mandatory exit-survey gates (CA AB 2863, NY GBL § 527-a, CO SB 25-145, ROSCA).",
            "default": true
          },
          "checkAffirmativeConsent": {
            "title": "Check Affirmative Auto-Renewal Consent & Trial Disclosures",
            "type": "boolean",
            "description": "Inspects subscription and trial flows for pre-checked recurring checkboxes (<input type=checkbox checked>), continuous auto-renewal disclosures, and post-trial conversion price/deadline terms.",
            "default": true
          },
          "checkDripFees": {
            "title": "Check Drip Pricing / Mandatory Junk Fees (CA SB 478)",
            "type": "boolean",
            "description": "Scans pricing, checkout, and terms text for mandatory service, processing, convenience, or platform fees disclosed outside upfront prices (Cal. Civ. Code § 1770(a)(29)).",
            "default": true
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Checks domain /robots.txt rules before scanning and skips disallowed paths.",
            "default": true
          },
          "maxUrls": {
            "title": "Max Sites Safety Cap",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard ceiling on the total number of sites audited in a single run to prevent accidental budget overruns.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max Concurrent HTTP Workers",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel HTTP site workers (1-20).",
            "default": 5
          },
          "domainDelayMs": {
            "title": "Per-Domain Polite Delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum polite delay in milliseconds between consecutive HTTP requests to the same hostname.",
            "default": 300
          },
          "requestTimeoutMs": {
            "title": "HTTP Request Timeout (ms)",
            "minimum": 2000,
            "maximum": 60000,
            "type": "integer",
            "description": "Strict timeout per HTTP request in milliseconds (default 12000ms).",
            "default": 12000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}