{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper — Channel, Hashtag, Search & URL",
    "description": "Scrape YouTube Shorts by channel, hashtag, search, or direct URL. 30+ fields including subtitles, comments, hashtags. $0.50/1K — 87% cheaper than competitors.",
    "version": "2.1",
    "x-build-id": "fpnejDXrbRG45v5e7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/celebrated-quadraphonic~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-celebrated-quadraphonic-youtube-shorts-scraper",
        "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/celebrated-quadraphonic~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-celebrated-quadraphonic-youtube-shorts-scraper",
        "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/celebrated-quadraphonic~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-celebrated-quadraphonic-youtube-shorts-scraper",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "channel",
              "hashtag",
              "search",
              "url"
            ],
            "type": "string",
            "description": "Channel = all Shorts from a channel, Hashtag = Shorts by hashtag, Search = keyword search, URL = specific Shorts URLs.",
            "default": "channel"
          },
          "extraMode": {
            "title": "Advanced Mode (overrides Mode)",
            "type": "string",
            "description": "Type 'playlist' or 'trending' here to use advanced modes. Leave empty to use the Mode dropdown above.",
            "default": ""
          },
          "channels": {
            "title": "Channels (one per line)",
            "type": "string",
            "description": "Channel handles (without @) or full channel URLs. Example: MrBeast or https://youtube.com/@MrBeast",
            "default": ""
          },
          "hashtags": {
            "title": "Hashtags (one per line)",
            "type": "string",
            "description": "Without #. Example: cooking or funny. Directly scrapes youtube.com/hashtag/{tag} for video IDs, falls back to search.",
            "default": ""
          },
          "searchQueries": {
            "title": "Search Queries (one per line)",
            "type": "string",
            "description": "Keywords to search for Shorts.",
            "default": ""
          },
          "urls": {
            "title": "Shorts URLs (one per line)",
            "type": "string",
            "description": "Direct YouTube Shorts URLs. Example: https://youtube.com/shorts/VIDEO_ID",
            "default": ""
          },
          "playlists": {
            "title": "Playlist URLs (one per line)",
            "type": "string",
            "description": "YouTube playlist URLs. Extracts all video IDs from the playlist. Example: https://www.youtube.com/playlist?list=PLxxxxxxx",
            "default": ""
          },
          "trendingCountry": {
            "title": "Trending Country",
            "type": "string",
            "description": "Country code for trending feed (used in trending mode). Default: US.",
            "default": "US"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum Shorts to return. Default 50 ≈ $0.025/run.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "NEWEST",
              "POPULAR",
              "OLDEST"
            ],
            "type": "string",
            "description": "NEWEST = latest first, POPULAR = most viewed, OLDEST = oldest first.",
            "default": "NEWEST"
          },
          "since": {
            "title": "Since (YYYY-MM-DD)",
            "type": "string",
            "description": "Only Shorts uploaded after this date.",
            "default": ""
          },
          "until": {
            "title": "Until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only Shorts uploaded before this date.",
            "default": ""
          },
          "minViews": {
            "title": "Min Views",
            "minimum": 0,
            "type": "integer",
            "description": "Only Shorts with at least this many views.",
            "default": 0
          },
          "minLikes": {
            "title": "Min Likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only Shorts with at least this many likes.",
            "default": 0
          },
          "includeSubtitles": {
            "title": "Include Subtitles/Transcript",
            "type": "boolean",
            "description": "Extract subtitle text with timestamps. Adds ~2s per video.",
            "default": false
          },
          "includeChannelInfo": {
            "title": "Include Channel Info",
            "type": "boolean",
            "description": "Add channel description, subscribers, join date.",
            "default": true
          },
          "includeComments": {
            "title": "Include Comments",
            "type": "boolean",
            "description": "Extract top comments from each video. Adds ~3s per video. Uses page scraping to extract comment text.",
            "default": false
          },
          "maxComments": {
            "title": "Max Comments per Video",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of top comments to extract per video (when includeComments is enabled).",
            "default": 20
          },
          "proxyUrl": {
            "title": "Custom Proxy (optional)",
            "type": "string",
            "description": "http://user:pass@host:port — needed for full metadata (views, likes, duration). Without proxy, only title and channel name are available.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}