{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper: Channels, Hashtags, Search, Sounds",
    "description": "Scrape YouTube Shorts from channels, hashtags, keyword search, sound pages or URLs: exact views, likes, comment count, exact publish time, duration, description, hashtags, sound or music, channel subscribers. Date filters, optional transcripts. No login.",
    "version": "1.0",
    "x-build-id": "WvidREHB7qWBVnuLf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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": {
          "startUrls": {
            "title": "Channels, Shorts, hashtag or sound URLs",
            "type": "array",
            "description": "Channel URLs or @handles (the actor reads the channel's Shorts tab), Shorts URLs or video IDs, hashtag URLs (youtube.com/hashtag/name), sound pages (youtube.com/source/VIDEO_ID/shorts), playlist URLs or YouTube search URLs.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags without or with the # sign. The actor reads the hashtag's Shorts feed and continues with a Shorts search for the hashtag to get more results.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Searches YouTube with the Shorts filter on, so only Shorts come back. Use the search options below for sort order and upload date.",
            "items": {
              "type": "string"
            }
          },
          "maxShortsPerSource": {
            "title": "Max Shorts per channel, hashtag, sound or search",
            "minimum": 0,
            "type": "integer",
            "description": "How many Shorts to return from each channel, hashtag, sound, playlist or search. 0 means all that YouTube lists. Shorts removed by your filters do not count.",
            "default": 20
          },
          "maxShorts": {
            "title": "Max Shorts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many Shorts. 0 means no limit. Your maximum cost per run setting is always respected too.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only Shorts published on or after this date. Absolute (2026-01-31) or relative (7 days, 2 weeks, 3 months). On a channel sorted by newest the actor stops reading once it reaches older Shorts. For searches and hashtags the matching YouTube upload date filter is applied automatically."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Only Shorts published before this date. Absolute (2026-01-31) or relative (30 days)."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip Shorts with fewer views than this (for example to find viral Shorts only). Skipped Shorts are free.",
            "default": 0
          },
          "channelSort": {
            "title": "Channel sort order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of a channel's Shorts, same as the sort chips on the channel's Shorts tab.",
            "default": "newest"
          },
          "searchSort": {
            "title": "Search sort order",
            "type": "string",
            "description": "Sort order for keyword searches. These are the only two orders YouTube still applies. YouTube removed sorting by upload date and rating in 2025 (it silently ignores them): for recent results use the upload date filter or Published after. Old saved inputs with \"date\" run in relevance order and \"rating\" runs as popularity, with a note in the log.",
            "default": "relevance"
          },
          "searchUploadDate": {
            "title": "Search upload date",
            "enum": [
              "any",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "YouTube's own upload date filter for keyword and hashtag searches. Leave on Any time when you set Published after: the right window is picked automatically.",
            "default": "any"
          },
          "includeChannelInfo": {
            "title": "Add channel stats to every Short",
            "type": "boolean",
            "description": "Adds channel subscribers, verified badge, avatar, total channel views, video count, join date, country and description. Each channel is looked up once per run.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Full description text of each Short. Turn off for smaller rows.",
            "default": true
          },
          "includeTranscript": {
            "title": "Add transcript (charged separately)",
            "type": "boolean",
            "description": "Adds the spoken text of each Short from YouTube captions (manual or auto generated). Charged as a separate transcript event, only when a transcript is actually delivered. Shorts without speech have no captions and are not charged for a transcript.",
            "default": false
          },
          "transcriptLanguages": {
            "title": "Preferred transcript languages",
            "type": "array",
            "description": "Language codes in order of preference (en, es, de, pt-BR ...). If none is available the original spoken language is used and transcriptStatus says LANGUAGE_FALLBACK.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "transcriptSegments": {
            "title": "Add timestamped transcript segments",
            "type": "boolean",
            "description": "Adds transcriptSegments: a list of {start, end, duration, text} in seconds.",
            "default": false
          },
          "onlyNewShorts": {
            "title": "Only new Shorts (monitoring mode)",
            "type": "boolean",
            "description": "Skip Shorts that an earlier run with the same state key already returned. Use it on a schedule to pay only for new Shorts.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the list of already scraped Shorts. Use a different key per monitored set.",
            "default": "default"
          },
          "includeErrorItems": {
            "title": "Include error rows",
            "type": "boolean",
            "description": "Adds a free row with an errorCode for every Short or input that could not be scraped (private, removed, channel without Shorts, invalid URL). Error rows are never charged.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy datacenter IPs work for most runs. Requests that YouTube blocks are retried on residential IPs automatically.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Residential fallback",
            "type": "boolean",
            "description": "Retry blocked requests through Apify residential IPs. Only used with Apify Proxy datacenter groups.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Shorts processed in parallel.",
            "default": 10
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with a fresh proxy session for each failed request.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}