{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Site Audit Crawler: Broken Link & Redirect Checker",
    "description": "Broken link checker, redirect checker and SEO site audit in one crawl: give a website, get per page the HTTP status, redirect chain, title, meta description, H1, canonical, hreflang, Open Graph tags, dead links, broken images, scripts and stylesheets, and sitemap orphan pages.",
    "version": "0.3",
    "x-build-id": "pYQx8cw4ee5Cke5ae"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~site-audit-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-site-audit-crawler",
        "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/siteacs~site-audit-crawler/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-site-audit-crawler",
        "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/siteacs~site-audit-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-site-audit-crawler",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Websites to audit",
            "type": "array",
            "description": "The start page of each site, e.g. https://www.example.com/. Each start URL is crawled as its own site, with its own summary row. The crawl stays on the start URL's host (with or without www) and follows the redirect of the start page, e.g. to a /en/ home page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPagesPerSite": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The crawl stops after this many same-site URLs have been requested. Links to pages beyond the limit are still checked for dead links, but get no row of their own, and the sitemap coverage check is marked incomplete.",
            "default": 200
          },
          "maxDepth": {
            "title": "Max link depth",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many clicks away from the start page the crawl goes. 0 audits the start page only (plus its links' status). Pages found only in the sitemap are crawled whatever their depth.",
            "default": 20
          },
          "includeUrlPatterns": {
            "title": "Only crawl URLs matching",
            "type": "array",
            "description": "Globs matched against the full URL or its path: /blog/** crawls only the blog (* stays inside one path segment, ** crosses them). Start with regex: for a regular expression. The start page is always crawled. Empty: the whole site.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Never crawl URLs matching",
            "type": "array",
            "description": "Same syntax, e.g. /tag/** or regex:[?&]sort=. Pages left out are not crawled or charged, but links to them still get a status check.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "useSitemap": {
            "title": "Read the sitemap",
            "type": "boolean",
            "description": "Reads the sitemaps listed in robots.txt (or /sitemap.xml), crawls the pages they list after the linked ones, and compares the two: pages in the sitemap that no crawled page links to, and linked pages missing from the sitemap.",
            "default": true
          },
          "checkExternalLinks": {
            "title": "Check external links",
            "type": "boolean",
            "description": "Also checks links to other websites (one HEAD request each, GET when HEAD is refused) and reports the dead ones. Off: only same-site links are checked.",
            "default": true
          },
          "checkAssets": {
            "title": "Check images, scripts and stylesheets",
            "type": "boolean",
            "description": "Also checks the files each page loads: img src and srcset, script src, link rel=stylesheet and icons, iframe, video, audio and source. Dead ones are listed per page in brokenAssets and in BROKEN_LINKS. Free, like the other link checks.",
            "default": true
          },
          "maxExternalLinksPerSite": {
            "title": "Max external links checked per site",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Distinct external targets (links and files) checked per site, links first, in the order they were found. Targets over the cap are counted in the summary's linksNotChecked.",
            "default": 1000
          },
          "maxUncrawledLinkChecks": {
            "title": "Max same-site links and files checked without crawling",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Same-site targets that are not crawled as pages but still get a status check: links to pages past the page or depth limit, links left out by the URL patterns, and the site's own images, scripts and stylesheets. Targets over the cap are counted in the summary's linksNotChecked.",
            "default": 2000
          },
          "saveAllLinks": {
            "title": "Save every link with its status",
            "type": "boolean",
            "description": "Also saves ALL_LINKS in the key-value store: every distinct link target found, internal and external, with its verdict (ok, broken, blocked, unchecked), HTTP status and error. Useful as a full link inventory; the dataset is unchanged.",
            "default": false
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "On: blog.example.com and shop.example.com are crawled as part of example.com. Off: they count as external links.",
            "default": false
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "On: pages and links that robots.txt disallows are not requested (they are listed with the reason), and a Crawl-delay is honoured (up to 30 seconds). Turn it off only for your own site.",
            "default": true
          },
          "maxConcurrencyPerSite": {
            "title": "Parallel requests per site",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Requests in flight to the audited site at once. External sites always get one at a time.",
            "default": 2
          },
          "delayBetweenRequestsMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum time between two requests to the same host. With the defaults a site gets at most 4 requests a second; external hosts get at most 2.",
            "default": 250
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 3,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for each answer. A link that does not answer in time is reported as broken with the error timeout.",
            "default": 15
          },
          "maxConcurrentSites": {
            "title": "Sites at a time",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many start URLs are crawled in parallel. Each still gets the per-site limits above.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most sites: requests go out from Apify's servers directly. Pages that show a bot challenge are reported as blocked, not bypassed.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}