{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper (Views, Likes, Sounds, Hashtags)",
    "description": "YouTube Shorts from keywords, #hashtags, channels' Shorts tabs or links. Every row is a Short: views, likes, comments, length, sound when named, hashtags, publish date, channel and subscribers. Comments, only-new mode for schedules. $2 per 1,000 Shorts. No login, no API key.",
    "version": "0.1",
    "x-build-id": "zTzd4V2HV1yxchHHG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~youtube-shorts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-youtube-shorts",
        "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/locaihost~youtube-shorts/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-youtube-shorts",
        "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/locaihost~youtube-shorts/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-youtube-shorts",
        "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": {
          "searchTerms": {
            "title": "Search terms or #hashtags",
            "type": "array",
            "description": "What you would type into YouTube's search box, or a #hashtag like #shorts. A hashtag reads the hashtag's own Shorts feed when YouTube's page offers one, and its Shorts search otherwise. Each term returns up to Max results Shorts.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Channel @handles, links or UC… ids (@NASA, https://www.youtube.com/@nike). Each returns that channel's Shorts tab, up to Max results, plus a channel row with its subscriber count (see Channel options to turn that off).",
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Shorts links",
            "type": "array",
            "description": "Links to single Shorts (youtube.com/shorts/…, youtu.be/…) or bare video ids. A regular video link comes back as a free row saying so, never as a charged result. Add comments below to get each Short's comments.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Most Shorts per search term, hashtag, channel tab and playlist. 0 with channels returns the channel row only.",
            "default": 20
          },
          "playlistUrls": {
            "title": "Playlist links",
            "type": "array",
            "description": "Playlist links (youtube.com/playlist?list=…) or ids. Only the Shorts in a playlist are returned; a playlist of regular videos gets a free row saying so.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Any YouTube link: hashtag pages (youtube.com/hashtag/coldbrew), Shorts and channel links, playlists and search result pages (their filters are kept). Only Shorts are returned from any of them.",
            "items": {
              "type": "string"
            }
          },
          "videoDetails": {
            "title": "Full video details",
            "type": "boolean",
            "description": "Open every Short for exact likes, exact upload time, description, tags, category, comment count, the sound it uses and channel subscribers. Same price either way; off is faster and returns only what the search, hashtag feed or channel tab shows (title, views). Always on for Shorts links and when comments are on.",
            "default": true
          },
          "uploadDate": {
            "title": "Upload date",
            "enum": [
              "any",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only Shorts uploaded within this time (YouTube's own Upload date filter).",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "popularity",
              "date"
            ],
            "type": "string",
            "description": "Relevance or Popularity, the two orders YouTube offers for search today.",
            "default": "relevance"
          },
          "features": {
            "title": "Features",
            "type": "array",
            "description": "Only Shorts that have all of these.",
            "items": {
              "type": "string",
              "enum": [
                "hd",
                "subtitles",
                "creativeCommons"
              ],
              "enumTitles": [
                "HD",
                "Subtitles/CC",
                "Creative Commons"
              ]
            },
            "default": []
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only Shorts published on or after this: a date like 2026-10-01 (midnight UTC) or a period like \"7 days\", \"2 weeks\" or \"3 months\". A channel tab read newest first stops at the first older Short, so you get exactly the recent ones. Other lists, searches included, aren't strictly by date: older Shorts are skipped and the list goes on (it gives up after 10 pages in a row with nothing inside). Left-out Shorts are free and don't count toward Max results. Shorts links are always returned. Empty = any date."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Only Shorts published before this: a date like 2026-10-01 or a period like \"1 month\" (published more than a month ago). Newer Shorts are skipped, free, and the list goes on. Combine with Published after for a range. Shorts links are always returned. Empty = up to now."
          },
          "channelSort": {
            "title": "Channel sort",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of each channel's Shorts tab, as the tab's own Latest / Popular / Oldest buttons sort it.",
            "default": "newest"
          },
          "includeChannelInfo": {
            "title": "Channel row ($)",
            "type": "boolean",
            "description": "One row per channel with subscribers, number of videos, total views, joined date, country, description and links. Charged as a channel.",
            "default": true
          },
          "includeComments": {
            "title": "Comments ($)",
            "type": "boolean",
            "description": "Return each Short's comments too, charged per comment. Each row carries the text, likes, reply count, date, the commenter's public @handle, and whether it is pinned or hearted by the creator. Shorts with comments turned off get a free row saying so.",
            "default": false
          },
          "maxComments": {
            "title": "Comments per Short",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Most comment rows per Short, replies included.",
            "default": 20
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "top",
              "newest"
            ],
            "type": "string",
            "description": "Top comments (YouTube's default order) or newest first.",
            "default": "top"
          },
          "includeReplies": {
            "title": "Replies",
            "type": "boolean",
            "description": "Also return replies, each right after the comment it answers, with parentId set. They count toward Comments per Short.",
            "default": false
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "With Replies on: the most replies returned under each comment, so a few huge threads don't use up Comments per Short. 0 or empty = no cap beyond Comments per Short."
          },
          "commentsNewerThan": {
            "title": "Comments newer than",
            "type": "string",
            "description": "Only comments posted after this: a date like 2026-10-01 or a period like \"24 hours\" or \"7 days\". Comments are then read newest first and each Short's comments stop at the first older one (a pinned comment doesn't end them). Replies older than the cutoff are left out too. Left-out comments are free. Empty = every date."
          },
          "onlyNew": {
            "title": "Only new Shorts and comments",
            "type": "boolean",
            "description": "Of the latest Shorts and comments (Max results / Comments per Short), return only those this input hasn't returned in an earlier run. For daily or weekly schedules. Skipped rows are not charged. Channel rows are always returned (their counts change).",
            "default": false
          },
          "gl": {
            "title": "Region",
            "type": "string",
            "description": "Two-letter country code (GB, IN, DE…) for YouTube's region: which results a search shows and which Shorts are offered, as for a visitor in that country. Text stays in English, because counts and dates are read from English wording. Empty = US.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}