{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper | $0.25 per 1k | New-Video Monitor",
    "description": "Scrape YouTube channels: subscribers, views, links, country, upload frequency plus latest or most popular videos, Shorts, streams and playlists. Find channels by keyword, monitor new uploads via RSS, exact publish dates. No API key. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "hDgjIF5jQbpLfZm61"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~youtube-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-youtube-channel-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/solidrows~youtube-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-youtube-channel-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/solidrows~youtube-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-youtube-channel-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": "YouTube channels, one per line - as many as you need: @handles (@mkbhd), channel URLs (https://www.youtube.com/@mkbhd, /channel/UC..., /c/..., /user/...) or channel IDs (UC...). You can also paste a link to any <b>video, Short or youtu.be link</b> - the scraper takes the channel that published it - or type the <b>channel name</b> in words (e.g. Linus Tech Tips): the top channel from YouTube's channel search for that name is used. Inputs that cannot be recognised or do not exist produce a free error row.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Find channels by keyword",
            "type": "array",
            "description": "Optional. Keywords to discover channels (YouTube search with the \"Channels\" filter). Every channel found is scraped like the channels listed above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerQuery": {
            "title": "Max channels per keyword",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many channels to take for each keyword. YouTube shows about 20 channels per results page; above 20 the scraper also reads the page sorted by popularity (up to ~40 unique channels).",
            "default": 20
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "channel",
              "feed"
            ],
            "type": "string",
            "description": "<b>Channel data + videos</b>: a channel record plus videos from the channel's tabs. <b>New-video monitor</b>: reads only the channel's public RSS feed - the 15 latest uploads with exact publish time, exact views and likes and the full description; no channel record, no duration. Combine it with \"Only new videos\" and a schedule to watch hundreds of channels for new uploads.",
            "default": "channel"
          },
          "includeVideos": {
            "title": "Include videos",
            "type": "boolean",
            "description": "Save regular (long-form) videos of the channel.",
            "default": true
          },
          "includeShorts": {
            "title": "Include Shorts",
            "type": "boolean",
            "description": "Save the channel's Shorts.",
            "default": false
          },
          "includeStreams": {
            "title": "Include live streams",
            "type": "boolean",
            "description": "Save videos from the channel's Live tab: current, upcoming and past streams.",
            "default": false
          },
          "includePlaylists": {
            "title": "Include playlists",
            "type": "boolean",
            "description": "Save the channel's playlists (first page of the Playlists tab, about 30) as playlist records: title, ID, URL, number of videos.",
            "default": false
          },
          "sortVideosBy": {
            "title": "Sort videos by",
            "enum": [
              "latest",
              "popular"
            ],
            "type": "string",
            "description": "Latest uploads first, or the channel's most viewed videos first. In both orders the first 100 videos of each kind come with views and upload time on the list itself.",
            "default": "latest"
          },
          "maxVideosPerChannel": {
            "title": "Max videos per channel and kind",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit for each kind separately (videos, Shorts, streams). Up to 30 videos / 48 Shorts come from the channel tab in one request; up to 100 from the channel's public uploads playlist (one request). Above 100 the scraper walks the rest of the uploads playlist (about 80 videos per request) - those older videos come with title, duration and thumbnails only; turn on video details to get their views and dates. 0 = channel data only.",
            "default": 30
          },
          "channelSearchQuery": {
            "title": "Search inside each channel",
            "type": "string",
            "description": "Optional. A keyword to search within every channel (like the magnifier on a channel page). Up to 30 matching videos per channel, with exact view counts and description snippets, saved with tab = \"search\"."
          },
          "includeVideoDetails": {
            "title": "Open every video page for full details",
            "type": "boolean",
            "description": "Adds exact view count, exact like count, comment count, publish date, full description, hashtags and chapters to every video - and, when YouTube serves it, tags, category, exact publish time and caption languages. One extra request per video, so runs are slower. Charged as a separate event per video with details.",
            "default": false
          },
          "onlyNewVideos": {
            "title": "Only new videos (monitoring mode)",
            "type": "boolean",
            "description": "Remember the videos returned for each channel in previous runs and save only videos you have not received yet. Ideal for scheduled monitoring of competitors or creators: videos you already received are never charged again. The first run returns everything and builds the memory. With <b>Sort = Latest</b> the scraper checks the latest N uploads (N = Max videos per channel and kind). With <b>Most popular</b> or search inside a channel, already received videos do not use up the limit - each run returns the next N you have not received. In Channel data mode the channel record is saved (and charged) on every run; choose Mode = New-video monitor to pay only for new videos.",
            "default": false
          },
          "minSubscribers": {
            "title": "Min subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with fewer subscribers than this. A skipped channel produces no rows and is not charged; its videos are not fetched. Channels that hide their subscriber count are skipped when a subscriber filter is set. For channels found by keyword the filter is applied before the channel counts toward Max channels per keyword (when YouTube shows the subscriber count in search). Not applied in New-video monitor mode to channels given directly (the feed has no subscriber count)."
          },
          "maxSubscribers": {
            "title": "Max subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with more subscribers than this (same rules as Min subscribers). Subscriber counts are rounded by YouTube (e.g. 21.4M)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default and is enough for YouTube channel pages.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}