{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Domain History Checker (Wayback Machine)",
    "description": "Check the Wayback Machine history of many domains at once: first/last capture, archive age, captures per year, gaps, status codes, redirects to other sites, and archived homepage titles per year with spam, parked and language-change flags. For expired-domain due diligence and SEO.",
    "version": "0.1",
    "x-build-id": "qNJncYdPIzgtyhqUc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lindenbyte~wayback-domain-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lindenbyte-wayback-domain-history",
        "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/lindenbyte~wayback-domain-history/runs": {
      "post": {
        "operationId": "runs-sync-lindenbyte-wayback-domain-history",
        "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/lindenbyte~wayback-domain-history/run-sync": {
      "post": {
        "operationId": "run-sync-lindenbyte-wayback-domain-history",
        "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",
        "required": [
          "domains"
        ],
        "properties": {
          "domains": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "Domains to check (example.com) or any URL on them (https://www.example.com/page): the domain is extracted, 'www.' is ignored and duplicates are removed. One summary row per domain.",
            "items": {
              "type": "string"
            }
          },
          "fetchTitles": {
            "title": "Read archived homepage titles (spam / language / parked check)",
            "type": "boolean",
            "description": "Opens archived copies of the homepage (at most one per year, up to the limit below) and records the <title>, meta description and <html lang>. Used to flag past spam (casino, pharma, adult, replica...), language changes, parked/for-sale pages and meta-refresh redirects. Turn off for the fastest, date-only check.",
            "default": true
          },
          "maxTitleFetches": {
            "title": "Max archived homepages read per domain",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Years are spread evenly over the archive history (first and last year always included). More = finer history but slower (about 1-2 seconds each).",
            "default": 12
          },
          "maxRedirectChecks": {
            "title": "Max redirect checks per domain",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "For years where the archived homepage was a 3xx redirect, reads where it pointed to (one capture per year, spread evenly). Reveals domains that were redirected to another site (a common sign of a past sale, merger or a PBN). 0 = off.",
            "default": 6
          },
          "countAllCaptures": {
            "title": "Exact total capture count (slower for huge sites)",
            "type": "boolean",
            "description": "By default captures are counted as 'days with at least one homepage capture' (fast and bounded). Turn on to also count every single homepage capture (totalCaptures). For very popular sites (millions of captures) the count stops at about 2 million and is marked as a lower bound.",
            "default": false
          },
          "includeUrls": {
            "title": "Also list archived URLs of each domain",
            "type": "boolean",
            "description": "Adds one row per distinct archived URL on the domain and its subdomains (first capture date, status, type, Wayback link), useful to see which pages existed or to rebuild content. Charged per URL row. The Wayback CDX API can time out listing very large domains; the summary row is still produced.",
            "default": false
          },
          "maxUrlsPerDomain": {
            "title": "Max archived URLs per domain",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Only with 'Also list archived URLs'. Cost cap: at most this many URL rows per domain (in Wayback index order: alphabetical by URL, subdomains after the main host).",
            "default": 1000
          },
          "onlyHtmlUrls": {
            "title": "URL list: only HTML pages that returned 200",
            "type": "boolean",
            "description": "Only with 'Also list archived URLs'. Skips images, scripts, CSS, redirects and errors so the list contains real pages.",
            "default": false
          },
          "fromYear": {
            "title": "From year",
            "minimum": 1996,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional: only consider captures from this year onwards (for example 2015)."
          },
          "toYear": {
            "title": "To year",
            "minimum": 1996,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional: only consider captures up to and including this year."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}