{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Videos Scraper: Likes, Shorts & New Uploads",
    "description": "Every video of a YouTube channel (up to 5,000 per channel), or only Shorts, long-form or past livestreams, newest or most popular first, with date, views, duration and thumbnail. Only-new mode returns and charges just new uploads. No API key. Built for scheduled channel monitoring.",
    "version": "0.5",
    "x-build-id": "41QkTENGpIl674EGv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webdatatools~youtube-channel-videos/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webdatatools-youtube-channel-videos",
        "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/webdatatools~youtube-channel-videos/runs": {
      "post": {
        "operationId": "runs-sync-webdatatools-youtube-channel-videos",
        "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/webdatatools~youtube-channel-videos/run-sync": {
      "post": {
        "operationId": "run-sync-webdatatools-youtube-channel-videos",
        "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",
        "required": [
          "channels"
        ],
        "properties": {
          "channels": {
            "title": "YouTube channels",
            "type": "array",
            "description": "Enter the YouTube channels to read, one row is returned per video. Every form works: a channel ID (UCX6OQ3DkcsbYNE6H8uQQuVA), a handle (@MrBeast), or a channel URL (https://www.youtube.com/@apify, /channel/UC..., /c/Name, /user/Name). Channel IDs are read directly; handles and URLs cost one extra request to look the ID up, so paste UC... IDs when you have them.",
            "default": [
              "UCX6OQ3DkcsbYNE6H8uQQuVA"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerChannel": {
            "title": "Max videos per channel",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Enter how many videos to return per channel, e.g. 15. Up to 15 newest uploads come from the RSS feed (exact publish time, likes, description, 1 request). Above 15, the channel's uploads list is read too, up to 5,000 per channel (relative age like \"3 weeks ago\" and rounded views like \"85M views\" for videos past the newest 15, unless Exact likes and views for every video is on). Each video is one billed row.",
            "default": 15
          },
          "includeVideoStats": {
            "title": "Exact likes and views for every video",
            "type": "boolean",
            "description": "Adds the exact like count and exact view count to every video past the newest 15 (those already have them from the RSS feed). One small extra request per video (about 200 bytes), direct first and through Apify Proxy only if YouTube blocks it. No extra charge per video; a run with thousands of videos takes a little longer. Videos with hidden likes keep likeCount empty.",
            "default": false
          },
          "includeThumbnailChanges": {
            "title": "Thumbnail change date for every video",
            "type": "boolean",
            "description": "Adds when each video's current thumbnail was stored (thumbnailUpdatedAt) and whether it was set again after the video went live (thumbnailChangedAfterPublish, thumbnailChangedHoursAfterPublish): see which videos a channel went back to and when, on the whole back catalogue in one run. One body-less request per video to YouTube's image server, direct. No extra charge.",
            "default": false
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "all",
              "videos",
              "shorts",
              "streams"
            ],
            "type": "string",
            "description": "Which uploads to return: all (videos, Shorts and past livestreams, newest first), videos (long-form only), shorts (Shorts only, the newest ~100 YouTube lists) or streams (past livestreams only).",
            "default": "all"
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "popular"
            ],
            "type": "string",
            "description": "newest (default) or popular — the channel's most viewed long-form videos first. Popular order ignores Video type, Only new videos and Published after.",
            "default": "newest"
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only videos published after this moment: a date like 2026-11-01 or a period like \"7 days\" or \"24 hours\". Older videos are not returned and not charged; reading stops at the first older one.",
            "default": ""
          },
          "onlyNewVideos": {
            "title": "Only new videos (monitoring)",
            "type": "boolean",
            "description": "Remembers which videos each channel already returned (in the key-value store youtube-channel-videos-monitor of your account) and next time returns only uploads it has not seen. Videos already seen are not charged. The first run returns the videos and stores them as the starting point. Ideal for an hourly or daily schedule.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for separate schedules or clients. Same name + same channel + same video type and order = same memory.",
            "default": "default"
          },
          "proxyMode": {
            "title": "Proxy mode",
            "enum": [
              "auto",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Only relevant when a handle or channel URL needs resolving to a channel ID, or for the per-video requests of Exact likes and views. 'auto' (recommended) requests the channel page directly first and only switches to Apify Proxy for the rest of the run if that gets blocked — this keeps proxy cost at $0 whenever YouTube isn't currently blocking datacenter IPs. 'always' skips the direct attempt and always uses the proxy. 'never' always requests directly, even if that means errors.",
            "default": "auto"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Which Apify Proxy group to use when 'Proxy mode' above decides a handle-resolution request needs the proxy. Leave Residential proxy selected (the default). Not needed for plain UC... channel IDs (no extra request) or when running locally with your own IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Enter how many channels to read in parallel, e.g. 5. Each channel is one feed request, plus one channel-page request when you pass a handle instead of a UC... ID. Raise this to 10-20 for lists of hundreds of channels; lower it to 1-2 if YouTube starts answering with bot checks.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}