{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Scraper: Snapshot History & Archived URLs",
    "description": "List every Wayback Machine capture of a URL or all archived URLs of a domain via the official CDX API. Dates, status, content changes, archive links, summary per site and only-new mode for schedules.",
    "version": "0.1",
    "x-build-id": "K0GO60IkPfpgy2PaB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~wayback-machine-snapshot-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-wayback-machine-snapshot-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/kayorama~wayback-machine-snapshot-history/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-wayback-machine-snapshot-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/kayorama~wayback-machine-snapshot-history/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-wayback-machine-snapshot-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 sites to look up in the Wayback Machine, for example apify.com, https://example.com/pricing, example.com/blog/* (everything under a path) or *.example.com (all subdomains).",
            "default": [
              "apify.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "snapshots",
              "archivedUrls"
            ],
            "type": "string",
            "description": "Capture history lists each archived snapshot of the URL. Archived URLs lists every distinct URL the archive holds under a domain or path, with its first capture.",
            "default": "snapshots"
          },
          "matchType": {
            "title": "Match",
            "enum": [
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "Exact URL only, every URL that starts with it (prefix), the host, or the host plus all subdomains (domain). Capture history defaults to exact, archived URLs to domain."
          },
          "collapse": {
            "title": "One capture per",
            "enum": [
              "none",
              "digest",
              "hour",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Thin out the history. Month keeps the first capture of each month. Content change keeps a capture only when the page content differs from the one before it. Capture history only.",
            "default": "month"
          },
          "order": {
            "title": "Order",
            "enum": [
              "newestFirst",
              "oldestFirst"
            ],
            "type": "string",
            "description": "Newest captures first or oldest first. Capture history only.",
            "default": "newestFirst"
          },
          "maxResultsPerTarget": {
            "title": "Max rows per URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most snapshot or archived URL rows to output for each input.",
            "default": 100
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Only captures on or after this date, for example 2020 or 2023-06-01."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Only captures on or before this date, for example 2024-12-31."
          },
          "onlyStatus200": {
            "title": "Only successful pages (HTTP 200)",
            "type": "boolean",
            "description": "Skip captures of redirects, errors and missing pages.",
            "default": false
          },
          "mimeType": {
            "title": "Content type",
            "type": "string",
            "description": "Only captures of this type, for example text/html or application/pdf."
          },
          "skipJunkUrls": {
            "title": "Skip broken URLs",
            "type": "boolean",
            "description": "Archived URLs only. The archive also stores broken links found inside scripts and text (stray quotes, HTML, escaped newlines) and copies of pages that only differ by tracking parameters such as utm_source. Skip them so you get real pages.",
            "default": true
          },
          "includeArchiveRange": {
            "title": "Add first and last capture ever",
            "type": "boolean",
            "description": "For exact URLs, the summary row also shows the very first and very last capture, even when you filter by date. Costs two extra requests per URL.",
            "default": true
          },
          "includeSummary": {
            "title": "Summary row per URL",
            "type": "boolean",
            "description": "One row per input with capture counts, first and last capture, unique content versions, status codes and captures per year.",
            "default": true
          },
          "trackChanges": {
            "title": "Remember what was seen",
            "type": "boolean",
            "description": "Save the latest capture (or the archived URLs) per input in a named key-value store, so the next run can mark new rows with isNew.",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "onlyNew"
            ],
            "type": "string",
            "description": "All rows, or only captures and URLs that are new since the last run (needs Remember what was seen). For page change alerts use Content change in One capture per.",
            "default": "all"
          },
          "stateStoreName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the key-value store that keeps the memory between runs. Use one name per monitor.",
            "default": "wayback-history-state"
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause between requests to the Internet Archive. 1000 is the minimum, so we stay well inside its rate limits.",
            "default": 2500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}