{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Scraper - Snapshots, URLs & Content $0.50/1K",
    "description": "List Wayback Machine snapshots of any URL, every archived URL of a domain, and old page text as Markdown, with change detection. Public Internet Archive CDX API. $0.50 per 1,000 results; page content +$2 per 1,000.",
    "version": "0.1",
    "x-build-id": "FKWz9jWzxHMgWUp8K"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~wayback-machine-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-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/plotpointtech~wayback-machine-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-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/plotpointtech~wayback-machine-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-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": {
          "urls": {
            "title": "URLs or domains",
            "type": "array",
            "description": "Pages or domains to look up, e.g. example.com, https://example.com/pricing or example.com/blog/*. You can also paste Wayback links such as https://web.archive.org/web/20200101000000/https://example.com/.",
            "default": [
              "example.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "snapshots",
              "urls",
              "content"
            ],
            "type": "string",
            "description": "Snapshots: list captures of each URL. Archived URLs: every distinct URL the Archive holds for a domain or path (first capture of each). Content: download the archived page and extract readable Markdown or text.",
            "default": "snapshots"
          },
          "matchType": {
            "title": "URL matching",
            "enum": [
              "auto",
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "Auto: exact URL for snapshots and content; whole domain (with subdomains) for archived URLs when you enter a bare domain, otherwise the path prefix.",
            "default": "auto"
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Earliest capture date: YYYY, YYYY-MM, YYYY-MM-DD or YYYYMMDDhhmmss. Leave empty for no limit."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Latest capture date, same formats. Leave empty for no limit."
          },
          "collapse": {
            "title": "Collapse captures",
            "enum": [
              "none",
              "digest",
              "hour",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Reduce repeated captures. Content changes keeps a capture only when the page content (digest) differs from the capture before it. Per day/month/year keeps one capture per period. Applies to Snapshots and Content modes.",
            "default": "day"
          },
          "order": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Newest first returns the most recent captures (fast). Oldest first starts at the first capture. Archived URLs mode always runs in index order.",
            "default": "newest"
          },
          "statusCodes": {
            "title": "HTTP status filter",
            "type": "array",
            "description": "Only captures with these status codes, e.g. 200 or 3*. Leave empty for all (Content mode defaults to 200).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mimeTypes": {
            "title": "MIME type filter",
            "type": "array",
            "description": "Only captures of these types, e.g. text/html, application/pdf, image/*. Use text/html in Archived URLs mode to list pages only.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeRevisits": {
            "title": "Skip duplicate-content records (warc/revisit)",
            "type": "boolean",
            "description": "The Archive stores some captures as 'revisit' pointers to identical earlier content, with no status code. Skip them for a cleaner list.",
            "default": true
          },
          "maxResultsPerUrl": {
            "title": "Max results per URL or domain",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Snapshots or archived URLs to return for each entry.",
            "default": 100
          },
          "maxResults": {
            "title": "Max results in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many results across all entries.",
            "default": 10000
          },
          "detectChanges": {
            "title": "Detect changes",
            "type": "boolean",
            "description": "Add changed / previousTimestamp / previousDigest to each snapshot (compared with the previous capture of the same URL). In Content mode also adds a text diff summary: lines added and removed with samples.",
            "default": false
          },
          "timestamps": {
            "title": "Specific timestamps (Content mode)",
            "type": "array",
            "description": "Fetch content at these moments, e.g. 2015, 2019-06-01 or 20200101120000. The Archive serves the nearest capture. Leave empty to fetch captures selected by the filters above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxContentSnapshotsPerUrl": {
            "title": "Max snapshots to download per URL (Content mode)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many captures per entry to download and extract when no timestamps are given.",
            "default": 10
          },
          "contentFormat": {
            "title": "Content format",
            "enum": [
              "markdown",
              "text"
            ],
            "type": "string",
            "description": "Main text of the archived page as Markdown (with links and tables) or plain text.",
            "default": "markdown"
          },
          "includeHtml": {
            "title": "Include raw HTML",
            "type": "boolean",
            "description": "Also return the original archived HTML (without the Wayback toolbar).",
            "default": false
          },
          "maxContentChars": {
            "title": "Max characters of content",
            "minimum": 1000,
            "maximum": 2000000,
            "type": "integer",
            "description": "Longer text is cut and marked contentTruncated.",
            "default": 100000
          },
          "contentRequestsPerMinute": {
            "title": "Snapshot downloads per minute",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Politeness limit for downloading archived pages. The tool slows down further on its own if the Archive asks it to.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}