{
  "openapi": "3.0.1",
  "info": {
    "title": "Broken Link Checker – Site Link Audit & 404 Finder",
    "description": "Crawl a website and check every link, image, script and stylesheet on its pages, internal and external. One row per broken link (404, 5xx, DNS, timeout, SSL) with the page it is on and the anchor text. $3.00 per 1,000 pages + $0.001/run.",
    "version": "0.1",
    "x-build-id": "QfTCee74DVBxZzKch"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~broken-link-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-broken-link-checker",
        "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/tagadanar~broken-link-checker/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-broken-link-checker",
        "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/tagadanar~broken-link-checker/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-broken-link-checker",
        "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": {
          "startUrls": {
            "title": "Websites to check",
            "minItems": 1,
            "type": "array",
            "description": "One or more website URLs, usually the homepage. The crawl starts there and follows links across the whole site the URL belongs to (www. and the bare domain are one site), and every link found on the crawled pages is checked. To stay inside a section, add it to \"Only crawl URLs matching\": start URL https://example.com/docs/ with pattern \"/docs/*\". Several start URLs on one site are crawled together as one crawl, so each page is fetched and charged once. Up to 100 start URLs per run.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on HTML pages crawled per site (you pay per page crawled; start URLs on the same site share this cap). Links to further pages are still checked, just not crawled. Default 200, max 5,000.",
            "default": 200
          },
          "maxDepth": {
            "title": "Max crawl depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many clicks away from the start URL the crawl goes (0 = the start page only). Default 5.",
            "default": 5
          },
          "checkExternal": {
            "title": "Check external links",
            "type": "boolean",
            "description": "Also check links that point to other websites (they are checked, never crawled). Off = only links within the site.",
            "default": true
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip the site's pages and files that robots.txt disallows, and honour its Crawl-delay (up to 5 s). Turn off only for a site you own.",
            "default": true
          },
          "includeSubdomains": {
            "title": "Crawl subdomains too",
            "type": "boolean",
            "description": "Treat subdomains (blog.example.com, docs.example.com) as part of the site and crawl them. Off = only the start URL's host (www. and the bare domain count as the same site).",
            "default": false
          },
          "includePatterns": {
            "title": "Only crawl URLs matching",
            "type": "array",
            "description": "Optional. Crawl only pages whose URL matches one of these patterns: \"/blog/*\" (path), \"*/docs/*\" (anywhere), or a regular expression between slashes. A pattern that starts with / (or with http) matches the beginning of the path (or URL), so \"/blog\" also matches /blog-news; * matches anything; other text matches anywhere in the URL. The start URLs themselves are always crawled. Links on crawled pages are still all checked.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Never crawl URLs matching",
            "type": "array",
            "description": "Optional. Do not crawl pages matching these patterns (same rules), e.g. \"/tag/*\", \"*?page=*\". A pattern matches the beginning of the path, so \"/about\" also skips /about-us; write \"/about/*\" to skip only that folder. Links to them are still checked.",
            "items": {
              "type": "string"
            }
          },
          "reportRedirects": {
            "title": "Also report redirected links",
            "type": "boolean",
            "description": "Add a row for every link that works but redirects (useful for SEO clean-up). Off = only broken or failing links.",
            "default": false
          },
          "maxLinksToCheck": {
            "title": "Max links to check per site",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Safety cap on unique links checked per site besides the crawled pages. Default 5,000, max 50,000.",
            "default": 5000
          },
          "includeSummary": {
            "title": "Add a summary row per site",
            "type": "boolean",
            "description": "One extra row per site with pages crawled, links checked and problem counts.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}