{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper: Views, Likes, Sounds & Trends",
    "description": "Scrape YouTube Shorts from channels, searches, hashtags and sounds: exact views, likes, comments, publish date, duration and the sound used. Viral score, engagement rate and views per day to spot trending Shorts. Only-new mode for scheduled runs. No API key or quota.",
    "version": "0.1",
    "x-build-id": "ELC7sVe3bsFbYm2OF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": {
          "channels": {
            "title": "📺 Channels",
            "type": "array",
            "description": "One per line: channel links (youtube.com/@handle, /channel/UC...), @handles or channel IDs. Returns the channel's Shorts (see Channel Shorts order).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔍 Search queries",
            "type": "array",
            "description": "Keywords to search on YouTube with the Shorts filter, e.g. cooking hacks, iphone 17 review. One per line.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "#️⃣ Hashtags",
            "type": "array",
            "description": "Hashtags without spaces, with or without #: #cooking, fitness, or youtube.com/hashtag/... links. Returns the Shorts of the hashtag page and the number of videos using it (sourceTotal).",
            "items": {
              "type": "string"
            }
          },
          "sounds": {
            "title": "🎵 Sounds",
            "type": "array",
            "description": "Shorts that use a sound or song: a sound page link (youtube.com/source/.../shorts) or the link of any Short that uses it. Returns those Shorts and how many Shorts use the sound (sourceTotal).",
            "items": {
              "type": "string"
            }
          },
          "shorts": {
            "title": "🎬 Shorts URLs",
            "type": "array",
            "description": "Individual Shorts to check: youtube.com/shorts/... links or 11-character IDs. One row each with exact views, likes and comments.",
            "items": {
              "type": "string"
            }
          },
          "maxShortsPerSource": {
            "title": "🔢 Max Shorts per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many Shorts to return from each channel, search, hashtag or sound. A channel's Shorts tab lists all its Shorts; searches and hashtag pages usually end after a few hundred.",
            "default": 30
          },
          "channelSort": {
            "title": "↕️ Channel Shorts order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of a channel's Shorts, as on its Shorts tab. Most popular = the channel's most viewed Shorts.",
            "default": "newest"
          },
          "searchSort": {
            "title": "↕️ Search order",
            "enum": [
              "relevance",
              "popular"
            ],
            "type": "string",
            "description": "Order of search results: relevance as on YouTube, or the most viewed Shorts first (best with Search upload date, e.g. the most viewed Shorts of this week).",
            "default": "relevance"
          },
          "uploadDate": {
            "title": "📅 Search upload date",
            "enum": [
              "any",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only Shorts uploaded in this period, for search queries. Checked on each Short's exact publish date.",
            "default": "any"
          },
          "newerThan": {
            "title": "⏱️ Newer than",
            "type": "string",
            "description": "For all sources: only Shorts published in this period, e.g. 24 hours, 7 days, 2 weeks, 1 month, or a date like 2026-09-01. On a channel with Newest first the scan stops at the first older Short."
          },
          "minViews": {
            "title": "👀 Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only Shorts with at least this many views, e.g. 100000 for viral Shorts. Skipped Shorts are free."
          },
          "includeChannelStats": {
            "title": "📊 Channel subscribers and viral score",
            "type": "boolean",
            "description": "Add the channel's subscriber count and viralScore = views / subscribers (above 1: the Short reached more people than the channel has subscribers). One extra request per channel, no extra charge.",
            "default": true
          },
          "country": {
            "title": "🌍 Country",
            "type": "string",
            "description": "Two-letter country for searches and hashtag pages (us, gb, de, in...): YouTube shows different Shorts per country.",
            "default": "us"
          },
          "onlyNew": {
            "title": "🔔 Only new Shorts",
            "type": "boolean",
            "description": "For scheduled runs (save the input as a task and add a schedule). The first run returns the Shorts and remembers everything it listed; every later run returns only Shorts that were not there before: new uploads of a channel, new Shorts in a search, hashtag or sound. An empty result means nothing new.",
            "default": false
          },
          "monitorName": {
            "title": "🏷️ Monitor name",
            "type": "string",
            "description": "Name of the memory used by Only new Shorts. Use a different name for each task, otherwise two tasks share what they have already seen.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "⚡ Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many requests to YouTube run at the same time.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Requests go direct first and switch to Apify datacenter proxies when YouTube refuses them. The default works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}