{
  "openapi": "3.0.1",
  "info": {
    "title": "Wayback URL & Snapshot Extractor - Live Check",
    "description": "Every archived URL of a domain from the Internet Archive's official CDX API: one row per unique URL with first and last seen, capture count, versions and snapshot links. Optional live check and redirect map for site migrations, and an only-new-since-last-run mode. $0.0009 per URL.",
    "version": "1.0",
    "x-build-id": "QbkKNJ4GcE4TRAtqK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digivibetech~wayback-url-snapshot-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digivibetech-wayback-url-snapshot-extractor",
        "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/digivibetech~wayback-url-snapshot-extractor/runs": {
      "post": {
        "operationId": "runs-sync-digivibetech-wayback-url-snapshot-extractor",
        "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/digivibetech~wayback-url-snapshot-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-digivibetech-wayback-url-snapshot-extractor",
        "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 URL prefixes",
            "type": "array",
            "description": "Domains (iana.org) or URL prefixes (https://iana.org/help/) to list from the Internet Archive. Up to 100 per run.",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "title": "What to include",
            "enum": [
              "domain",
              "host",
              "prefix",
              "exact"
            ],
            "type": "string",
            "description": "domain = iana.org and every subdomain; host = only the exact host; prefix = every URL that starts with the target; exact = one URL (its capture history).",
            "default": "domain"
          },
          "from": {
            "title": "From date",
            "type": "string",
            "description": "Only captures from this date on: 2015, 2015-06 or 2015-06-30. Empty = from the first capture."
          },
          "to": {
            "title": "To date",
            "type": "string",
            "description": "Only captures up to this date: 2020, 2020-12 or 2020-12-31. Empty = up to today."
          },
          "statusCodes": {
            "title": "Archived status codes",
            "type": "array",
            "description": "Keep only captures with these HTTP status codes, such as 200 or 3xx. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "mimeTypes": {
            "title": "MIME types",
            "type": "array",
            "description": "Keep only these MIME types, such as text/html or application/pdf (filtered by the archive, so fewer captures are read). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "skipAssets": {
            "title": "Skip images, CSS, JS and fonts",
            "type": "boolean",
            "description": "Drop URLs ending in .css, .js, .png, .jpg, .gif, .svg, .ico, .webp, font and media files.",
            "default": false
          },
          "excludeExtensions": {
            "title": "Exclude extensions",
            "type": "array",
            "description": "Extra file extensions to drop, without the dot (pdf, xml).",
            "items": {
              "type": "string"
            }
          },
          "includeRegex": {
            "title": "Include URLs matching (regex)",
            "type": "string",
            "description": "Keep only URLs that match this regular expression, such as /blog/|/news/."
          },
          "excludeRegex": {
            "title": "Exclude URLs matching (regex)",
            "type": "string",
            "description": "Drop URLs that match this regular expression, such as \\?replytocom=|/wp-json/."
          },
          "checkLive": {
            "title": "Check each URL live today",
            "type": "boolean",
            "description": "Request each archived URL now (HEAD, robots.txt respected) and add liveStatus, liveState (live, redirected, gone, error) and liveFinalUrl. Also writes REDIRECT_MAP (CSV) and GONE to the key-value store. Free, but slower: about 1 URL per second per host.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "firstSeen",
              "lastSeen",
              "captures",
              "url"
            ],
            "type": "string",
            "description": "Order of the results (oldest first by default).",
            "default": "firstSeen"
          },
          "maxUrls": {
            "title": "Max unique URLs",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most unique URLs to deliver (each one is charged). Reading the archive is free.",
            "default": 1000
          },
          "maxCapturesScanned": {
            "title": "Max captures to read",
            "minimum": 1,
            "maximum": 20000000,
            "type": "integer",
            "description": "Safety limit on archive rows read per target (free). Big sites have millions of captures; narrow the dates or raise this limit.",
            "default": 300000
          },
          "onlyNewSinceLastRun": {
            "title": "Only URLs new since the last run",
            "type": "boolean",
            "description": "Deliver (and charge) only URLs that were not in an earlier run with the same targets and state key. The first run delivers everything and saves the list. Useful for scheduled monitoring.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name for the saved list used by 'Only URLs new since the last run'. Use a different key per monitoring task.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}