{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk URL Status Checker - HTTP Status & 301 Redirect Checker",
    "description": "Bulk HTTP status code and redirect chain checker: paste up to 100,000 URLs, a Google Sheet, CSV or sitemap to check URL status: status code, every 301/302 hop, final URL and why a 404, DNS or SSL check failed. Validate a migration redirect map. $1 per 1,000 URLs; timeouts free.",
    "version": "0.1",
    "x-build-id": "TeDlBWyZzNh6Dwmwq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidytools~bulk-url-status-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidytools-bulk-url-status-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/tidytools~bulk-url-status-checker/runs": {
      "post": {
        "operationId": "runs-sync-tidytools-bulk-url-status-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/tidytools~bulk-url-status-checker/run-sync": {
      "post": {
        "operationId": "run-sync-tidytools-bulk-url-status-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": {
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Main input (fill this, or `urlsText` / `urlSources` / `sitemapUrl` / `redirectMap`). One URL per line (full URLs or bare domains like example.com). Up to 100,000 per run in total. You can also paste text, upload a list file, give a sitemap or a redirect map below.",
            "items": {
              "type": "string"
            }
          },
          "urlsText": {
            "title": "Paste URLs as text",
            "type": "string",
            "description": "Optional: paste URLs separated by new lines, commas, semicolons, tabs or spaces (e.g. a column copied from a spreadsheet)."
          },
          "urlSources": {
            "title": "URL list files",
            "type": "array",
            "description": "Optional: upload a .txt or .csv file, or link to one. A Google Sheets link works as it is (the normal edit or share link of a sheet shared as \"Anyone with the link\"; the tab in the link is read), and so do Google Drive and Dropbox file links. Every http(s) URL in the file is checked. A Google Sheets link pasted into URLs is read the same way.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sitemapUrl": {
            "title": "Sitemap URL",
            "type": "string",
            "description": "Optional: check every page listed in this XML sitemap (sitemap indexes and .gz files are followed)."
          },
          "redirectMap": {
            "title": "Redirect map (migration check)",
            "type": "array",
            "description": "Optional: one \"old URL, expected new URL\" pair per line. Each old URL is checked and compared with the expected target: matchesExpected plus an issue (wrong-target, chain, 302-not-301, https-downgrade, not-redirected, target-broken). Use 410 (or 404 / gone) as the target for pages you removed on purpose: they pass when they answer 404 or 410. Relative paths such as \"/old-page,/new-page\" (Shopify and WordPress exports) are supported: set \"Redirect base URL\" below. You can also paste a link to the CSV or Google Sheet here, or use \"Redirect map file\".",
            "items": {
              "type": "string"
            }
          },
          "redirectMapUrl": {
            "title": "Redirect map file (CSV or Google Sheet link)",
            "type": "string",
            "description": "Optional: link to a redirect map CSV or a Google Sheet (shared as \"Anyone with the link\"). The old and new columns are found by their header (Old URL / New URL, Redirect from / Redirect to, Source / Target, From / To), otherwise the first two columns are used. Works together with the lines above."
          },
          "redirectBaseUrl": {
            "title": "Redirect base URL (for relative paths)",
            "type": "string",
            "description": "Old site origin for relative paths in the redirect map, e.g. https://shop.com: \"/old-page\" is checked as https://shop.com/old-page and a relative target is put on the same site. Leave empty to use the site of the full old URLs in the map when they all share one site; otherwise relative lines are reported as invalid (not charged)."
          },
          "onlyProblems": {
            "title": "Only report problems",
            "type": "boolean",
            "description": "Only output URLs that are not a clean 200 (redirects, broken, errors). All URLs are still checked and charged.",
            "default": false
          },
          "includeHtmlSignals": {
            "title": "Read canonical, meta robots and title",
            "type": "boolean",
            "description": "For final 200 HTML pages, also download the first 256 KB and report title, canonical, metaRobots, indexable and canonicalMatches. With a redirect map, a new page whose canonical is not the expected URL gets the canonical-mismatch issue. No extra charge; a little slower. On by default; turn it off for the fastest status-only check.",
            "default": true
          },
          "checkSsl": {
            "title": "Check SSL certificates",
            "type": "boolean",
            "description": "For https URLs, read the certificate once per host: sslDaysLeft, sslValidTo, sslIssuer, sslValid and sslExpiring. No extra charge.",
            "default": true
          },
          "sslWarnDays": {
            "title": "SSL expiry warning (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Certificates expiring within this many days get sslExpiring: true (and count as a problem for \"Only report problems\").",
            "default": 14
          },
          "method": {
            "title": "Request method",
            "enum": [
              "auto",
              "HEAD",
              "GET"
            ],
            "type": "string",
            "description": "\"Auto\" tries a lightweight HEAD request and confirms with GET when a server rejects HEAD. Values: auto = Auto (recommended); HEAD = HEAD only; GET = GET only.",
            "default": "auto"
          },
          "followRedirects": {
            "title": "Follow redirects",
            "type": "boolean",
            "description": "Off: report the first response only (e.g. 301 with its Location header) without requesting the target.",
            "default": true
          },
          "maxRedirects": {
            "title": "Max redirects",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Stop following after this many redirects (reported as an error).",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for each server response.",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many URLs are checked at the same time, across all sites. Each site also gets at most \"Parallel requests per site\" at once, so a long list of mixed sites runs fast without flooding any one of them.",
            "default": 40
          },
          "maxConcurrencyPerHost": {
            "title": "Parallel requests per site",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "At most this many requests at the same time to one host name (e.g. www.example.com), however many of its URLs are in the list. Raise it to check a large site of your own faster; lower it for a small or rate-limited site. Re-checks of URLs that did not answer use at most 2 per site.",
            "default": 8
          },
          "compareWithPrevious": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Monitoring: remember each URL's status and final URL, and mark every result change: new, changed or unchanged (with changeType such as broke, recovered, status-changed, new-redirect). SUMMARY lists changed and removed URLs. Use with a schedule.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name are compared. Leave empty to use the sitemap or first URL's host. Use a different name for each URL list you monitor."
          },
          "onlyChanges": {
            "title": "Only output changes",
            "type": "boolean",
            "description": "With comparison on: after the first (baseline) run, output only URLs that are new or whose status or final URL changed. All URLs are still checked and charged.",
            "default": false
          },
          "userAgent": {
            "title": "User-Agent",
            "type": "string",
            "description": "Optional User-Agent header. Leave empty to identify as TidyToolsLinkCheck."
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Check URLs through an Apify proxy, e.g. to see how a site answers visitors from another country. Apify proxy usage is billed to your Apify account."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}