{
  "openapi": "3.0.1",
  "info": {
    "title": "Redirect Checker & Bulk URL Status: Chains, Loops, 301 Map QA",
    "description": "Bulk redirect checker and HTTP status code checker. Traces every hop (301/302/307/308, meta refresh) and flags redirect chains, loops, 404s, soft 404s, noindex targets and redirect-map mismatches after a site migration. First 20 URLs free, then $0.0008/URL.",
    "version": "0.1",
    "x-build-id": "IWilHhnlNhT5dqgcy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cygnix_labs~redirect-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cygnix_labs-redirect-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/cygnix_labs~redirect-checker/runs": {
      "post": {
        "operationId": "runs-sync-cygnix_labs-redirect-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/cygnix_labs~redirect-checker/run-sync": {
      "post": {
        "operationId": "run-sync-cygnix_labs-redirect-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 to check (or old → new pairs)",
            "type": "array",
            "description": "One per line. A plain URL (https://example.com/old-page) is traced hop by hop. To test a redirect map, put the old and the expected new URL on one line: \"https://old.com/a https://new.com/a\" (space, comma, tab or -> between them). Add a 3-digit status to expect it, e.g. \"https://site.com/old-promo 410\". Domains without https:// are fine. Invalid lines get a free INVALID_INPUT row.",
            "items": {
              "type": "string"
            }
          },
          "redirectMapCsv": {
            "title": "Redirect map CSV (paste)",
            "type": "string",
            "description": "Paste your migration redirect map: columns old URL, expected new URL, optional expected status. Header names like old/new, source/destination, from/to, url/target and status are recognised; comma, semicolon or tab separated. Relative /paths need the Base URL below."
          },
          "redirectMapUrl": {
            "title": "Redirect map CSV URL",
            "type": "string",
            "description": "Link to the same CSV: a Google Sheets share link (Anyone with the link can view), Google Drive, Dropbox or any public CSV URL. Sheets/Drive/Dropbox links are converted to a direct CSV download."
          },
          "baseUrl": {
            "title": "Base URL for relative /paths",
            "type": "string",
            "description": "Used when the map's old URLs are paths like /blog/post-1, e.g. https://www.example.com. Relative new URLs are always resolved against their old URL."
          },
          "sitemapUrl": {
            "title": "Sitemap URL (check every URL in it)",
            "type": "string",
            "description": "Optional. Check all URLs of an XML sitemap (sitemap indexes and .xml.gz followed), e.g. your OLD site's sitemap after a migration, to find URLs that now 404 or bounce through chains. Limited by Max URLs."
          },
          "maxUrls": {
            "title": "Max URLs",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper limit of URLs checked in this run (after removing duplicates). Protects you from surprise costs on big sitemaps.",
            "default": 1000
          },
          "maxRedirects": {
            "title": "Max redirect hops",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Stop following after this many hops and report TOO_MANY_REDIRECTS (Googlebot follows up to 10).",
            "default": 10
          },
          "checkTargetPage": {
            "title": "Check the final page (noindex, canonical, soft 404)",
            "type": "boolean",
            "description": "Reads the head of the final 200 page: title, meta robots / X-Robots-Tag noindex, canonical, meta refresh and soft-404 wording. Same price on or off.",
            "default": true
          },
          "followMetaRefresh": {
            "title": "Follow meta refresh redirects",
            "type": "boolean",
            "description": "Treat <meta http-equiv=refresh> (delay up to 10 s) as a hop and flag it as META_REFRESH.",
            "default": true
          },
          "strictTrailingSlash": {
            "title": "Strict trailing slash when comparing to the map",
            "type": "boolean",
            "description": "Off: /page and /page/ count as the same target. On: they must match exactly. Host case, default ports and #fragments are always ignored.",
            "default": false
          },
          "browserUserAgent": {
            "title": "Browser-like user agent",
            "type": "boolean",
            "description": "Off: requests identify as CygnixRedirectChecker. On: a desktop Chrome user agent, for sites that answer bots with 403. Blocked URLs (401/403/429/bot challenge) are never billed.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "URLs traced in parallel. Never more than 4 requests at once to one host.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per hop. Slow hosts are reported as TIMEOUT.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}