{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper (subscribers, emails, links, stats)",
    "description": "YouTube channel scraper: subscribers, total views, video count, joined date, country, emails in the description, social links and latest videos. Takes YouTube channel URLs, @handles, channel IDs or keywords, no API key. Use it to find YouTube influencers and their contact emails.",
    "version": "1.0",
    "x-build-id": "AuQnqZK8DFycD9HTR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tamnt67~youtube-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tamnt67-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/tamnt67~youtube-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tamnt67-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/tamnt67~youtube-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tamnt67-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": "Channel URLs, @handles or channel IDs, one per line: https://www.youtube.com/@mkbhd, @mkbhd, mkbhd or UCBJycsmduvYEL83R_U4JriQ.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Find channels by keyword",
            "type": "array",
            "description": "Optional. Search YouTube for channels matching each keyword and scrape the channels found (for example \"tech reviews\" or \"yoga\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerQuery": {
            "title": "Max channels per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Only used with keyword search.",
            "default": 20
          },
          "searchSortBy": {
            "title": "Keyword search order",
            "enum": [
              "relevance",
              "upload_date",
              "view_count",
              "rating"
            ],
            "type": "string",
            "description": "Order of YouTube search results when finding channels by keyword. Relevance is what YouTube shows by default.",
            "default": "relevance"
          },
          "findChannelsVia": {
            "title": "Find channels via",
            "enum": [
              "channelSearch",
              "videoSearch"
            ],
            "type": "string",
            "description": "\"Channel results\": YouTube channel search (the channel name or description matches the keyword). \"Video results\": the channels that uploaded videos matching the keyword, which finds smaller creators who talk about the topic.",
            "default": "channelSearch"
          },
          "recentVideosCount": {
            "title": "Recent videos per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also return this many latest videos (title, views, published, duration) and the average views across them. 0 to skip.",
            "default": 0
          },
          "recentVideosSort": {
            "title": "Recent videos order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Which videos fill recentVideos: newest uploads (default), most popular or oldest.",
            "default": "newest"
          },
          "recentShortsCount": {
            "title": "Recent Shorts per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Add up to this many Shorts from the channel's Shorts tab as recentShorts (title, views, URL). 0 = off.",
            "default": 0
          },
          "recentStreamsCount": {
            "title": "Recent live streams per channel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Add up to this many live streams from the channel's Live tab as recentStreams. 0 = off.",
            "default": 0
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "Two-letter language code for localized texts (en, de, fr, es, pt, ja, vi...).",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code used for keyword search results (US, GB, DE, IN, BR...).",
            "default": "US"
          },
          "minSubscribers": {
            "title": "Filter: minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Save only channels with at least this many subscribers. Channels that hide their subscriber count are skipped while this is set."
          },
          "maxSubscribers": {
            "title": "Filter: maximum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Save only channels with at most this many subscribers (for example to find micro-influencers)."
          },
          "minVideos": {
            "title": "Filter: minimum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Save only channels with at least this many videos."
          },
          "maxVideos": {
            "title": "Filter: maximum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Save only channels with at most this many videos."
          },
          "verifiedOnly": {
            "title": "Filter: verified channels only",
            "type": "boolean",
            "description": "Save only channels with the verified badge.",
            "default": false
          },
          "businessEmailOnly": {
            "title": "Filter: business email button only",
            "type": "boolean",
            "description": "Save only channels whose About panel has the \"View email address\" button (hasBusinessEmail: true). The email itself is behind a sign-in and captcha and is not scraped.",
            "default": false
          },
          "channelCountries": {
            "title": "Filter: channel countries",
            "type": "array",
            "description": "Optional. Save only channels whose About panel country is one of these. Two-letter codes (US, GB, VN) or English country names. Channels without a country are skipped while this is set.",
            "items": {
              "type": "string"
            }
          },
          "joinedAfter": {
            "title": "Filter: joined on or after",
            "type": "string",
            "description": "Optional. Date such as 2020-01-31. Save only channels created on or after this date."
          },
          "joinedBefore": {
            "title": "Filter: joined on or before",
            "type": "string",
            "description": "Optional. Date such as 2023-12-31. Save only channels created on or before this date."
          },
          "activeWithinDays": {
            "title": "Filter: uploaded within days",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Save only channels whose latest video was uploaded within this many days (from YouTube's \"3 days ago\" text, so approximate; needs interface language en). Costs one extra request per channel when recent videos are off."
          },
          "excludeChannels": {
            "title": "Exclude channels",
            "type": "array",
            "description": "Optional. Channel IDs, @handles or URLs to leave out, for example channels you already have.",
            "items": {
              "type": "string"
            }
          },
          "maxChannels": {
            "title": "Max channels in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Stop after saving this many channels in the whole run. Empty = no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for YouTube. Switch to residential only if runs start failing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}