{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Thumbnail Downloader: HD, Bulk, Whole Channel",
    "description": "Download YouTube thumbnails in bulk: HD 1280x720 and every size, Shorts, whole channels, playlists and searches as files, ZIP or links. See when each thumbnail was changed, catch competitor thumbnail A/B tests and keep old versions. No API key.",
    "version": "0.1",
    "x-build-id": "bJHDBSHv9J1DeyW9J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~youtube-thumbnail-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-youtube-thumbnail-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/s_actors~youtube-thumbnail-downloader/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-youtube-thumbnail-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/s_actors~youtube-thumbnail-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-youtube-thumbnail-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": {
          "videos": {
            "title": "🎬 Videos, Shorts, channels or playlists",
            "type": "array",
            "description": "One per line: video links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/...), 11-character video IDs, channels (youtube.com/@handle, /channel/UC..., @handle) for their latest videos, or playlists (youtube.com/playlist?list=...).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔍 Search videos by keyword",
            "type": "array",
            "description": "Optional. YouTube search, e.g. \"minecraft survival\" or \"iphone review\": thumbnails of the top videos of each query (a thumbnail dataset for design research or AI).",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerChannel": {
            "title": "📺 Max videos per channel or playlist",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For channel and playlist inputs: how many videos, newest first for channels (Shorts and live streams included).",
            "default": 50
          },
          "maxVideosPerSearch": {
            "title": "🔎 Max videos per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "For search queries: how many videos from the top of the results.",
            "default": 20
          },
          "quality": {
            "title": "🖼️ Thumbnail size",
            "enum": [
              "best",
              "all",
              "maxres",
              "sd",
              "hq",
              "mq",
              "default"
            ],
            "type": "string",
            "description": "Best = the largest size the video has (old videos have no HD). A fixed size falls back to the next smaller one when the video has no such size. All = every size the video has, plus the vertical 1080x1920 image of Shorts.",
            "default": "best"
          },
          "format": {
            "title": "📄 File format",
            "enum": [
              "jpg",
              "webp"
            ],
            "type": "string",
            "description": "YouTube keeps each thumbnail as JPG and WebP. WebP files are about half as big; JPG is used when a WebP copy is missing.",
            "default": "jpg"
          },
          "includeFrames": {
            "title": "🎞️ Include auto-generated frames",
            "type": "boolean",
            "description": "Also the 3 frames YouTube picked from the video (the auto-generated thumbnail options), 1280x720 when available, else 480x360.",
            "default": false
          },
          "includeChannelArt": {
            "title": "👤 Channel avatar and banner",
            "type": "boolean",
            "description": "For channel inputs: one extra row with the channel's profile picture (900x900) and banner (original, usually 2560x1440).",
            "default": true
          },
          "saveFiles": {
            "title": "💾 Download files",
            "type": "boolean",
            "description": "Save every image to the run's key-value store (a download link per file). Off = only the image links, checked to exist (faster).",
            "default": true
          },
          "createZip": {
            "title": "🗜️ ZIP archive",
            "type": "boolean",
            "description": "Also pack all files into thumbnails.zip (parts of 200 MB) in the key-value store, with metadata.csv. Files are named by video title and ID, in a folder per channel, playlist or search.",
            "default": true
          },
          "onlyChanges": {
            "title": "🔔 Only changes (thumbnail history)",
            "type": "boolean",
            "description": "For scheduled runs: the first run returns every video and remembers its thumbnail and title; later runs return only new videos and videos whose thumbnail or title changed, with the previous title, the previous thumbnail's date and a link to the old thumbnail file.",
            "default": false
          },
          "monitorName": {
            "title": "🏷️ Monitor name",
            "type": "string",
            "description": "Name of the memory used by Only changes. Use a different name for each task.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "⚡ Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many videos are processed at the same time.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Requests go direct first and switch to Apify datacenter proxies when YouTube refuses them. The default works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every failed request attempt.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}