{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Scraper — Snapshots, History & Archived Pages",
    "description": "Wayback Machine history for any URL or domain: every archived snapshot with date, status and links, a one-row history summary per URL (first and last capture, count, gaps) or the archived page text. $1.00 per 1,000 snapshots, $1.50 per 1,000 summaries, $2.00 per 1,000 pages + $0.001/run.",
    "version": "0.1",
    "x-build-id": "kfcTjayUazFc4HiDc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~wayback-snapshots/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-wayback-snapshots",
        "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/tagadanar~wayback-snapshots/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-wayback-snapshots",
        "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/tagadanar~wayback-snapshots/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-wayback-snapshots",
        "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",
            "minItems": 1,
            "type": "array",
            "description": "Pages or domains to look up in the Wayback Machine: example.com, https://example.com/pricing, a Wayback link, *.example.com (whole domain with subdomains) or example.com/blog/* (everything under that path). Up to 1,000 per run. Only archive.org is contacted; the live site is never fetched.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "list",
              "summary",
              "content"
            ],
            "type": "string",
            "description": "list: one row per archived snapshot (date, status, type, links). summary: one row per URL with first and last capture, capture count, years covered, status history and the longest gap (an expired-domain check). content: snapshot rows plus the archived page's title, meta description and visible text (priced per page read).",
            "default": "list"
          },
          "matchScope": {
            "title": "Match scope",
            "enum": [
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "Which captures count for each entry. exact: this URL only. prefix: every URL under this path. host: every URL on this host name. domain: the host and all its subdomains. List and content modes; summary mode always reads the URL itself.",
            "default": "exact"
          },
          "collapse": {
            "title": "Keep",
            "enum": [
              "changed",
              "day",
              "month",
              "year",
              "none"
            ],
            "type": "string",
            "description": "Thin out repeated captures. changed: only when the archived content changed. day / month / year: at most one capture per period. none: every capture.",
            "default": "changed"
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Earliest capture date, e.g. 2015, 2015-06 or 2015-06-30. Leave empty for the first capture."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Latest capture date, e.g. 2020, 2020-12 or 2020-12-31. Leave empty for the latest capture."
          },
          "statusFilter": {
            "title": "HTTP status of the capture",
            "enum": [
              "200",
              "2xx",
              "3xx",
              "4xx",
              "5xx",
              "not-200",
              "any"
            ],
            "type": "string",
            "description": "Keep captures by the status code the site answered when it was archived. 200 (default) skips redirects and errors.",
            "default": "200"
          },
          "mimeFilter": {
            "title": "File type",
            "enum": [
              "any",
              "html",
              "pdf",
              "image",
              "json",
              "text",
              "css",
              "javascript"
            ],
            "type": "string",
            "description": "Keep captures of one content type. Content mode always reads web pages (HTML).",
            "default": "any"
          },
          "order": {
            "title": "Order",
            "enum": [
              "oldest",
              "newest"
            ],
            "type": "string",
            "description": "oldest: from the first capture forward. newest: the most recent captures first (single URLs only; at most 10,000 per URL).",
            "default": "oldest"
          },
          "maxSnapshotsPerUrl": {
            "title": "Max snapshots per URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on snapshot rows per entry (list and content modes). Default 100, max 100,000.",
            "default": 100
          },
          "maxTextChars": {
            "title": "Max text characters per page",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Content mode: cap on the visible text kept per archived page (textLength still gives the full length). 0 drops the text. Default 10,000, max 100,000.",
            "default": 10000
          },
          "includeHtml": {
            "title": "Include archived HTML",
            "type": "boolean",
            "description": "Content mode: also return the archived page's raw HTML (first 500,000 characters).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}