{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Thumbnail Downloader",
    "description": "YouTube Thumbnail Downloader SD - YouTube Thumbnail Downloader is a bulk image tool that extracts every thumbnail size of YouTube videos, Shorts, playlists and channels (max-res, SD, HQ, vertical, frames, JPG/WebP) with real availability, dimensions and saved files.",
    "version": "1.0",
    "x-build-id": "PGA9JfJAQFaZdkk5C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~youtube-thumbnail-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~youtube-thumbnail-downloader/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~youtube-thumbnail-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "videoUrls": {
            "title": "YouTube URLs or video IDs",
            "type": "array",
            "description": "Watch, Shorts, youtu.be, embed, live, m.youtube.com, music.youtube.com and youtube-nocookie links or bare 11-character video IDs (e.g. dQw4w9WgXcQ). Playlist links (https://www.youtube.com/playlist?list=...) and channel links (https://www.youtube.com/@MrBeast, add /shorts or /streams for those tabs) are expanded to their videos, page after page, up to \"Max videos\".",
            "items": {
              "type": "string"
            }
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many videos (one dataset row per video). Playlist and channel links follow YouTube's own next-page token until this number or the end of the list.",
            "default": 50
          },
          "sizes": {
            "title": "Thumbnail sizes",
            "type": "array",
            "description": "Which images to return and save. \"Best available\" = the largest cover image the video has (vertical 1080x1920 for Shorts, else 1280x720, else lower). \"All sizes\" = every standard size that exists. The row always lists which sizes exist (availableSizes).",
            "items": {
              "type": "string",
              "enum": [
                "best",
                "all",
                "maxresdefault",
                "hq720",
                "sddefault",
                "hqdefault",
                "mqdefault",
                "default",
                "oardefault",
                "oar2",
                "frames"
              ],
              "enumTitles": [
                "Best available",
                "All sizes",
                "maxresdefault 1280x720",
                "hq720 1280x720",
                "sddefault 640x480",
                "hqdefault 480x360",
                "mqdefault 320x180",
                "default 120x90",
                "oardefault - vertical original aspect (Shorts, 1080x1920)",
                "oar2 - original-aspect frame (up to 1920x1080)",
                "Frames 1-3 (1280x720, else 480x360)"
              ]
            },
            "default": [
              "best"
            ]
          },
          "format": {
            "title": "Image format",
            "enum": [
              "jpg",
              "webp",
              "both"
            ],
            "type": "string",
            "description": "JPEG, WebP (smaller files, same pixels) or both for every selected size.",
            "default": "jpg"
          },
          "fallbackToLowerQuality": {
            "title": "Fall back to a lower size",
            "type": "boolean",
            "description": "When a chosen size does not exist for a video (old videos often have no maxresdefault or sddefault), return the next smaller size that does exist. Off = the row says which sizes are missing.",
            "default": true
          },
          "saveImages": {
            "title": "Save images to the key-value store",
            "type": "boolean",
            "description": "Store each selected image in the run's key-value store and add its download link (publicDownloadUrl, files). Off = links to YouTube's image server only.",
            "default": true
          },
          "filenamePrefix": {
            "title": "File name prefix",
            "type": "string",
            "description": "Prefix of the stored file names, e.g. \"thumb-\" gives thumb-dQw4w9WgXcQ_maxresdefault.jpg. Letters, digits, - _ . ! ' ( ) only.",
            "default": ""
          },
          "includeMetadata": {
            "title": "Title and channel",
            "type": "boolean",
            "description": "Add the video title, channel name and channel link (YouTube's public oEmbed answer, one small request per video).",
            "default": true
          },
          "includeVideoDetails": {
            "title": "Video details (duration, views, publish date)",
            "type": "boolean",
            "description": "Also open each video's watch page for duration, exact view count, publish date and channel ID. Slower (one page per video).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Used for YouTube pages (oEmbed, watch, playlist and channel pages). The images themselves come straight from YouTube's public image server.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}