{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper | Channel Shorts, Views, Likes & Dates",
    "description": "Extract YouTube Shorts from any channel: URL, title, views, likes, publish date, duration, thumbnail, channel info. Full details for any Shorts URL, plus incremental \"only new since last run\" tracking. No login, no browser, no proxy. $0.002/run + $0.0007/short.",
    "version": "1.0",
    "x-build-id": "e4QpeXFi47ecZEpjb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hridayrungta~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hridayrungta-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/hridayrungta~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hridayrungta-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/hridayrungta~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hridayrungta-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 (their Shorts)",
            "type": "array",
            "description": "One or more YouTube channels, one per line: a handle (\"@MrBeast\"), a full channel/handle URL, or a UC... channel id. Returns every Short on the channel's Shorts tab, newest first, paginated.",
            "items": {
              "type": "string"
            }
          },
          "shortsUrls": {
            "title": "Shorts URLs/IDs (details)",
            "type": "array",
            "description": "One or more individual Shorts, one per line: a youtube.com/shorts/<id> URL, any other YouTube video URL, or a bare 11-character video id. Returns full details: title, channel, exact view count, like count, publish date, duration, description, keywords, thumbnail.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full details for each channel Short",
            "type": "boolean",
            "description": "The channel Shorts grid itself only carries title, an approximate view count (\"16M views\") and a thumbnail. With this on (default), each Short's own page is also fetched to add like count, exact view count, exact publish date, duration, description, keywords and category - one extra request per Short, same price per row. Turn off for maximum speed if you only need ids, titles and rough views.",
            "default": true
          },
          "mode": {
            "title": "Channel mode",
            "enum": [
              "all",
              "changes"
            ],
            "type": "string",
            "description": "Only affects \"Channels\" above. \"all\": every Short the run reaches, every time. \"changes\": only Shorts new since your last run of that channel.",
            "default": "all"
          },
          "maxItems": {
            "title": "Max Short rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Cost cap - you're billed once per Short row saved, shared across channel Shorts and Shorts URL lookups.",
            "default": 100
          },
          "maxPagesPerSource": {
            "title": "Max pagination pages per channel",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many innertube continuation pages (48 Shorts each) to follow per channel before moving on - a safety cap independent of Max Short rows.",
            "default": 10
          },
          "firstRunSince": {
            "title": "First run since (channel mode \"changes\" only)",
            "type": "string",
            "description": "A channel's first incremental run only takes Shorts published since this date/span. Default \"30 days\"; \"all\" to take everything the run reaches. Needs \"Fetch full details\" on - the Shorts grid has no publish dates.",
            "default": "30 days"
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries with backoff for network errors, HTTP 429 and 5xx responses.",
            "default": 3
          },
          "stateStoreName": {
            "title": "State store name (channel mode \"changes\" only)",
            "type": "string",
            "description": "Name of the key-value store (in YOUR account) that holds the high-water mark per channel. Leave blank for the default.",
            "default": ""
          },
          "stateNamespace": {
            "title": "State namespace (channel mode \"changes\" only)",
            "type": "string",
            "description": "Advanced: an explicit namespace for the mark key. Leave blank to namespace by your Apify user id automatically.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}