{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Image Downloader: URLs & Web Pages to Files + ZIP",
    "description": "Give image URLs or web page URLs and get every image saved as a file with a shareable link, one JSON row per image (source URL, format, width, height, bytes, SHA-256) and an optional ZIP. Size and format filters. No login or API key. Only new images mode for schedules. Failed images are free.",
    "version": "0.1",
    "x-build-id": "WOpgVxaHznQ4EplkA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ctriolab~bulk-image-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ctriolab-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/ctriolab~bulk-image-downloader/runs": {
      "post": {
        "operationId": "runs-sync-ctriolab-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/ctriolab~bulk-image-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-ctriolab-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",
        "properties": {
          "imageUrls": {
            "title": "Image URLs",
            "type": "array",
            "description": "Direct links to image files, one per line, e.g. https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg. Supported formats: JPG, PNG, GIF, WebP, AVIF, SVG, BMP, ICO, TIFF, HEIF. Duplicates are removed. Leave both this field and Web page URLs empty to download public-domain samples from Wikimedia Commons.",
            "items": {
              "type": "string"
            }
          },
          "pageUrls": {
            "title": "Web page URLs (extract images)",
            "type": "array",
            "description": "Web pages to read, one per line, e.g. https://en.wikipedia.org/wiki/Hokusai. The Actor finds the images on each page (img src, srcset, lazy-load attributes, picture, og:image, twitter:image, inline background images and links to image files) and downloads them. Only the pages you list are read: no crawling, no login, no JavaScript rendering.",
            "items": {
              "type": "string"
            }
          },
          "maxImagesPerPage": {
            "title": "Max images per page",
            "minimum": 0,
            "type": "integer",
            "description": "Download at most this many images from each web page, in page order with og:image and twitter:image first, e.g. 20. Default 100. 0 means no limit. Direct image URLs are not counted here.",
            "default": 100
          },
          "maxImages": {
            "title": "Max images in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop saving after this many images in the whole run, e.g. 500. Default 0 means no limit. Images over the limit are skipped and not charged.",
            "default": 0
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip images narrower than this many pixels, e.g. 200 to drop icons and tracking pixels. Default 0 keeps every width. Images whose size cannot be read (some SVGs) are kept. Skipped images are not charged.",
            "default": 0
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip images shorter than this many pixels, e.g. 200. Default 0 keeps every height. Images whose size cannot be read (some SVGs) are kept. Skipped images are not charged.",
            "default": 0
          },
          "minBytes": {
            "title": "Minimum file size (bytes)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip files smaller than this many bytes, e.g. 10000 for about 10 KB. Default 0 keeps every size. Skipped files are not charged.",
            "default": 0
          },
          "maxBytes": {
            "title": "Maximum file size (bytes)",
            "minimum": 1000,
            "maximum": 500000000,
            "type": "integer",
            "description": "Files larger than this many bytes are stopped while downloading and skipped (not charged), e.g. 5000000 for 5 MB. Default 26214400 bytes (25 MB). Allowed range 1000 to 500000000.",
            "default": 26214400
          },
          "formats": {
            "title": "Formats to keep",
            "type": "array",
            "description": "Image formats to keep, e.g. [\"jpg\", \"png\"]. Default empty keeps every format. The format is read from the file itself, not from the URL or file extension.",
            "items": {
              "type": "string",
              "enum": [
                "jpg",
                "png",
                "gif",
                "webp",
                "avif",
                "svg",
                "bmp",
                "ico",
                "tiff",
                "heif"
              ],
              "enumTitles": [
                "JPEG",
                "PNG",
                "GIF",
                "WebP",
                "AVIF",
                "SVG",
                "BMP",
                "ICO",
                "TIFF",
                "HEIF/HEIC"
              ]
            },
            "default": []
          },
          "srcsetMode": {
            "title": "Responsive images (srcset)",
            "enum": [
              "largest",
              "all"
            ],
            "type": "string",
            "description": "Which sizes of a responsive image (img srcset or picture source) to download. largest (default): only the biggest version of each image. all: every listed size.",
            "default": "largest"
          },
          "includeMetaImages": {
            "title": "Include og:image and twitter:image",
            "type": "boolean",
            "description": "Also download the page's social preview images (og:image and twitter:image meta tags). Default true. Applies to web page URLs only.",
            "default": true
          },
          "includeLinkedImages": {
            "title": "Include linked image files",
            "type": "boolean",
            "description": "Also download links (a href) that point straight at an image file, e.g. full-size images behind gallery thumbnails. Default true. Applies to web page URLs only.",
            "default": true
          },
          "includeBackgroundImages": {
            "title": "Include inline background images",
            "type": "boolean",
            "description": "Also download images set in style=\"background-image: url(...)\" attributes. Default true. Images set only in CSS files are not found.",
            "default": true
          },
          "dedupeByContent": {
            "title": "Remove duplicate files",
            "type": "boolean",
            "description": "Default true: different URLs that return the same file (same SHA-256 hash) are saved and charged once. The same URL is always downloaded only once per run, whatever this setting is.",
            "default": true
          },
          "onlyNewImages": {
            "title": "Only new images",
            "type": "boolean",
            "description": "Default false. When true, skip images that an earlier run with the same Monitor name already saved (matched by URL and by file content). Skipped images are not charged. Use it for scheduled runs that watch the same pages.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the memory used by \"Only new images\", e.g. \"competitor-gallery\". Runs with the same name share the list of saved images, kept in your named key-value store \"bulk-image-downloader-state\". Default \"default\".",
            "default": "default"
          },
          "createZip": {
            "title": "Also create one ZIP file",
            "type": "boolean",
            "description": "Default false. When true, also stores images.zip with all saved images in the run's key-value store. The ZIP link is zipUrl in the SUMMARY record.",
            "default": false
          },
          "maxZipMb": {
            "title": "Maximum ZIP size (MB)",
            "minimum": 1,
            "maximum": 3500,
            "type": "integer",
            "description": "Maximum size of images.zip in megabytes, e.g. 200. Default 1024 MB, up to 3500. Images that do not fit are still saved one by one, just not added to the ZIP.",
            "default": 1024
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt for web pages",
            "type": "boolean",
            "description": "Default true: web pages that the site's robots.txt disallows are not read. Turn off only for sites you own or have permission to download from. Direct image URLs are not checked.",
            "default": true
          },
          "publicLinks": {
            "title": "Shareable file links",
            "type": "boolean",
            "description": "Default true: makes this run's key-value store readable by anyone who has its link, so fileUrl opens without an API token. Set false to keep the files private to your account (fileUrl then needs your API token).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Downloads at a time",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of downloads running at the same time, from 1 to 50. Default 10. Lower it for small or slow sites.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (s)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time in seconds for one download or page request, from 5 to 300. Default 30. Network errors, timeouts, HTTP 429 and 5xx are retried twice.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}