{
  "openapi": "3.0.1",
  "info": {
    "title": "Web Archive Snapshots & Archived URLs (Wayback Machine data)",
    "description": "List archived pages of any domain, URL prefix or URL from the Wayback Machine (Internet Archive CDX API). Unique URLs or every snapshot, with capture date, HTTP status, MIME type and snapshot link. Filter by date, status and file type. No browser.",
    "version": "1.0",
    "x-build-id": "Ycwwd0uLfT3wkWu8B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/innovative_cookie~web-archive-snapshots/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-innovative_cookie-web-archive-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/innovative_cookie~web-archive-snapshots/runs": {
      "post": {
        "operationId": "runs-sync-innovative_cookie-web-archive-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/innovative_cookie~web-archive-snapshots/run-sync": {
      "post": {
        "operationId": "run-sync-innovative_cookie-web-archive-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": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "One per line. A domain (example.com), a URL prefix ending in * (example.com/blog/*), a domain with all subdomains (*.example.com) or an exact URL (with Match type = exact).",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "Match type",
            "enum": [
              "host",
              "domain",
              "prefix",
              "exact"
            ],
            "type": "string",
            "description": "host: every URL on this host. domain: this host and all its subdomains. prefix: every URL starting with the given path. exact: only this URL. A trailing * or a leading *. in a target overrides this setting.",
            "default": "host"
          },
          "collapse": {
            "title": "Rows to return",
            "enum": [
              "url",
              "none",
              "content",
              "day",
              "month",
              "year"
            ],
            "type": "string",
            "description": "url: one row per unique archived URL (its first capture). none: every capture. content: skip consecutive captures with identical content. day / month / year: at most one capture per URL per period.",
            "default": "url"
          },
          "from": {
            "title": "From (date)",
            "type": "string",
            "description": "Optional. Earliest capture date: YYYY, YYYYMM, YYYYMMDD or YYYY-MM-DD."
          },
          "to": {
            "title": "To (date)",
            "type": "string",
            "description": "Optional. Latest capture date: YYYY, YYYYMM, YYYYMMDD or YYYY-MM-DD."
          },
          "statusCodes": {
            "title": "HTTP status codes",
            "type": "array",
            "description": "Optional. Keep only captures with these status codes, for example 200, 301, 404, or 3xx for a whole class.",
            "items": {
              "type": "string"
            }
          },
          "mimeTypes": {
            "title": "MIME types",
            "type": "array",
            "description": "Optional. Keep only these content types, for example text/html, application/pdf or image/*.",
            "items": {
              "type": "string"
            }
          },
          "urlRegex": {
            "title": "URL regular expression",
            "type": "string",
            "description": "Optional. Keep only archived URLs matching this regular expression, applied by the Wayback Machine, for example .*\\.pdf$ or /blog/."
          },
          "maxResultsPerTarget": {
            "title": "Max rows per target",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop listing a target after this many rows.",
            "default": 1000
          },
          "maxResults": {
            "title": "Max rows in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on the number of rows in this run, across all targets.",
            "default": 10000
          },
          "redactSensitiveData": {
            "title": "Remove personal and secret data from URLs",
            "type": "boolean",
            "description": "On by default. Removes user:password@ credentials, e-mail addresses and the values of sensitive query parameters (email, user, name, phone, token, key, password, session...) from archived URLs. Snapshot links are left empty for the URLs that were changed. If you turn this off, you are responsible for any personal data in the output.",
            "default": true
          },
          "requestDelayMs": {
            "title": "Delay between API requests (ms)",
            "minimum": 2500,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause between two requests to the Wayback Machine API (at least 2,500 ms, i.e. 24 requests per minute at most). Each request returns up to 5,000 rows.",
            "default": 3000
          },
          "requestTimeoutSecs": {
            "title": "API timeout (s)",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Large domains can take a while to answer. A request that does not finish in time is retried twice, then the target is reported as an error.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}