{
  "openapi": "3.0.1",
  "info": {
    "title": "Site Migration & Revenue Page Regression Auditor",
    "description": "Check a redirect map and the revenue action on each destination. Pass or fail every URL with evidence, then diff the next scheduled run against the last good result.",
    "version": "0.1",
    "x-build-id": "5kMaYOhbJXGJVgXQ3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plusonets~site-migration-regression-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plusonets-site-migration-regression-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/plusonets~site-migration-regression-auditor/runs": {
      "post": {
        "operationId": "runs-sync-plusonets-site-migration-regression-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/plusonets~site-migration-regression-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-plusonets-site-migration-regression-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": {
          "redirectMap": {
            "title": "Redirect map",
            "type": "string",
            "description": "Old-to-new map as CSV or JSON. CSV columns include source, destination, status, max_hops, canonical, noindex, hreflang, region, title_contains, h1_contains, required_text, required_selector, and label. JSON is an array of those fields in camelCase or snake_case. Leave this empty and leave priority URLs empty to run the built-in public sample."
          },
          "redirectMapUrl": {
            "title": "Redirect map URL",
            "type": "string",
            "description": "Optional public http(s) URL of a CSV or JSON redirect map. Private hosts, localhost, and link-local addresses are rejected. The file is read with GET and is never treated as a form."
          },
          "priorityUrls": {
            "title": "Priority URLs",
            "type": "array",
            "description": "Extra URLs to audit. Each item is a URL string or an object with url plus the same assertions as the redirect map (expected final URL, status, max hops, canonical, noindex, hreflang, region, title or H1 text, required text or CSS selector)."
          },
          "patternAssertions": {
            "title": "Assertions by pattern",
            "type": "array",
            "description": "Assertions applied to every source URL that matches a glob such as https://shop.example/products/*. A value set on the URL itself wins over the pattern."
          },
          "useBrowser": {
            "title": "Browser assertions",
            "type": "boolean",
            "description": "Off by default. When on, a URL whose static HTML fails a content assertion (or sets forceBrowser) is rendered in Chromium. The browser never clicks, fills, or submits a form. Set run memory to 2048 MB. A completed browser audit is billed as browser-audit instead of url-audited.",
            "default": false
          },
          "maxBrowserUrls": {
            "title": "Max browser URLs",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on pages rendered in the browser during one run. Further content failures stay on the static result.",
            "default": 25
          },
          "flagUnexpectedNoindex": {
            "title": "Fail unexpected noindex",
            "type": "boolean",
            "description": "When a URL does not set its own noindex expectation, treat a noindex robots directive as a failure. Set noindex true on a URL that is supposed to be hidden.",
            "default": true
          },
          "forbidSoft404": {
            "title": "Fail soft 404 pages",
            "type": "boolean",
            "description": "Fail a 2xx page whose title or H1 looks like a not-found page. This is a heuristic, not a guarantee that the page is a real error.",
            "default": true
          },
          "maxHops": {
            "title": "Max redirect hops",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Fail a URL whose redirect chain is longer than this. The final status below is the page after redirects, not the first hop. Per-URL maxHops overrides this.",
            "default": 5
          },
          "maxUrls": {
            "title": "Max URLs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum URLs audited in one run. Extra rows are counted in the summary and not fetched.",
            "default": 200
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many URLs to fetch at once. Each host is also paced so the run does not burst a single site.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Seconds to wait for one response before retrying.",
            "default": 20
          },
          "alertOnlyOnChange": {
            "title": "Alert only on change",
            "type": "boolean",
            "description": "Keep unchanged URLs out of the dataset. The HTML report and OUTPUT summary still include every audited URL. The first run treats every URL as new, so the dataset is still filled. Completed audits are charged even when the row is omitted.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
            "type": "string",
            "description": "Separates saved baselines. Use one ID per client site so a later run diffs against that site only.",
            "default": "default"
          },
          "stateStoreName": {
            "title": "State store name",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,50}$",
            "type": "string",
            "description": "Named key-value store that keeps the last good baseline across runs. A failed or mostly blocked run does not replace it.",
            "default": "site-migration-regression-auditor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}