{
  "openapi": "3.0.1",
  "info": {
    "title": "URL Status, Redirect Chain & Broken Link Checker",
    "description": "Check URLs in bulk: HTTP status, full redirect chain, final URL, response time, DNS / timeout / TLS errors, parked / for-sale / default-page detection. Or crawl a website and list every broken link with its page and anchor text. $0.80 per 1,000 URLs; robots.txt skips free.",
    "version": "1.1",
    "x-build-id": "RMXMS5Y30WeA5Uoon"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dojito~url-status-broken-link-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dojito-url-status-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/dojito~url-status-broken-link-checker/runs": {
      "post": {
        "operationId": "runs-sync-dojito-url-status-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/dojito~url-status-broken-link-checker/run-sync": {
      "post": {
        "operationId": "run-sync-dojito-url-status-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "urls",
              "site"
            ],
            "type": "string",
            "description": "urls = check the URLs you list (one row per URL). site = crawl one website from the start URL and list its broken links (one row per broken link and page it is on).",
            "default": "urls"
          },
          "urls": {
            "title": "URLs (urls mode)",
            "type": "array",
            "description": "Up to 100,000 URLs per run. Paste a list with Bulk edit (one URL per line); linked or uploaded URL lists are not supported. Duplicates are checked once.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "detectSiteState": {
            "title": "Detect parked / for-sale / default pages (urls mode)",
            "type": "boolean",
            "description": "Also tell what each URL's final page is: live site, parked domain, domain for sale (Sedo, Dan.com, Afternic, HugeDomains ...), web server default page (nginx, Apache, IIS, cPanel, Plesk), coming soon, account suspended, or unreachable — columns siteState, parkingProvider, siteStateReason. Sends GET instead of HEAD and reads the first 64 KB of the final page; no extra request, same price. Off = siteState is empty.",
            "default": false
          },
          "startUrl": {
            "title": "Start URL (site mode)",
            "type": "string",
            "description": "The website to check, e.g. https://example.com/. Pages on the same host (www. or not) are crawled; links to other sites are checked but not crawled."
          },
          "maxPages": {
            "title": "Max pages to crawl (site mode)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many pages of the website are opened and read for links (1-2,000). Links found on those pages are all checked, also the ones beyond this limit.",
            "default": 100
          },
          "useSitemap": {
            "title": "Also crawl pages from the sitemap (site mode)",
            "type": "boolean",
            "description": "Add the pages listed in the website's sitemap (from robots.txt, or /sitemap.xml) to the crawl, so pages that no other page links to are checked too. Sitemap files are not charged.",
            "default": true
          },
          "sitemapUrl": {
            "title": "Sitemap URL (site mode, optional)",
            "type": "string",
            "description": "Use this sitemap instead of looking for one, e.g. https://example.com/sitemap_index.xml."
          },
          "checkExternal": {
            "title": "Check links to other websites (site mode)",
            "type": "boolean",
            "description": "Check links that point to other websites too (one HEAD request per unique URL, a GET only to confirm an error). Off = only links within the site.",
            "default": true
          },
          "checkImages": {
            "title": "Check images (site mode)",
            "type": "boolean",
            "description": "Also check <img> sources, so missing images are listed as broken links (tag img, alt text as anchor text).",
            "default": true
          },
          "reportRedirects": {
            "title": "Also list internal links that redirect (site mode)",
            "type": "boolean",
            "description": "Add a row (issue redirect) for every link within the site that answers with a redirect, so you can point it straight at the final URL.",
            "default": false
          },
          "followRedirects": {
            "title": "Follow redirects",
            "type": "boolean",
            "description": "Follow each redirect and report the whole chain and the final status. Off = report only the first answer (e.g. 301 and its Location).",
            "default": true
          },
          "maxRedirects": {
            "title": "Max redirects per URL",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "A chain longer than this ends with error too_many_redirects (0-20).",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "A server that does not answer within this time gets error timeout (3-60).",
            "default": 15
          },
          "maxItems": {
            "title": "Max URLs to check",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many charged checks (each URL that got an answer counts once; robots.txt-skipped and invalid URLs do not count). Your maximum cost per run also stops it.",
            "default": 10000
          },
          "maxConcurrency": {
            "title": "Websites at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many different hosts are checked at the same time (1-10). URLs on the same host are always checked one at a time with 1 second in between.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}