{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Scraper - Snapshots, URLs, History & Content",
    "description": "Wayback Machine data in one table. No API key, no login, no proxy: official open API. Snapshot timeline of any page (only content changes), every archived URL of a domain with file-type filters, domain history (age, captures per year, gaps), archived page text as Markdown.",
    "version": "0.1",
    "x-build-id": "6qGtkccBFa7J15NRL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~wayback-machine-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-wayback-machine-scraper",
        "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/martin10291~wayback-machine-scraper/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-wayback-machine-scraper",
        "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/martin10291~wayback-machine-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-wayback-machine-scraper",
        "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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "snapshots",
              "urls",
              "history",
              "content"
            ],
            "type": "string",
            "description": "Snapshots of a page, every archived URL of a domain, a domain history summary (first/last capture, captures per year, gaps), or the text of an archived page as Markdown.",
            "default": "snapshots"
          },
          "urls": {
            "title": "URLs or domains",
            "type": "array",
            "description": "Pages or domains, e.g. apify.com, https://example.com/pricing. Wayback links (web.archive.org/web/...) work too.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only captures from this date: 2020, 2020-05 or 2020-05-17. Empty = from the first capture."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only captures up to this date: 2023, 2023-12 or 2023-12-31. Empty = until today."
          },
          "collapse": {
            "title": "Snapshots: one per",
            "enum": [
              "changes",
              "hour",
              "day",
              "month",
              "year",
              "none"
            ],
            "type": "string",
            "description": "'Content change' returns only versions whose content changed (best for change tracking). Day/month/year return at most one capture per period.",
            "default": "changes"
          },
          "onlySuccessful": {
            "title": "Only HTTP 200 captures",
            "type": "boolean",
            "description": "Skip redirects, 404s and errors (snapshots and URLs modes).",
            "default": true
          },
          "includeSubdomains": {
            "title": "URLs mode: include subdomains",
            "type": "boolean",
            "description": "On = every archived URL on the domain and all subdomains. Off = only URLs that start with the given URL (path prefix).",
            "default": true
          },
          "ignoreQueryStrings": {
            "title": "URLs mode: ignore query strings",
            "type": "boolean",
            "description": "On = one row per page path (drops duplicates like ?utm_source=... or session IDs). Off = every distinct URL including query strings.",
            "default": true
          },
          "fileExtensions": {
            "title": "URLs mode: file extensions",
            "type": "array",
            "description": "Only URLs ending with these extensions, e.g. pdf, xml, js, json, zip. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "maxScannedRows": {
            "title": "URLs mode: max archived rows to scan",
            "minimum": 1000,
            "type": "integer",
            "description": "Safety limit: max archived rows read per URL in URLs mode. Large sites are read from the compressed index page by page (a few thousand rows each).",
            "default": 20000
          },
          "maxSeconds": {
            "title": "URLs mode: time limit (seconds)",
            "minimum": 20,
            "maximum": 3000,
            "type": "integer",
            "description": "URLs mode stops after this many seconds and returns what it found (large sites are sampled across the whole archive index). Raise it for fuller lists of huge domains.",
            "default": 70
          },
          "mimeType": {
            "title": "MIME type filter",
            "type": "string",
            "description": "Regex on the MIME type, e.g. text/html or application/pdf. Empty = all."
          },
          "snapshotDate": {
            "title": "Content mode: date of the version",
            "type": "string",
            "description": "Return the capture closest to this date, e.g. 2019-06-01. Empty = the latest capture."
          },
          "maxContentChars": {
            "title": "Content mode: max characters",
            "minimum": 1000,
            "type": "integer",
            "description": "Maximum length of the Markdown text per page.",
            "default": 50000
          },
          "includeLinks": {
            "title": "Content mode: include links",
            "type": "boolean",
            "description": "Add the list of outgoing links found on the archived page (original URLs, not archive URLs).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new results (monitoring)",
            "type": "boolean",
            "description": "Return only snapshots/URLs not returned by earlier runs with the same Monitor ID. Schedule the Actor to get alerts about new captures or newly archived URLs.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for the only-new memory, so several monitors can run independently.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results in total.",
            "default": 1000
          },
          "datasetId": {
            "title": "Dataset (integration input)",
            "type": "string",
            "description": "Optional. Pick a dataset (or paste its ID) to read the input from, for example the result of Google Maps Scraper. When this actor runs as an integration, the dataset of the triggering run is used automatically (payload.resource.defaultDatasetId), so you can leave this empty. If set, the values found in the dataset replace the main input list."
          },
          "datasetField": {
            "title": "Dataset field",
            "type": "string",
            "description": "Optional. The item field that holds the value, for example website, url or videoUrl (dot paths like author.url work). Empty = detected automatically."
          },
          "datasetMaxItems": {
            "title": "Max values from the dataset",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of unique values taken from the dataset, to keep the cost under control.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}