{
  "openapi": "3.0.1",
  "info": {
    "title": "Broken Link Checker & Bulk HTTP Status Code Checker",
    "description": "Find broken links (404s, 5xx, dead domains) on any website, or bulk check HTTP status codes and redirect chains for a URL list or sitemap. Each URL gets status code, final URL, redirects, response time, content type and the page + anchor text it was found on. Honors robots.txt.",
    "version": "1.0",
    "x-build-id": "6WPiZ6CvAoS1LdsBC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wellbuilt_seahare~broken-link-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wellbuilt_seahare-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/wellbuilt_seahare~broken-link-checker/runs": {
      "post": {
        "operationId": "runs-sync-wellbuilt_seahare-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/wellbuilt_seahare~broken-link-checker/run-sync": {
      "post": {
        "operationId": "run-sync-wellbuilt_seahare-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 crawl for broken links",
            "type": "array",
            "description": "Start pages to crawl (e.g. https://example.com/). The Actor follows links on the same site up to 'Max pages to crawl' and checks every link it finds (internal and, if enabled, external), recording the page and anchor text each link was found on. Leave empty to only check the URL list or sitemaps below.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs to check (bulk HTTP status / redirect check)",
            "type": "array",
            "description": "A plain list of URLs to check, one per line. Each one gets its status code, redirect chain and final URL; pages are not crawled. A bare domain like example.com is checked as https://example.com/. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "XML sitemaps or sitemap indexes (e.g. https://example.com/sitemap.xml, .xml.gz works too). Every URL listed is status-checked, up to 'Max URLs per sitemap'. Turn on 'Also scan sitemap pages for broken links' to check the links on those pages as well.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max pages to crawl",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many same-site pages to open and scan for links (start URLs count). Every link found on these pages is checked. Default 20.",
            "default": 20
          },
          "maxUrlsPerSitemap": {
            "title": "Max URLs per sitemap",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many URLs to take from each sitemap, in sitemap order. Default 200.",
            "default": 200
          },
          "scanSitemapPages": {
            "title": "Also scan sitemap pages for broken links",
            "type": "boolean",
            "description": "When on, sitemap URLs are opened as pages (up to 'Max pages to crawl') and every link on them is checked too. When off, sitemap URLs are only status-checked.",
            "default": false
          },
          "maxUrls": {
            "title": "Max URLs to check in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after checking this many URLs across all inputs (0 = no limit). Use it to cap cost. The run also stops cleanly at your maximum charge per run.",
            "default": 0
          },
          "checkExternalLinks": {
            "title": "Check external links",
            "type": "boolean",
            "description": "Also check links that point to other websites (they are checked, never crawled). Turn off to check only your own site's links.",
            "default": true
          },
          "checkResources": {
            "title": "Also check images, scripts and stylesheets",
            "type": "boolean",
            "description": "Besides <a href> links, check img, script, stylesheet, icon, video/audio source and iframe URLs found on crawled pages.",
            "default": false
          },
          "includeSubdomains": {
            "title": "Crawl subdomains too",
            "type": "boolean",
            "description": "Treat subdomains (e.g. blog.example.com when starting at example.com) as the same site and crawl them. www. is always treated as the same site.",
            "default": false
          },
          "onlyBroken": {
            "title": "Only output broken URLs",
            "type": "boolean",
            "description": "Save only broken URLs to the dataset. Every URL is still checked and counted, so the price is the same; this just keeps the table short.",
            "default": false
          },
          "treatRestrictedAsBroken": {
            "title": "Count 401/403/429 as broken",
            "type": "boolean",
            "description": "By default HTTP 401, 403, 429 and 999 are reported as result 'restricted' (usually bot protection or a login wall, the page often works in a browser) and broken = false. Turn on to flag them as broken.",
            "default": false
          },
          "excludeUrlPatterns": {
            "title": "Exclude URLs containing",
            "type": "array",
            "description": "Skip any URL that contains one of these strings (e.g. /tag/, ?replytocom=) or matches a /regex/. Skipped URLs are neither crawled nor checked nor charged.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "URLs checked in parallel overall (1-30). The Actor never sends more than 2 requests at a time to one host and waits at least 250 ms (or the site's robots.txt Crawl-delay, up to 10 s) between them.",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Give up on a URL after this many seconds (5-60) and report it as broken with 'Request timed out'. Default 15.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}