{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Email Finder: Creator Contacts by Handle/Topic",
    "description": "Find a YouTube creator's public business email and contacts by channel handle, URL or ID, or find channels by topic keyword. Returns per channel: emails with source and own-domain flag, subscribers, country, links, has_business_email. $0.003 per channel with an email; channels without one are free.",
    "version": "0.0",
    "x-build-id": "XSphPO2i69lVciiWY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~youtube-channel-email-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-youtube-channel-email-finder",
        "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/scrapebench~youtube-channel-email-finder/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-youtube-channel-email-finder",
        "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/scrapebench~youtube-channel-email-finder/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-youtube-channel-email-finder",
        "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 to look up",
            "type": "array",
            "description": "YouTube channels to look up: a handle (`@mkbhd`), a channel URL (`/@handle`, `/channel/UC...`, `/c/name`, `/user/name`) or a channel ID (`UC...`). One row per channel, in your order. The filters below do not apply to channels you name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Topic keywords (find channels)",
            "type": "array",
            "description": "Topic keywords to find channels by, e.g. `sourdough baking`. Each returns up to `maxChannelsPerQuery` channels that pass the filters. Searching is not billed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum channel rows per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Run-wide cap on channel rows (named and found together). Only rows with a public email are billed, so a run costs at most maxResults x $0.003 (default 50 = $0.15).",
            "default": 50
          },
          "maxChannelsPerQuery": {
            "title": "Channels kept per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Channels kept per search keyword, after the filters. Searching and rows without an email are free; still bounded by maxResults.",
            "default": 20
          },
          "minSubscribers": {
            "title": "Minimum subscribers (search only)",
            "minimum": 0,
            "type": "integer",
            "description": "Search results only: skip channels with fewer subscribers (search returns many dead ones). 0 keeps all. Does not apply to channels you name.",
            "default": 1000
          },
          "maxSubscribers": {
            "title": "Maximum subscribers (search only)",
            "minimum": 0,
            "type": "integer",
            "description": "Search results only: skip channels with more subscribers. Empty = no upper limit."
          },
          "countries": {
            "title": "Countries (search only)",
            "type": "array",
            "description": "Search results only: keep channels whose About page names one of these countries, as an ISO code or name (`US`, `United States`). Channels showing no country are skipped. Empty = any.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activeWithinDays": {
            "title": "Uploaded within days (search only)",
            "minimum": 0,
            "type": "integer",
            "description": "Search results only: keep channels that uploaded a video in the last N days. 0 = off.",
            "default": 0
          },
          "onlyWithEmail": {
            "title": "Only channels with a public email",
            "type": "boolean",
            "description": "true = return only channels with a billable public email (a third party's address does not count). false = the rest come back as free rows with status no_email or third_party_email and has_business_email.",
            "default": false
          },
          "emailSources": {
            "title": "Where to look for emails",
            "type": "array",
            "description": "Available: `about` = the channel's About text. `videos` = descriptions of the 5 latest videos. `website` = sites the channel links to (homepage plus contact/about pages), read only when About and videos had no email; link-in-bio, shop and social hosts are skipped. Default: all three.",
            "items": {
              "type": "string",
              "enum": [
                "about",
                "videos",
                "website"
              ]
            },
            "default": [
              "about",
              "videos",
              "website"
            ]
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Off by default, because YouTube answers Apify's datacenter IPs plainly. Turn on only if runs report `blocked`.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}