{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper: Every Video & Short",
    "description": "Every upload of a YouTube channel, newest first: videos, Shorts and live streams in one list. $0.25 per 1,000 videos. Each typed, with the channel's subscribers and links.",
    "version": "0.1",
    "x-build-id": "5N8HdILEnASLh32xv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luzivanlt~youtube-channel-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luzivanlt-youtube-channel-videos-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/luzivanlt~youtube-channel-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-luzivanlt-youtube-channel-videos-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/luzivanlt~youtube-channel-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-luzivanlt-youtube-channel-videos-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": "Channel, playlist or video links",
            "type": "array",
            "description": "Links to YouTube channels (https://www.youtube.com/@name, /channel/UC…, /c/name or /user/name, any of their tabs), playlists (/playlist?list=…, or a watch link inside a playlist) or single videos (watch?v=…, youtu.be/…, /shorts/…, /live/…), with or without https://. A bare @handle, UC… channel id, PL… playlist id or 11-character video id works too. A channel gives every upload, newest first; a playlist gives its videos in the playlist's order; a video link gives that one video. Search links are not accepted. Give each channel once: its handle and its id are read as two channels. Required. Example: https://www.youtube.com/@veritasium",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerChannel": {
            "title": "Max videos per channel or playlist",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop reading a channel or playlist after this many videos (a channel newest first, a playlist in its own order). Leave empty to read the whole list, back to a channel's first upload. From 1 to 100,000; the sample run uses 50. It caps what you pay: each video saved costs $0.0005 ($0.50 per 1,000), so 50 per channel costs at most $0.025 a channel."
          },
          "onlyVideosNewerThan": {
            "title": "Only videos newer than",
            "type": "string",
            "description": "Keep only videos from this date on: a date (YYYY-MM-DD, UTC) or a period such as \"7 days\", \"2 weeks\", \"3 months\" or \"1 year\". A channel is read newest first and stops at the first video older than that, so a short period costs only the newest videos. YouTube's lists show an age such as \"3 weeks ago\", so a video up to one unit older can come in; with Include video details on, the cut is on the exact upload date. A playlist is read whole and its older videos left out. A single video link is always read, whatever its date. Leave empty for every video. Example: 30 days"
          },
          "includeVideos": {
            "title": "Include videos",
            "type": "boolean",
            "description": "Save the channel's regular (long) videos, each marked with the type \"video\". On by default. Turn it off to leave them out: they are neither saved nor charged. Keep at least one of the three types on. It applies to channels: a playlist gives every video it holds. With all three on, the run's status compares what it read with the count YouTube shows for the channel's uploads.",
            "default": true
          },
          "includeShorts": {
            "title": "Include Shorts",
            "type": "boolean",
            "description": "Save the channel's Shorts, each marked with the type \"short\". On by default. Turn it off to leave them out: they are neither saved nor charged. Keep at least one of the three types on. It applies to channels: a playlist gives every video it holds. With all three on, the run's status compares what it read with the count YouTube shows for the channel's uploads.",
            "default": true
          },
          "includeLiveStreams": {
            "title": "Include live streams",
            "type": "boolean",
            "description": "Save the channel's live streams: past, live now and upcoming, each marked with the type \"live\". On by default. Turn it off to leave them out: they are neither saved nor charged. Keep at least one of the three types on. It applies to channels: a playlist gives every video it holds. With all three on, the run's status compares what it read with YouTube's count.",
            "default": true
          },
          "includeVideoDetails": {
            "title": "Include video details",
            "type": "boolean",
            "description": "Also read each video's own page: its exact upload date, exact like and view counts, the full description with its links and hashtags, the comment count, and the channel's banner, keywords, family-safe flag and the countries it is available in. One more read per video, so a run takes longer: about 20 to 25 more minutes per 1,000 videos. Off by default."
          },
          "onlyNewItems": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "Turn this on for a scheduled run, or a re-run of the same task: each run then returns only the videos it has not returned before, reading each channel back to a day before the last run that read it (a playlist is read whole). Skipped videos are neither saved nor charged; each new video is charged as usual. Runs with other settings, or from another task, keep their own list. Off by 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}