{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Snapshots: Changes and Page Text",
    "description": "Wayback Machine snapshots by URL from the Internet Archive's public CDX and availability APIs: first and last seen, status codes, digest changes, optional text of chosen captures and a change summary. Not a mirror. USD 0.003 per URL, 0.0008 per snapshot row.",
    "version": "0.1",
    "x-build-id": "LnZuaVb3GJy1Yd1DY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~wayback-machine-snapshots/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-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/bardach_technologies~wayback-machine-snapshots/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-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/bardach_technologies~wayback-machine-snapshots/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-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",
        "properties": {
          "urls": {
            "title": "Wayback Machine snapshots: URLs or domains",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 URLs or bare domains. A bare domain (example.com) means that site's start page, https assumed. Exactly the URL you give is looked up; its www and port variants may be listed under it by the archive. A URL with a user name or password, or containing * or %2A (the archive reads it as a wildcard), is refused. Default: empty (nothing is looked up).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fromDate": {
            "title": "Only captures from",
            "maxLength": 64,
            "type": "string",
            "description": "Optional. List only captures on or after this date: 2019, 2019-07 or 2019-07-05. First and last seen in the summary always cover the whole archive history of the URL. Default: no limit."
          },
          "toDate": {
            "title": "Only captures until",
            "maxLength": 64,
            "type": "string",
            "description": "Optional. List only captures on or before this date (same formats). Also the date the availability check looks closest to. Default: no limit (availability is checked closest to now)."
          },
          "statusFilter": {
            "title": "Status codes to list",
            "enum": [
              "any",
              "200",
              "redirect",
              "error"
            ],
            "type": "string",
            "description": "Which captures to list: any, 200 only, redirects (3xx) or errors (4xx and 5xx). Default: any.",
            "default": "any"
          },
          "collapse": {
            "title": "One capture per",
            "enum": [
              "none",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Keep one capture per day, month or year (the first of each), or none for every capture. Digest changes are counted between the listed captures only, so a coarser setting can miss changes in between. Default: month.",
            "default": "month"
          },
          "maxSnapshotsPerUrl": {
            "title": "Wayback Machine snapshots per URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "At most this many snapshot rows per URL (1 to 1000, default 50), each one charged. When more captures match, the summary says listingCut true.",
            "default": 50
          },
          "keep": {
            "title": "Which captures to keep when cut",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "When more captures match than the limit: keep the newest (default) or the oldest.",
            "default": "newest"
          },
          "textSnapshots": {
            "title": "Wayback Machine captures to read as text",
            "maxItems": 5,
            "type": "array",
            "description": "Up to 5 captures per URL to read and deliver as text (title, description, headings, text), each charged when read. Use first, last (the earliest or latest capture with status 200), or a date such as 2019-05-06 (the closest capture with status 200). E-mail addresses and phone numbers are masked. Default: none.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxTextChars": {
            "title": "Text length",
            "minimum": 200,
            "maximum": 20000,
            "type": "integer",
            "description": "Characters of text kept per captured page (200 to 20000, default 3000). The row says whether it was cut.",
            "default": 3000
          },
          "compareFrom": {
            "title": "Change summary: from date",
            "maxLength": 64,
            "type": "string",
            "description": "Optional, together with the to date. The capture with status 200 closest to this date is the earlier side of the comparison. Format 2019, 2019-07 or 2019-07-05."
          },
          "compareTo": {
            "title": "Change summary: to date",
            "maxLength": 64,
            "type": "string",
            "description": "Optional, together with the from date; must be later. The capture with status 200 closest to this date is the later side. If both resolve to the same capture, no summary is produced and nothing is charged."
          },
          "includeAvailability": {
            "title": "Check availability",
            "type": "boolean",
            "description": "Also ask the archive's availability API for the capture closest to the to date (or to now) and put it in the summary. One extra request per URL. Default: true.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}