{
  "openapi": "3.0.1",
  "info": {
    "title": "All-in-One YouTube Data Scraper Pro",
    "description": "Ultimate YouTube Scraper (Videos, Comments, Music, Metadata)\n\nYouTube Data Extractor – Videos, Comments & Playlists\n\nAdvanced YouTube Scraper Toolkit\n\nYouTube Multi-Module Scraper\n\nComplete YouTube Data Scraping Suite\n\nYouTube Metadata & Comments Scraper\n\nYouTube Research Scraper",
    "version": "0.0",
    "x-build-id": "wdPpZp0Sf43cSvjDx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~my-actor-37/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-my-actor-37",
        "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/moving_beacon-owner1~my-actor-37/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-my-actor-37",
        "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/moving_beacon-owner1~my-actor-37/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-my-actor-37",
        "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": [
          "modules"
        ],
        "properties": {
          "modules": {
            "title": "Modules to Run",
            "type": "array",
            "description": "Select which modules to enable. Each runs independently.",
            "default": [
              "m1",
              "m2",
              "m3",
              "m4"
            ],
            "items": {
              "type": "string"
            }
          },
          "__SECTION_M1__": {
            "title": "── MODULE 1: Video Search & Channel ──",
            "type": "string",
            "description": "Quickly fetch video metadata from search results, channels, or playlists without using the official API."
          },
          "scrapetube_mode": {
            "title": "Module 1 — Mode",
            "enum": [
              "channel",
              "playlist",
              "search"
            ],
            "type": "string",
            "description": "Choose what to scrape: channel videos, playlist videos, or search results.",
            "default": "search"
          },
          "channel_id": {
            "title": "Channel ID",
            "type": "string",
            "description": "Unique YouTube channel ID. Used when Module 1 mode is set to 'channel'.",
            "default": "UCCTVrRJJeje9Kcz7cLXE_hA"
          },
          "playlist_id": {
            "title": "Playlist ID",
            "type": "string",
            "description": "YouTube playlist ID (the part after ?list= in the URL). Used when Module 1 mode is 'playlist'.",
            "default": "PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb"
          },
          "search_query": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword or phrase to search for. Used by Module 1 (search mode) and Module 4.",
            "default": "python tutorial"
          },
          "search_limit": {
            "title": "Search Limit",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of videos to retrieve from search results.",
            "default": 20
          },
          "__SECTION_M2__": {
            "title": "── MODULE 2: Comments ──",
            "type": "string",
            "description": "Scrapes comments from any YouTube video. Supports sorting by newest or most popular."
          },
          "comments_url": {
            "title": "Video URL",
            "type": "string",
            "description": "Full YouTube video URL to collect comments from.",
            "default": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
          },
          "comments_limit": {
            "title": "Max Comments",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of comments to retrieve. Large values may increase runtime.",
            "default": 100
          },
          "comments_sort": {
            "title": "Sort By",
            "enum": [
              "recent",
              "popular"
            ],
            "type": "string",
            "description": "Order in which comments are returned.",
            "default": "recent"
          },
          "__SECTION_M3__": {
            "title": "── MODULE 3: Music Data ──",
            "type": "string",
            "description": "Fetches music-related data including songs, albums, and artist information from YouTube Music."
          },
          "music_mode": {
            "title": "Module 3 — Mode",
            "enum": [
              "search",
              "album",
              "artist"
            ],
            "type": "string",
            "description": "Choose whether to search music, retrieve full album details, or fetch an artist's top content.",
            "default": "search"
          },
          "music_query": {
            "title": "Music Search Query",
            "type": "string",
            "description": "Song title, album name, or artist name. Used when Module 3 mode is 'search'.",
            "default": "Bohemian Rhapsody"
          },
          "music_filter": {
            "title": "Search Filter",
            "enum": [
              "songs",
              "videos",
              "albums",
              "artists",
              "playlists"
            ],
            "type": "string",
            "description": "Narrow search results by content type.",
            "default": "songs"
          },
          "music_limit": {
            "title": "Results Limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of music results to return.",
            "default": 10
          },
          "album_id": {
            "title": "Album ID",
            "type": "string",
            "description": "YouTube Music album browse ID (starts with MPREb_). Used when Module 3 mode is 'album'.",
            "default": "MPREb_4pL8gzRtw1p"
          },
          "artist_id": {
            "title": "Artist ID",
            "type": "string",
            "description": "YouTube Music artist channel ID (starts with UC). Used when Module 3 mode is 'artist'.",
            "default": "UCq-Fj5jknLsUf-MWSy4_brA"
          },
          "__SECTION_M4__": {
            "title": "── MODULE 4: Video Search (Extended) ──",
            "type": "string",
            "description": "Alternative video search that returns additional metadata including descriptions, publish dates, and thumbnails."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}