{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Withdrawal Button, EmpCo & Omnibus Store Auditor (MCP)",
    "description": "Fast HTTP store auditor for the mandatory EU Electronic Withdrawal Button (Directive 2023/2673 / BGB § 356a), abolished EU ODR links, EmpCo Directive 2024/825 green claims & Omnibus 30-day pricing. Outputs HTML/JS fixes & B2B outreach hooks.",
    "version": "0.0",
    "x-build-id": "Vn2Yb5oBtvrxLKm0q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/healthy_addax~eu-withdrawal-omnibus-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-healthy_addax-eu-withdrawal-omnibus-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~eu-withdrawal-omnibus-auditor/runs": {
      "post": {
        "operationId": "runs-sync-healthy_addax-eu-withdrawal-omnibus-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~eu-withdrawal-omnibus-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-healthy_addax-eu-withdrawal-omnibus-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 URLs or Bare Domains",
            "type": "array",
            "description": "List of store URLs or bare domains to audit (supports full URLs like \"https://shop.example.de\", bare domains like \"shop.example.de\", or RequestList objects like [{\"url\": \"https://shop.example.de\"}]).",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Single Store URL or Domain (Optional Shorthand)",
            "type": "string",
            "description": "Optional single store URL or bare 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 Google Maps Scraper or E-Commerce Lead Extractor) to automatically import store URLs and deduplicate with urls."
          },
          "datasetUrlField": {
            "title": "Dataset URL Field Override (Optional)",
            "type": "string",
            "description": "Optional column name to extract store URLs from datasetId items. When omitted, auto-detects website, url, domain, shopUrl, or storeUrl."
          },
          "maxLegalPagesPerDomain": {
            "title": "Max Internal Legal/Subpages per Store",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of discovered same-origin internal pages (Withdrawal, Impressum, AGB/Terms, Returns, Product/Sale) fetched per store in addition to the homepage (0-5).",
            "default": 3
          },
          "includeRemediationPack": {
            "title": "Generate Multilingual HTML/JS Remediation Pack",
            "type": "boolean",
            "description": "Generates a ready-to-paste multilingual 2-step EU Art. 11a Electronic Withdrawal Widget (HTML/JS) + Omnibus 30-day lowest price snippet when compliance gaps are detected (+$0.01/store).",
            "default": true
          },
          "checkWithdrawalButton": {
            "title": "Check EU Art. 11a Electronic Withdrawal Button",
            "type": "boolean",
            "description": "Checks for interactive 2-step electronic contract withdrawal flows across EN/DE/FR/ES/IT/NL/PL vs. static PDFs or guest-hostile login walls (Directive (EU) 2023/2673 Art. 11a / BGB § 356a).",
            "default": true
          },
          "checkAbolishedOdrLink": {
            "title": "Check Abolished EU ODR Link Trap",
            "type": "boolean",
            "description": "Scans homepage, Impressum, and Terms/AGB pages for outdated links to ec.europa.eu/consumers/odr (permanently shut down July 20, 2025 under Regulation (EU) 2024/3228).",
            "default": true
          },
          "checkEmpCoGreenClaims": {
            "title": "Check EU EmpCo Greenwashing Claims",
            "type": "boolean",
            "description": "Detects generic environmental claims (eco-friendly, climate neutral, klimaneutral, éco-responsable, etc.) and checks for recognized third-party certifications (EU Ecolabel, Blauer Engel, GOTS, OEKO-TEX, FSC, B Corp) under Directive (EU) 2024/825.",
            "default": true
          },
          "checkOmnibusPricing": {
            "title": "Check EU Omnibus 30-Day Lowest Price",
            "type": "boolean",
            "description": "Detects strike-through/compare-at discount indicators and checks whether 30-day lowest prior price wording is disclosed alongside discounts (Directive (EU) 2019/2161 Art. 6a).",
            "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 Stores Safety Cap",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard ceiling on the total number of stores audited in a single run to prevent accidental budget overruns.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max Concurrent Store Workers",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel HTTP store 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}