{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper · Channel Shorts, Search & Views",
    "description": "YouTube Shorts scraper, no login: 2,000 channel Shorts with exact views, likes and comments in 91 s. Each row: publish time, duration, sound, engagement rate, channel subscribers and Shorts count. Shorts search by keyword too. Filters: dates, min views, top by views, only new. CSV, Excel, JSON.",
    "version": "1.0",
    "x-build-id": "o9G03CMG9XZrgtecM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-data-api~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-data-api-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/instagram-data-api~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-instagram-data-api-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/instagram-data-api~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-data-api-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 (or links to single Shorts)",
            "type": "array",
            "description": "One per line, any mix: a handle (@NASA or nasa), a channel link (youtube.com/@NASA, /channel/UC…, /c/name, /user/name — with or without /shorts), a channel id (UC…), or a link to one Short (youtube.com/shorts/…) to get that Short alone. Duplicates are dropped before anything is read; a channel that does not exist or has no Shorts is not charged.",
            "items": {
              "type": "string"
            }
          },
          "maxShortsPerChannel": {
            "title": "Max Shorts per channel",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many Shorts to return for each channel, in the order chosen below. You pay for delivered Shorts only. With «Top by views» this is how many Shorts are looked at.",
            "default": 100
          },
          "sort": {
            "title": "Order of a channel's Shorts",
            "enum": [
              "NEWEST",
              "POPULAR",
              "OLDEST"
            ],
            "type": "string",
            "description": "YouTube's own three orders of the Shorts tab. «Most popular» with a limit of 10 gives a channel's 10 most viewed Shorts.",
            "default": "NEWEST"
          },
          "includeDetails": {
            "title": "Include details: exact views, likes, comments, date, duration, sound (+$2.00 / 1,000)",
            "type": "boolean",
            "description": "On: each Short is opened and its row gets exact views, likes and comments, publish time, duration, description, hashtags, keywords, category, sound and engagement rate — $3.00 per 1,000 Shorts on the Starter plan. Off: the list alone ($1.00 per 1,000) — title, views as YouTube rounds them («58K»), thumbnail and the channel's card. A Short whose details YouTube did not give is delivered without them and without this charge.",
            "default": true
          },
          "searchQueries": {
            "title": "Shorts search: keywords or #hashtags",
            "type": "array",
            "description": "One search per line: YouTube's own search with the «Shorts» filter, in YouTube's order (relevance). A line that starts with # searches the hashtag. Rows of a search carry the channel's name, id and handle (with details), not its subscriber numbers.",
            "items": {
              "type": "string"
            }
          },
          "maxShortsPerQuery": {
            "title": "Max Shorts per search",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many Shorts to return for each search line.",
            "default": 50
          },
          "country": {
            "title": "Country of the search",
            "type": "string",
            "description": "Two-letter country code (US, GB, DE, BR, IN …): YouTube's search results differ by country. Channels are the same everywhere.",
            "default": "US"
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Only Shorts published inside the date window: YYYY-MM-DD, or a period back from today («7 days», «3 months»). The publish date is part of a Short's details, so a date filter switches «Include details» on. Shorts outside the window are not charged; with «Newest first» the run stops where the window ends."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "The end of the date window, YYYY-MM-DD or a period back from today."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only Shorts with at least this many views — by the exact number with details, by YouTube's rounded number («58K» = 58,000) without. Shorts under it are not charged."
          },
          "topByViews": {
            "title": "Top by views: keep only the N most viewed",
            "minimum": 1,
            "type": "integer",
            "description": "Looks at «Max Shorts per channel» Shorts in the chosen order and returns only the N with the most views — «the 10 most viewed of the last 200». You pay for the N delivered."
          },
          "onlyNew": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "Remembers which Shorts this monitor already delivered (in a key-value store of your account, «youtube-shorts-scraper-seen») and returns only Shorts it has not delivered before. For scheduled runs: a channel with nothing new costs nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "«Only new» memory is kept per monitor name: use different names for tasks that must not share it. Letters, digits, - and _.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Requests at once",
            "minimum": 1,
            "maximum": 64,
            "type": "integer",
            "description": "How many requests run at the same time. The default suits most runs; lower it only if you use your own proxies and they are few.",
            "default": 24
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy's datacenter IPs by default — they are enough for YouTube's public pages. If they stop answering in a run, the Actor moves to residential IPs by itself.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}