{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Search Scraper",
    "description": "Find public YouTube channels from keywords, search URLs, channel references, or seed channels. Get channel IDs, handles, public metrics, profile details, and optional recent videos. Each row shows how the channel was first found.",
    "version": "7.0",
    "x-build-id": "TcgzajCxzgBOaJNrx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~youtube-channel-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-youtube-channel-search-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/maximedupre~youtube-channel-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-youtube-channel-search-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/maximedupre~youtube-channel-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-youtube-channel-search-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",
        "required": [
          "discoveryMode"
        ],
        "properties": {
          "maxTotalResults": {
            "title": "Total channel limit",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after saving this many unique channels across the whole run. Enter 0 or leave it empty for all available results. Channels left out by filters or the excluded list do not count."
          },
          "discoveryMode": {
            "title": "Find channels by",
            "enum": [
              "both",
              "videoResults",
              "channelFilter",
              "channelReferences",
              "featuredChannels",
              "seedKeywords"
            ],
            "type": "string",
            "description": "Video results and Channel-only search find channels by keywords or search URLs. Channel details reads channels from your references. Featured channels finds channels listed by seed channels. Seed channel keywords searches with the public keywords of seed channels."
          },
          "channelReferences": {
            "title": "Channel references",
            "type": "array",
            "description": "For Channel details, add YouTube handles such as @Google, channel IDs, complete channel URLs, or complete video URLs. A video URL returns its channel. Add one value per entry.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 500,
            "type": "array",
            "description": "Words or phrases to search for on YouTube. Add up to 500 terms. Hashtags and YouTube search expressions are accepted. Keep each phrase in one entry.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "searchUrls": {
            "title": "YouTube search URLs",
            "type": "array",
            "description": "For Video results and channel-only search, Video results, and Channel-only search, add complete YouTube /results URLs with a search_query value. Keep the query and supported YouTube search filters from each URL. Search language and country use the settings below.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "A public YouTube search-result URL.",
                  "pattern": "^https?://(?:www\\.|m\\.)?youtube\\.com/results(?:\\?|$)",
                  "minLength": 1
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "seedChannels": {
            "title": "Seed channels",
            "type": "array",
            "description": "For Featured channels and Seed channel keywords, add YouTube handles, channel IDs, or complete channel URLs. Featured channels reads their public featured channels. Seed channel keywords searches with their public channel keywords.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "maxChannelsPerSearchTerm": {
            "title": "Channels per search",
            "minimum": 0,
            "type": "integer",
            "description": "For Video results and channel-only search, Video results, Channel-only search, and Seed channel keywords, stop each keyword or search URL after this many eligible channels. Enter 0 or leave it empty for no per-search limit. A channel saved from an earlier search still counts here, but it is not saved twice."
          },
          "languageHint": {
            "title": "Search language",
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
            "minLength": 2,
            "type": "string",
            "description": "For Video results and channel-only search, Video results, Channel-only search, and Seed channel keywords. Use a language code from YouTube's Display language settings, such as en for English, zh-CN for Simplified Chinese, zh-TW for Traditional Chinese, or fil for Filipino. See [YouTube language and location help](https://support.google.com/youtube/answer/87604). This sets the language for YouTube search pages. Leave it out to use English."
          },
          "countryHint": {
            "title": "Search country",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "For Video results and channel-only search, Video results, Channel-only search, and Seed channel keywords. Use a two-letter country code, such as US for the United States, ID for Indonesia, or GB for the United Kingdom. Find country choices in YouTube's Location settings. See [YouTube language and location help](https://support.google.com/youtube/answer/87604). This sets the country YouTube uses for search. Leave it out to use the United States. Other codes are accepted and may not affect results."
          },
          "searchOrder": {
            "title": "Channel search order",
            "enum": [
              "relevance",
              "viewCount"
            ],
            "type": "string",
            "description": "For Channel-only search, the channel part of Video results and channel-only search, and Seed channel keywords, choose YouTube relevance or view-count order. Leave it out for relevance order."
          },
          "useAutocomplete": {
            "title": "Use autocomplete suggestions",
            "type": "boolean",
            "description": "For Video results and channel-only search, Video results, Channel-only search, and Seed channel keywords, also search YouTube autocomplete suggestions for each keyword. Turn this off to search only the submitted or seed keywords and search URLs.",
            "default": false
          },
          "minSubscribers": {
            "title": "Minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Save only channels with at least this many public subscribers. Channels with no public subscriber count do not match."
          },
          "maxSubscribers": {
            "title": "Maximum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Save only channels with no more than this many public subscribers. It works with the minimum. Channels with no public subscriber count do not match."
          },
          "minVideos": {
            "title": "Minimum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Save only channels with at least this many public videos. Channels with no public video count do not match."
          },
          "maxVideos": {
            "title": "Maximum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Save only channels with no more than this many public videos. It works with the minimum. Channels with no public video count do not match."
          },
          "verifiedOnly": {
            "title": "Verified channels only",
            "type": "boolean",
            "description": "Save only channels that YouTube marks as verified.",
            "default": false
          },
          "channelCountries": {
            "title": "Channel countries",
            "type": "array",
            "description": "Save only channels whose owners state one of these countries. Enter two-letter country codes, such as DE or US. Channels with no public country do not match. Leave the list empty for any country. This filters channel profiles, not the search country.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$",
              "minLength": 2,
              "maxLength": 2
            }
          },
          "createdAfter": {
            "title": "Created on or after",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Save only channels created on or after this date. Use YYYY-MM-DD. Channels with no public creation date do not match. Leave it empty for no date bound."
          },
          "createdBefore": {
            "title": "Created on or before",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Save only channels created on or before this date. Use YYYY-MM-DD. Channels with no public creation date do not match. Leave it empty for no date bound."
          },
          "recentUploadDays": {
            "title": "Recent upload within days",
            "minimum": 1,
            "type": "integer",
            "description": "Save only channels with a dated public long-form video from the past number of days. For example, 30 means the past 30 days. Channels with no matching dated upload do not match. Leave it empty for no upload-date filter."
          },
          "businessEmailButtonOnly": {
            "title": "Business-email button only",
            "type": "boolean",
            "description": "Save only channels whose public profile shows YouTube's business-email button. This checks for the button; it does not reveal an email address behind it.",
            "default": false
          },
          "excludedChannels": {
            "title": "Excluded channels",
            "type": "array",
            "description": "Add YouTube handles, channel IDs, or full channel URLs to leave out. Put one value on each line. The Actor matches each channel by its identity.",
            "items": {
              "type": "string",
              "pattern": "^(?:https?://(?:www\\.|m\\.)?youtube\\.com/(?:@[A-Za-z0-9._-]+|channel/UC[A-Za-z0-9_-]+)(?:[/?#].*)?|@[A-Za-z0-9._-]+|UC[A-Za-z0-9_-]+)$",
              "minLength": 1
            }
          },
          "includeRecentVideos": {
            "title": "Include recent videos",
            "type": "boolean",
            "description": "Add each saved channel's recent public long-form videos, with video ID, link, title, views, and publish text. Each added video is charged. This works with all methods.",
            "default": false
          },
          "maxRecentVideos": {
            "title": "Recent videos per channel",
            "minimum": 0,
            "type": "integer",
            "description": "When Include recent videos is on, add up to this many recent videos to each channel, where available. Enter 0 for all available recent videos. When it is off, no videos are added.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}