{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine Snapshot History",
    "description": "List every Wayback Machine capture of a URL, folder or whole domain: date, archive link, HTTP status, MIME type, content digest and size. Or one summary row per URL: first/last capture, count, content changes. Official Internet Archive CDX API, polite pacing, no page downloads.",
    "version": "1.0",
    "x-build-id": "4FXyLfDI6LLeCPgto"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dojito~wayback-snapshot-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dojito-wayback-snapshot-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/dojito~wayback-snapshot-history/runs": {
      "post": {
        "operationId": "runs-sync-dojito-wayback-snapshot-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/dojito~wayback-snapshot-history/run-sync": {
      "post": {
        "operationId": "run-sync-dojito-wayback-snapshot-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs or domains",
            "type": "array",
            "description": "Pages, folders or domains to look up, e.g. https://example.com/pricing or example.com. No * wildcards — for a folder enter https://example.com/blog/ and set Match to 'URL prefix (folder)'. Up to 1,000 per run. Each entry gets its own query and its own summary row.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "Match",
            "enum": [
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "exact = only this URL; prefix = every URL starting with it (a folder); host = every URL on this host name; domain = this host and all its subdomains. host and domain keep only the host name of what you entered.",
            "default": "exact"
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Only captures on or after this date: 2019, 2019-06 or 2019-06-30 (UTC). Leave empty for the first capture ever."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Only captures up to this date, inclusive: 2021, 2021-12 or 2021-12-31 (UTC). Leave empty for today."
          },
          "collapse": {
            "title": "Collapse",
            "enum": [
              "none",
              "digest",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Skip near-duplicate captures. 'Only when content changed' drops a capture whose content digest equals the previous capture of the same URL. Day / month / year keep the first capture per URL in each period.",
            "default": "none"
          },
          "statusFilter": {
            "title": "HTTP status",
            "enum": [
              "any",
              "200",
              "2xx",
              "3xx",
              "4xx",
              "5xx"
            ],
            "type": "string",
            "description": "Keep only captures with this HTTP status. Note: '200' and '2xx' also drop 'revisit' records (captures the Archive stored as 'same as before', which have no status).",
            "default": "any"
          },
          "mimeType": {
            "title": "MIME type (optional)",
            "type": "string",
            "description": "Keep only this content type, exactly, e.g. text/html or application/pdf, or a family with *, e.g. image/* . Also drops revisit records (captures stored as 'same as before')."
          },
          "output": {
            "title": "Output",
            "enum": [
              "snapshots",
              "summary",
              "both"
            ],
            "type": "string",
            "description": "Snapshots: one row per capture. Summary: one row per URL / domain entry (first and last capture, capture count, number of content changes, status codes) — captures are read but only the summary row is returned. Both: the snapshot rows, then the summary row.",
            "default": "snapshots"
          },
          "maxSnapshotsPerUrl": {
            "title": "Max captures per URL / domain",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Read at most this many captures for each entry. An exact URL is read oldest first (prefix / host / domain: by URL, then time), so captures beyond this cap are not read — use 'From date' or 'Newest first' to get recent ones. In summary mode this is how many captures the summary is based on; 'complete' in the summary row says whether all matching captures were read.",
            "default": 1000
          },
          "newestFirst": {
            "title": "Newest first (exact URLs only)",
            "type": "boolean",
            "description": "Turn on to get the most recent captures (up to 10,000 per URL), newest first, instead of the oldest. Works with Match = exact only.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many result rows in total (you pay per row). Summary rows count as rows.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}