{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine URLs & Snapshots",
    "description": "Get every archived URL of a domain or all snapshots of a page from the Wayback Machine (official CDX API). Find old and lost pages, track page changes over time, filter by date, status and content type. Ideal for SEO relaunches and research.",
    "version": "0.1",
    "x-build-id": "mhT3bLhQDQIbLgSsh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rowharbor1988~wayback-machine-urls/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rowharbor1988-wayback-machine-urls",
        "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/rowharbor1988~wayback-machine-urls/runs": {
      "post": {
        "operationId": "runs-sync-rowharbor1988-wayback-machine-urls",
        "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/rowharbor1988~wayback-machine-urls/run-sync": {
      "post": {
        "operationId": "run-sync-rowharbor1988-wayback-machine-urls",
        "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": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "Domains (example.com), sub-folders (example.com/blog/*) or single pages (https://example.com/pricing). '*.example.com' includes all subdomains.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "urls",
              "snapshots",
              "changes",
              "closest"
            ],
            "type": "string",
            "description": "Unique URLs: every URL ever archived for the target (once, with its first capture) – great for SEO migrations, finding old pages, redirects and lost content. All snapshots: every capture. Content changes only: skip captures whose content did not change. Closest snapshot: for a list of pages, is it archived and which snapshot is closest to your date?",
            "default": "urls"
          },
          "matchType": {
            "title": "Match",
            "enum": [
              "auto",
              "exact",
              "prefix",
              "host",
              "domain"
            ],
            "type": "string",
            "description": "Auto: a domain covers the whole host, a URL with a path only that page; 'example.com/blog/*' covers the folder. You can force a match type here.",
            "default": "auto"
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Only captures on or after this date (YYYY, YYYY-MM or YYYY-MM-DD). In 'Closest snapshot' mode, the date to look near."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Only captures on or before this date (YYYY, YYYY-MM or YYYY-MM-DD)."
          },
          "statusFilter": {
            "title": "HTTP status",
            "enum": [
              "ok",
              "ok-redirect",
              "errors",
              "all"
            ],
            "type": "string",
            "description": "Status the page had when it was archived.",
            "default": "ok"
          },
          "mimeFilter": {
            "title": "File type",
            "enum": [
              "all",
              "html",
              "pdf",
              "images",
              "js-css",
              "json"
            ],
            "type": "string",
            "description": "Only captures of this content type.",
            "default": "all"
          },
          "urlContains": {
            "title": "URL contains",
            "type": "string",
            "description": "Only URLs containing this text, e.g. /blog/ or .pdf"
          },
          "excludeAssets": {
            "title": "Skip assets",
            "type": "boolean",
            "description": "Drop images, scripts, styles and fonts – keep pages and documents.",
            "default": false
          },
          "onePer": {
            "title": "At most one snapshot per",
            "enum": [
              "none",
              "hour",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only for 'All snapshots': thin out frequent captures, e.g. one per month for a price or content history.",
            "default": "none"
          },
          "maxResultsPerTarget": {
            "title": "Max results per target",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Large domains can have millions of archived URLs. You only pay for delivered results.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Targets in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "The Wayback Machine limits request rates; 2 is a safe value.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}