{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Website Change History & Diff",
    "description": "Wayback Machine website history for a page, path or domain: every archived capture with dates and links, only real content changes, line diffs between versions, the copy closest to a date, a history summary per URL, and a monitor mode that returns only new captures.",
    "version": "1.0",
    "x-build-id": "gxCMmYcfgafljrjga"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brisaworks~wayback-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brisaworks-wayback-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/brisaworks~wayback-history/runs": {
      "post": {
        "operationId": "runs-sync-brisaworks-wayback-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/brisaworks~wayback-history/run-sync": {
      "post": {
        "operationId": "run-sync-brisaworks-wayback-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs or domains",
            "type": "array",
            "description": "Pages (or domains/paths with a wider match type) to look up, one per line.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "Match type",
            "enum": [
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "exact: this URL only; prefix: every URL under this path; host: every URL on this host; domain: host and subdomains.",
            "default": "exact"
          },
          "from": {
            "title": "From",
            "pattern": "^\\d{4,14}$",
            "type": "string",
            "description": "Start date as yyyy, yyyyMM or yyyyMMdd (digits only, e.g. 2015 or 20150315)."
          },
          "to": {
            "title": "To",
            "pattern": "^\\d{4,14}$",
            "type": "string",
            "description": "End date as yyyy, yyyyMM or yyyyMMdd (digits only, e.g. 2015 or 20150315)."
          },
          "targetDate": {
            "title": "Closest to date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}|\\d{8}|\\d{14})$",
            "type": "string",
            "description": "Look up the one capture nearest to this date for each URL, e.g. 2020-06-15 (or 20200615, or 20200615143000 with a time). The row shows how many days before (negative) or after the date it was taken. Uses the exact URL; From, To and the capture list options are ignored."
          },
          "onlyChanges": {
            "title": "Only captures whose content changed",
            "type": "boolean",
            "description": "Skip consecutive captures with identical content (collapse by digest).",
            "default": true
          },
          "statusFilter": {
            "title": "HTTP status filter",
            "type": "string",
            "description": "Keep only captures with this HTTP status (regex, e.g. 200 or 3..). Empty keeps all.",
            "default": "200"
          },
          "maxSnapshotsPerUrl": {
            "title": "Max captures per URL",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound on captures listed per input. 0 lists none: use it with the history summary to get one row per URL.",
            "default": 100
          },
          "newestFirst": {
            "title": "Newest captures",
            "type": "boolean",
            "description": "When the limit cuts the list, keep the newest captures instead of the oldest.",
            "default": false
          },
          "monitor": {
            "title": "Monitor: only new captures since the last run",
            "type": "boolean",
            "description": "For scheduled runs. The first run returns the list as usual and remembers the newest capture per URL; later runs with the same URLs and settings return only captures (and change summaries) added since. State is kept in your named key-value store 'wayback-history-monitor'.",
            "default": false
          },
          "includeSummary": {
            "title": "Add a history summary row per URL",
            "type": "boolean",
            "description": "One extra row per URL: first and last capture, days with captures per year, years with no capture and the longest gap. Charged as one archived capture.",
            "default": false
          },
          "summariseChanges": {
            "title": "Summarise changes",
            "type": "boolean",
            "description": "Download consecutive changed HTML captures and describe what changed (lines added/removed, title, similarity). Each comparison is charged as a change summary.",
            "default": false
          },
          "maxComparisonsPerUrl": {
            "title": "Max comparisons per URL",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Newest changes first.",
            "default": 10
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (optional)",
            "type": "string",
            "description": "Adds a one-or-two-sentence plain-English summary and a change category to each comparison. Claude usage is billed to your Anthropic account."
          },
          "model": {
            "title": "Claude model",
            "type": "string",
            "description": "Model ID for summaries.",
            "default": "claude-haiku-5-5"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}