{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Snapshots & Archived Text (No Login)",
    "description": "List Wayback Machine captures of a URL, URL prefix or whole domain with date, archived link, HTTP status, MIME type and digest. Optional archived page title and text. Date range, dedupe and status filters. No login.",
    "version": "0.1",
    "x-build-id": "T5ye4XrbeVKeVNcBF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~wayback-machine-snapshots/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-wayback-machine-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/cliqtomedia~wayback-machine-snapshots/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-wayback-machine-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/cliqtomedia~wayback-machine-snapshots/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-wayback-machine-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs or domains",
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 pages or sites, e.g. apify.com, https://apify.com/pricing. Use apify.com/blog/* for every page under a path, or *.apify.com for the whole domain with subdomains. Duplicates (http/https, www) are listed once.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "Match",
            "enum": [
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "exact: only that URL. prefix: every URL starting with it. host: every page on that host. domain: every page on the domain and its subdomains. A * in the URL (apify.com/blog/* or *.apify.com) overrides this for that entry.",
            "default": "exact"
          },
          "from": {
            "title": "From date",
            "pattern": "^$|^\\d{4}(-?\\d{2}(-?\\d{2}([T ]?\\d{2}(:?\\d{2}(:?\\d{2})?)?)?)?)?Z?$",
            "type": "string",
            "description": "Only captures on or after this date (UTC). Formats: 2015, 2015-06, 2015-06-01 or 20150601. Empty: from the first capture."
          },
          "to": {
            "title": "To date",
            "pattern": "^$|^\\d{4}(-?\\d{2}(-?\\d{2}([T ]?\\d{2}(:?\\d{2}(:?\\d{2})?)?)?)?)?Z?$",
            "type": "string",
            "description": "Only captures on or before this date (UTC), inclusive: 2020 means up to the end of 2020. Same formats as From date. Empty: up to the latest capture."
          },
          "collapse": {
            "title": "Deduplicate",
            "enum": [
              "none",
              "digest",
              "hour",
              "day",
              "month",
              "year",
              "urlkey"
            ],
            "type": "string",
            "description": "Keep one capture per hour, day, month or year, or skip captures whose content did not change (digest). urlkey keeps one capture per distinct URL, which is handy for listing the pages of a site. none returns every capture.",
            "default": "none"
          },
          "statusFilter": {
            "title": "HTTP status",
            "enum": [
              "any",
              "2xx",
              "3xx",
              "4xx",
              "5xx"
            ],
            "type": "string",
            "description": "Only captures whose archived HTTP status is in this class, e.g. 2xx for successful pages or 3xx for redirects. any keeps all, including revisit records without a status.",
            "default": "any"
          },
          "onlyHtml": {
            "title": "HTML pages only",
            "type": "boolean",
            "description": "Skip images, scripts, PDFs and other files; keep text/html captures only.",
            "default": false
          },
          "mimeTypes": {
            "title": "File types",
            "maxItems": 20,
            "type": "array",
            "description": "Keep only captures of these file types, for example image/, application/pdf or text/html. A value ending in / keeps the whole family (image/ = all images). Up to 20 values. Leave empty for all types; do not combine with HTML pages only.",
            "items": {
              "type": "string"
            }
          },
          "sortOrder": {
            "title": "Order",
            "enum": [
              "oldest",
              "newest"
            ],
            "type": "string",
            "description": "oldest: from the first capture forward. newest: the most recent captures first (exact URLs only; prefix and domain matches are listed by URL by the archive).",
            "default": "oldest"
          },
          "maxSnapshots": {
            "title": "Max snapshots per URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many captures for each URL or domain. Each saved capture is one paid result. Up to 10,000.",
            "default": 100
          },
          "includeContent": {
            "title": "Include archived page text",
            "type": "boolean",
            "description": "Also download each successful HTML or plain-text capture and return its title and visible text. One extra request per capture (slower) and one extra paid event per page with text. At most 300 pages per run (about 2 seconds each).",
            "default": false
          },
          "maxContentChars": {
            "title": "Max text characters",
            "minimum": 100,
            "maximum": 100000,
            "type": "integer",
            "description": "Cut the extracted text to this many characters per capture; textLength still reports the full length.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}