{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Email Scraper & Finder (Public Channel Emails)",
    "description": "Find the business emails YouTube creators publish themselves: channel description, About links and their website's contact pages. Search by niche or paste channels, filter by country and subscribers. Every email has its source and confidence. Pay per unique email only.",
    "version": "0.1",
    "x-build-id": "0fvQDa7LjGLTWmoh6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/badr_xba~youtube-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-badr_xba-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/badr_xba~youtube-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-badr_xba-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/badr_xba~youtube-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-badr_xba-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One niche per line, e.g. \"real estate investing\", \"home workout\". Each keyword searches YouTube for CHANNELS (not videos).",
            "items": {
              "type": "string"
            }
          },
          "channelUrls": {
            "title": "Channel URLs, @handles or channel IDs",
            "type": "array",
            "description": "One per line: https://www.youtube.com/@handle, @handle, https://www.youtube.com/channel/UC..., UC... IDs, /c/ and /user/ URLs. Lists pasted on one line (comma or space separated) are accepted.",
            "items": {
              "type": "string"
            }
          },
          "maxChannelsPerSearch": {
            "title": "Channels per search keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many channels to take from each keyword search (YouTube's own order). Pagination is automatic.",
            "default": 50
          },
          "maxChannels": {
            "title": "Maximum channels per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stops queueing new channels once this many were taken from your input and searches (default 500, maximum 10,000 per run; an empty value or 0 means 500). Channels themselves are never charged.",
            "default": 500
          },
          "stopAfterChannelsWithoutEmail": {
            "title": "Stop after N channels in a row without a public email",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety stop: when this many checked channels in a row show no public email, the run ends (stop reason tooManyChannelsWithoutEmail) so you can change niche or filters. 0 = never stop for this reason.",
            "default": 200
          },
          "searchCountry": {
            "title": "Search region (2-letter code)",
            "type": "string",
            "description": "Optional, e.g. US, GB, DE: YouTube's search region (gl). It biases the search; it does not guarantee the channel's country (use the country filter below for that)."
          },
          "searchLanguage": {
            "title": "Search language (2-letter code)",
            "type": "string",
            "description": "Optional, e.g. en, es, fr: YouTube's interface / relevance language for the search (hl). YouTube publishes no reliable channel language, so this is a search hint, not a filter."
          },
          "channelCountries": {
            "title": "Only channels from these countries",
            "type": "array",
            "description": "Country names or 2-letter codes (United States, US, DE...). Uses the country the creator set on the About page; channels without a country are excluded when this filter is set.",
            "items": {
              "type": "string"
            }
          },
          "minSubscribers": {
            "title": "Minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Channels with fewer subscribers (or hidden subscriber count) are skipped."
          },
          "maxSubscribers": {
            "title": "Maximum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Channels with more subscribers (or hidden subscriber count) are skipped."
          },
          "activeWithinDays": {
            "title": "Uploaded a video in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keeps only channels whose newest regular video is at most N days old (approximate date from YouTube's list). Costs one extra list read per channel. Channels whose activity cannot be read are skipped."
          },
          "websiteMode": {
            "title": "Read the websites the channel links to",
            "enum": [
              "ifNoEmailFound",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Websites and link-in-bio pages (Linktree, Beacons, Carrd...) linked from the About page or the description.",
            "default": "ifNoEmailFound"
          },
          "maxWebsitesPerChannel": {
            "title": "Websites per channel",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many linked sites to read per channel (the creator's own site first, then a link-in-bio page).",
            "default": 2
          },
          "maxPagesPerWebsite": {
            "title": "Pages per website",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Home page, then contact / about / imprint pages of the same site. A site stops at its first page that shows an email.",
            "default": 3
          },
          "excludePersonalLookingEmails": {
            "title": "Exclude personal-looking emails (GDPR-safer)",
            "type": "boolean",
            "description": "On (default): addresses that look like a private person's mailbox (firstname.lastname@, or a free-mail address with no business word that is not the channel's own name) are left out and never charged. Off: they are delivered with looksPersonal: true - you are responsible for using them lawfully.",
            "default": true
          },
          "maxEmails": {
            "title": "Stop after N unique emails (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops cleanly once this many unique emails were delivered. Combine with \"Maximum cost per run\" to control spend.",
            "default": 0
          },
          "verificationProvider": {
            "title": "Verify mailboxes with your own key (optional)",
            "enum": [
              "none",
              "hunter",
              "reoon"
            ],
            "type": "string",
            "description": "Each unique email is verified once per run. A refused key or an exhausted plan stops verification; the run continues.",
            "default": "none"
          },
          "verificationApiKey": {
            "title": "Verification API key",
            "type": "string",
            "description": "Your Hunter.io or Reoon API key. Stored encrypted by Apify, used only for this run, redacted from logs."
          },
          "youtubeApiKey": {
            "title": "Your YouTube Data API v3 key (optional)",
            "type": "string",
            "description": "Stored encrypted by Apify, used only for this run, redacted from logs."
          },
          "maxConcurrency": {
            "title": "Channels in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Lowered automatically on small memory.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy for YouTube pages",
            "type": "object",
            "description": "Apify datacenter proxy by default: each refused YouTube request is retried with a new IP (up to 8 attempts). Linked websites are read directly, never through rotating IPs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxEnhancedRecoveries": {
            "title": "Enhanced recovery: residential retries (0 = off)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Off by default. When on, a YouTube page refused on every datacenter attempt is retried through the residential proxy, at most this many times per run, and only while the separate enhanced-recovery event is available in this Actor's pricing (one event per page recovered).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}