{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Image Downloader: every image on a page, as files or ZIP",
    "description": "Give it web page URLs or image links, get every image as ZIP files or single files, plus a table with size, format, alt text and source. Reads img, lazy-load, srcset, og:image, CSS and JSON-LD. Filters by size and format. $0.01 per page that yields images.",
    "version": "0.1",
    "x-build-id": "Cw9183m9cdEqdfU69"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~bulk-image-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-bulk-image-downloader",
        "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/opstoolkit~bulk-image-downloader/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-bulk-image-downloader",
        "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/opstoolkit~bulk-image-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-bulk-image-downloader",
        "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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Web pages or image links",
            "type": "array",
            "description": "Web pages or image links, one address per line, for example https://example.com/gallery or https://example.com/logo.png. A web page gives you every image on it. A direct link to an image file gives you that image. Each address that yields at least one image counts as one charged URL. Up to 10,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "saveAs": {
            "title": "How to save the images",
            "enum": [
              "zip",
              "both",
              "files"
            ],
            "type": "string",
            "description": "How to save the images: zip (default, ZIP files only, fastest), both (ZIP files and single files) or files (single files only). Single files give every image its own public link but take longer to write.",
            "default": "zip"
          },
          "maxImagesPerUrl": {
            "title": "Most images per address",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most images to save from one address, 1 to 200, default 50. Many pages hold hundreds of small images, so set the number you need. The price per address stays the same.",
            "default": 50
          },
          "zipPartSizeMb": {
            "title": "Size of each ZIP file (MB)",
            "minimum": 10,
            "maximum": 50,
            "type": "integer",
            "description": "Size in MB at which a new ZIP file starts, 10 to 50, default 25. Many smaller ZIP files are fine, each one is its own download.",
            "default": 25
          },
          "minWidth": {
            "title": "Minimum width (pixels)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Skip images narrower than this many pixels, 0 to 20000, default 50. The default drops tracking pixels and tiny icons. Set 0 to keep everything. SVG files without a stated size are never skipped.",
            "default": 50
          },
          "minHeight": {
            "title": "Minimum height (pixels)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Skip images shorter than this many pixels, 0 to 20000, default 50. Set 0 to keep everything.",
            "default": 50
          },
          "allowedFormats": {
            "title": "Image formats to keep",
            "type": "array",
            "description": "Optional list of image formats to keep, for example [\"jpeg\", \"png\", \"webp\"]. Allowed values: jpeg, png, gif, webp, svg, avif, bmp, ico, tiff. Leave empty to keep every format except ico (favicons).",
            "items": {
              "type": "string"
            }
          },
          "includeSrcset": {
            "title": "Use the largest srcset image",
            "type": "boolean",
            "description": "true (default) downloads only the largest version of each picture that a page lists in several sizes (srcset). false ignores srcset and uses only the plain src of each image.",
            "default": true
          },
          "skipDuplicates": {
            "title": "Skip identical files",
            "type": "boolean",
            "description": "true (default) saves the same picture once, even when it appears on several pages or under several addresses. The other rows say which file it matches. false saves every copy.",
            "default": true
          },
          "sameSiteOnly": {
            "title": "Only images hosted on the same site",
            "type": "boolean",
            "description": "true skips images served from other domains. Default false, because many sites host pictures on a CDN with a different name.",
            "default": false
          },
          "maxFileSizeMb": {
            "title": "Largest single image (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Largest single image to save, in MB, 1 to 100, default 15. Bigger images are skipped before they are downloaded in full.",
            "default": 15
          },
          "maxConcurrency": {
            "title": "Downloads in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many images to download at the same time, 1 to 50, default 10. A single website never gets more than 4 at once.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}