{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Email Scraper — Channels, Keywords & Niches",
    "description": "Find verified creator emails from any YouTube channel — by keyword search, niche, or direct URL. Extracts emails from descriptions, Linktree, external websites & contact pages. Includes contactability scoring, social links, channel metadata, and analytics report. No API key needed.",
    "version": "1.0",
    "x-build-id": "4bSn9EKYEvyUfpcqg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~youtube-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-youtube-email-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/brilliant_gum~youtube-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-youtube-email-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/brilliant_gum~youtube-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-youtube-email-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 / Search URLs",
            "type": "array",
            "description": "Direct YouTube channel URLs (e.g. https://www.youtube.com/@mkbhd) or YouTube search result URLs. Each URL is scraped individually.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchKeywords": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Keywords to search YouTube for channels (e.g. [\"gaming tutorial\", \"vegan cooking\"]). Finds channels matching these terms and extracts their contact emails.",
            "items": {
              "type": "string"
            }
          },
          "niches": {
            "title": "Niche Categories",
            "type": "array",
            "description": "Predefined niche categories to search for channels. Available values: gaming, cooking, technology, beauty, fitness, travel, music, finance, education, comedy, fashion, sports, pets, diy, health, business, art, photography, automotive, food. Combines with searchKeywords if both are provided.",
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerSource": {
            "title": "Max channels per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of channels to process per keyword or niche. Higher values = more emails but longer runtime.",
            "default": 50
          },
          "minSubscribers": {
            "title": "Min subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with fewer subscribers than this value. 0 = no minimum.",
            "default": 0
          },
          "maxSubscribers": {
            "title": "Max subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with more subscribers than this value. 0 = no maximum. Useful for targeting micro-influencers.",
            "default": 0
          },
          "countryFilter": {
            "title": "Country filter",
            "type": "array",
            "description": "Only include channels from these countries (e.g. [\"United States\", \"United Kingdom\"]). Leave empty to include all countries.",
            "items": {
              "type": "string"
            }
          },
          "emailDomainFilter": {
            "title": "Email domain filter",
            "type": "array",
            "description": "Only include emails from these domains (e.g. [\"gmail.com\", \"yahoo.com\"]). Leave empty to include all domains.",
            "items": {
              "type": "string"
            }
          },
          "excludeRoleEmails": {
            "title": "Exclude role/generic emails",
            "type": "boolean",
            "description": "Skip generic addresses like info@, contact@, noreply@, support@. These rarely lead to the creator directly.",
            "default": false
          },
          "minContactabilityScore": {
            "title": "Min contactability score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only include emails with a contactability score at or above this threshold (0-100). Higher = more likely to reach a real person.",
            "default": 0
          },
          "followExternalLinks": {
            "title": "Follow external website links",
            "type": "boolean",
            "description": "Visit linked websites listed on channel pages to find additional contact emails. Increases hit rate by ~20%. Adds time per channel.",
            "default": true
          },
          "followLinktree": {
            "title": "Follow Linktree / link aggregators",
            "type": "boolean",
            "description": "Follow link aggregator pages (Linktree, Beacons, Bio.link, etc.) to extract emails. These often contain business contact info.",
            "default": true
          },
          "includeAnalytics": {
            "title": "Include analytics report",
            "type": "boolean",
            "description": "Generate a comprehensive insights report (email hit rate, source breakdown, top domains, subscriber distribution) and save to Key-Value store as ANALYTICS.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "YouTube blocks datacenter IPs. Apify Residential proxy is strongly recommended for reliable results."
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Milliseconds to wait between requests to YouTube. Increase to 2000+ for large runs to avoid rate limiting.",
            "default": 1500
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}