{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Change History - Wayback Machine Snapshots + Diff",
    "description": "List Wayback Machine snapshots of any URL and see exactly what changed between two dates: pricing pages, terms of service, policies, competitor sites.",
    "version": "0.1",
    "x-build-id": "WbbpXIEtfvCt7wWTY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dennydevelops~wayback-change-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dennydevelops-wayback-change-history",
        "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/dennydevelops~wayback-change-history/runs": {
      "post": {
        "operationId": "runs-sync-dennydevelops-wayback-change-history",
        "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/dennydevelops~wayback-change-history/run-sync": {
      "post": {
        "operationId": "run-sync-dennydevelops-wayback-change-history",
        "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",
            "type": "array",
            "description": "Pages to look up, e.g. https://stripe.com/pricing (up to 500).",
            "default": [
              "https://stripe.com/pricing"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "snapshots",
              "compare",
              "timeline",
              "monitor"
            ],
            "type": "string",
            "description": "snapshots: list captures. compare: what changed between compareFrom and compareTo. timeline: compare consecutive captures across the date range. monitor: compare the capture seen last run with the newest (schedule it).",
            "default": "snapshots"
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "YYYY-MM-DD, YYYY-MM or YYYY. Used by snapshots and timeline.",
            "default": "2025-01-01"
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "YYYY-MM-DD, YYYY-MM or YYYY. Used by snapshots and timeline."
          },
          "collapse": {
            "title": "Collapse / dedupe snapshots",
            "enum": [
              "digest",
              "none",
              "hour",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Remove near-duplicate captures: keep only changed content, or one per hour/day/month/year.",
            "default": "digest"
          },
          "onlySuccessful": {
            "title": "Only successful captures (HTTP 200)",
            "type": "boolean",
            "description": "Only use captures where the page loaded successfully (HTTP 200).",
            "default": true
          },
          "includeSubpages": {
            "title": "Include all pages under the URL",
            "type": "boolean",
            "description": "Snapshots mode: match every URL starting with this one (prefix match).",
            "default": false
          },
          "maxSnapshotsPerUrl": {
            "title": "Max snapshots per URL",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Max snapshots per URL.",
            "default": 100
          },
          "onlyNewSinceLastRun": {
            "title": "Only new snapshots since last run",
            "type": "boolean",
            "description": "Snapshots mode: remember the newest capture per URL and list only newer ones next time.",
            "default": false
          },
          "compareFrom": {
            "title": "Compare: from date",
            "type": "string",
            "description": "Compare mode: the capture closest to this date is the 'before' version."
          },
          "compareTo": {
            "title": "Compare: to date",
            "type": "string",
            "description": "Compare mode: the 'after' version. Empty = newest capture."
          },
          "timelineGranularity": {
            "title": "Timeline: one capture per",
            "enum": [
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Timeline mode: compare one capture per day, month or year.",
            "default": "month"
          },
          "maxComparisonsPerUrl": {
            "title": "Timeline: max comparisons per URL",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Timeline mode: maximum number of comparisons per URL.",
            "default": 12
          },
          "includeFullDiff": {
            "title": "Include full unified diff",
            "type": "boolean",
            "description": "Include the full line-by-line diff in each comparison.",
            "default": true
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store used by monitor mode and only-new snapshots.",
            "default": "wayback-change-history-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}