{
  "openapi": "3.0.1",
  "info": {
    "title": "Unzip Files Online – Extract ZIP, TAR, GZ & 7z from URLs",
    "description": "Extract ZIP, TAR, TAR.GZ, GZ and 7z archives from URLs in bulk. Every file inside is saved with a public link, size, type and SHA-256, and listed in one dataset; use filters to keep only PDFs, images or CSVs. Bomb-safe limits, no password cracking. $3 per 1,000 archives + storage.",
    "version": "0.1",
    "x-build-id": "C22xk53nSpohGaiw3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~archive-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-archive-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/gazidev~archive-extractor/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-archive-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/gazidev~archive-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-archive-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",
        "properties": {
          "archiveUrls": {
            "title": "Archive URLs",
            "type": "array",
            "description": "Direct download links to .zip, .7z, .tar, .tar.gz/.tgz, .tar.bz2, .tar.xz, .gz, .bz2 or .xz files, one per line. Redirects are followed. Links to private or local network addresses are refused.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Apify dataset with archive URLs (chain with another Actor)",
            "type": "string",
            "description": "Extract the archives linked in another run's dataset, e.g. the output of Bulk File Downloader or a scraper. Set the field name below."
          },
          "datasetField": {
            "title": "Dataset field with the archive URL",
            "type": "string",
            "description": "Column that holds the archive link (a string or a list of strings). Empty = the first of url, fileUrl, downloadUrl, archiveUrl, zipUrl, storedUrl, link, href."
          },
          "fileExtensions": {
            "title": "Only keep these file types (extensions)",
            "type": "array",
            "description": "e.g. pdf, csv, jpg. Empty = keep every file. Filtered files are not saved and not charged.",
            "items": {
              "type": "string"
            }
          },
          "pathContains": {
            "title": "Only keep paths containing",
            "type": "string",
            "description": "Case-insensitive text that the path inside the archive must contain, e.g. `invoices/` or `2025`."
          },
          "skipJunkFiles": {
            "title": "Skip OS junk files",
            "type": "boolean",
            "description": "Skip __MACOSX/ folders, ._ resource forks, .DS_Store, Thumbs.db and desktop.ini.",
            "default": true
          },
          "extractNestedArchives": {
            "title": "Extract archives inside archives (1 level)",
            "type": "boolean",
            "description": "A .zip inside the .zip is opened too (one level deep only); its files get paths like `inner.zip/file.pdf`. Off = inner archives are saved as files.",
            "default": false
          },
          "saveFiles": {
            "title": "Save files (off = only list the contents)",
            "type": "boolean",
            "description": "On: every file is stored in the key-value store with a public link. Off: the dataset only lists each file's path, size, type and SHA-256 (no file-saved charge).",
            "default": true
          },
          "keyValueStoreName": {
            "title": "Named key-value store (optional)",
            "type": "string",
            "description": "Save the files into a named store that is kept after the default 7-day retention. Empty = the run's default store."
          },
          "maxArchives": {
            "title": "Max archives",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many archive URLs. 0 = all.",
            "default": 0
          },
          "maxArchiveSizeMb": {
            "title": "Max archive download size (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Larger downloads are refused (free row).",
            "default": 1000
          },
          "maxUncompressedMb": {
            "title": "Max uncompressed size per archive (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap 2,000 MB. Checked on the declared sizes first, then on the real bytes while extracting. Use 2 GB+ memory for archives that expand beyond ~1 GB.",
            "default": 2000
          },
          "maxEntriesPerArchive": {
            "title": "Max entries per archive",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap 10,000 files and folders per archive (nested archives count too).",
            "default": 10000
          },
          "maxCompressionRatio": {
            "title": "Max compression ratio",
            "minimum": 2,
            "maximum": 100,
            "type": "integer",
            "description": "Refuse archives that expand to more than this many times their download size (hard cap 100x; archives that expand to under 1 MB are always allowed).",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Archives in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Archives downloaded and extracted at the same time (1-4). Each needs disk space for its files.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}