{
  "openapi": "3.0.1",
  "info": {
    "title": "WCAG Accessibility Auditor — axe-core Site Scan",
    "description": "Enterprise-grade WCAG 2.1/2.2 auditor via axe-core headless Chromium. Single-page, multi-URL batch, and same-domain crawl with EN 301 549 mapping and prioritized remediation reports. Per-page charging on success only. Ideal for EAA compliance and accessibility monitoring.",
    "version": "1.0",
    "x-build-id": "04VZVT21gSlWCsBg9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perryay~wcag-accessibility-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perryay-wcag-accessibility-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/perryay~wcag-accessibility-auditor/runs": {
      "post": {
        "operationId": "runs-sync-perryay-wcag-accessibility-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/perryay~wcag-accessibility-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-perryay-wcag-accessibility-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": {
          "mode": {
            "title": "Audit Mode",
            "enum": [
              "single-page",
              "multi-url",
              "site-crawl"
            ],
            "type": "string",
            "description": "Operating mode: 'single-page' audits one URL (urls[0]); 'multi-url' audits an array of URLs on any domain; 'site-crawl' BFS-crawls start_url on the same domain up to max_pages.",
            "default": "single-page"
          },
          "urls": {
            "title": "URLs to Audit",
            "type": "array",
            "description": "List of URLs to audit. In 'single-page' mode only the first entry (urls[0]) is used. In 'multi-url' mode all entries are audited across any domain. Each entry may omit the scheme (https:// is assumed).",
            "default": []
          },
          "start_url": {
            "title": "Crawl Start URL",
            "type": "string",
            "description": "Starting URL for 'site-crawl' mode. The crawler stays on the same domain (same netloc) and follows links breadth-first up to max_pages.",
            "default": ""
          },
          "max_pages": {
            "title": "Max Pages to Crawl",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of pages to crawl and audit in 'site-crawl' mode. Range 1-50.",
            "default": 10
          },
          "tags": {
            "title": "axe-core Rule Tags",
            "type": "array",
            "description": "axe-core tags to run (runOnly.type='tag'). Defaults to WCAG 2.1 A/AA plus best-practice: [\"wcag2a\",\"wcag2aa\",\"wcag21a\",\"wcag21aa\",\"best-practice\"]. Leave empty to use defaults. WCAG 2.2 tags are added via include_wcag22.",
            "default": [
              "wcag2a",
              "wcag2aa",
              "wcag21a",
              "wcag21aa",
              "best-practice"
            ]
          },
          "include_wcag22": {
            "title": "Include WCAG 2.2 AA Rules",
            "type": "boolean",
            "description": "Add wcag22a and wcag22aa rule tags to the audit (WCAG 2.2 AA success criteria such as focus-not-obscured and target-size).",
            "default": false
          },
          "include_passes": {
            "title": "Include Passing Rules Count",
            "type": "boolean",
            "description": "Also compute axe 'passes' results and report the count on each page row (passes are not emitted as finding rows).",
            "default": false
          },
          "include_incomplete": {
            "title": "Include Incomplete Rules Count",
            "type": "boolean",
            "description": "Also compute axe 'incomplete' results (needs manual review) and report the count on each page row.",
            "default": false
          },
          "en301549": {
            "title": "EN 301 549 Clause Mapping",
            "type": "boolean",
            "description": "Add an en301549_clause field to every finding row, mapping axe rules to EN 301 549 (European Accessibility Act harmonised standard) clauses. Unmapped rules get clause null.",
            "default": true
          },
          "generate_remediation_report": {
            "title": "Generate Remediation Report",
            "type": "boolean",
            "description": "Emit a prioritized remediation row: top 5 rules ranked by impact weight x occurrence count, with fix guidance from axe-core help text.",
            "default": true
          },
          "wait_ms": {
            "title": "Post-Load Wait (ms)",
            "minimum": 0,
            "maximum": 300000,
            "type": "integer",
            "description": "Milliseconds to wait after page load before running axe. Increase for SPAs or pages with lazy-loaded content so dynamic DOM is present. Range 0-300000.",
            "default": 2000
          },
          "page_timeout_ms": {
            "title": "Page Timeout (ms)",
            "minimum": 5000,
            "maximum": 600000,
            "type": "integer",
            "description": "Navigation timeout per page in milliseconds. Pages that exceed it are recorded as errors and never billed. Range 5000-600000.",
            "default": 30000
          },
          "max_concurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of pages audited concurrently (multi-url batches and each site-crawl wave). Range 1-10.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}