{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback Machine URLs — all archived pages of a domain",
    "description": "List every URL the Internet Archive has captured for a domain, with first and last capture, status codes, MIME types and archive links, or the snapshot history of one page over time. Official Wayback CDX API, polite pacing, no proxy.",
    "version": "0.1",
    "x-build-id": "6gNoC5YRYXyvo76qL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~wayback-urls-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-wayback-urls-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/openregistry~wayback-urls-history/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-wayback-urls-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/openregistry~wayback-urls-history/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-wayback-urls-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": [
          "targets"
        ],
        "properties": {
          "mode": {
            "title": "What to extract",
            "enum": [
              "domainUrls",
              "urlSnapshots"
            ],
            "type": "string",
            "description": "All archived URLs: one row per unique URL ever captured. Snapshots: one row per capture of each URL you list.",
            "default": "domainUrls"
          },
          "targets": {
            "title": "Domains or URLs",
            "type": "array",
            "description": "Domains (example.com) for the first mode, full page addresses (https://example.com/pricing) for the snapshot mode.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "Scope (all-URLs mode)",
            "enum": [
              "domain",
              "host",
              "prefix"
            ],
            "type": "string",
            "description": "Domain covers blog.example.com and shop.example.com too. Prefix accepts a path, e.g. example.com/blog/.",
            "default": "domain"
          },
          "captureDetail": {
            "title": "Capture detail (all-URLs mode)",
            "enum": [
              "fast",
              "full"
            ],
            "type": "string",
            "description": "Full mode reads every capture and is much slower on big sites; use it with dates or a prefix.",
            "default": "fast"
          },
          "snapshotFrequency": {
            "title": "Snapshot frequency (snapshot mode)",
            "enum": [
              "all",
              "day",
              "month",
              "year",
              "changes"
            ],
            "type": "string",
            "description": "Keeps the first capture of each period, or each change of content.",
            "default": "month"
          },
          "from": {
            "title": "From",
            "type": "string",
            "description": "Optional. Year or date: 2015, 2015-06 or 2015-06-30."
          },
          "to": {
            "title": "To",
            "type": "string",
            "description": "Optional. Year or date, inclusive."
          },
          "statusCodes": {
            "title": "HTTP status codes",
            "type": "array",
            "description": "Optional. Keep only these codes, e.g. 200, or 404 to find dead pages that once existed.",
            "items": {
              "type": "string"
            }
          },
          "mimeTypes": {
            "title": "MIME types",
            "type": "array",
            "description": "Optional. e.g. text/html, application/pdf, image/*.",
            "items": {
              "type": "string"
            }
          },
          "urlContains": {
            "title": "URL contains",
            "type": "string",
            "description": "Optional. Keep URLs containing this text, e.g. /blog/ or .pdf."
          },
          "dropQueryStrings": {
            "title": "Merge URLs that differ only by parameters",
            "type": "boolean",
            "description": "Treat /page?utm=a and /page?utm=b as one URL. Merged rows are not charged.",
            "default": false
          },
          "maxResultsPerTarget": {
            "title": "Maximum rows per domain or URL",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops reading a target once this many rows are delivered.",
            "default": 10000
          },
          "maxCapturesScanned": {
            "title": "Maximum captures read (full mode)",
            "minimum": 1000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Safety limit on the captures read per domain in full mode.",
            "default": 200000
          },
          "maxResults": {
            "title": "Maximum rows in total",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Optional. The run stops once this many rows are delivered."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}