{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Contacts & Email Finder - Socials & Websites",
    "description": "[💰$0.10/1K] Find business emails and social profiles of YouTube channels from channel and video descriptions. Returns email, role flags, MX status, Twitter, Instagram, TikTok, Facebook, Telegram, LinkedIn, website and shop, plus subscribers, views and last uploads. No login, no proxies, no API key.",
    "version": "0.9",
    "x-build-id": "LouamCUDwSbyURd77"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai-lead-gen-tools~youtube-channel-contacts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai-lead-gen-tools-youtube-channel-contacts",
        "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/ai-lead-gen-tools~youtube-channel-contacts/runs": {
      "post": {
        "operationId": "runs-sync-ai-lead-gen-tools-youtube-channel-contacts",
        "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/ai-lead-gen-tools~youtube-channel-contacts/run-sync": {
      "post": {
        "operationId": "run-sync-ai-lead-gen-tools-youtube-channel-contacts",
        "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": {
          "mode": {
            "title": "Where to take channels from",
            "enum": [
              "keywords",
              "channels"
            ],
            "type": "string",
            "description": "`keywords` searches YouTube for channels. `channels` reads the channels you list in `channelIds` and skips the search.",
            "default": "keywords"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search YouTube for, up to 20. Used in `keywords` mode.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            }
          },
          "channelIds": {
            "title": "Channels to read",
            "type": "array",
            "description": "Channel ids (`UC…`), handles (`@name`) or full channel links. Used in `channels` mode.",
            "items": {
              "type": "string"
            }
          },
          "maxChannels": {
            "title": "Max channels",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on channels read and saved. Charged per channel that yields at least one contact.",
            "default": 200
          },
          "videosPerChannel": {
            "title": "Video descriptions to read",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many recent videos to open per channel for email addresses. Each video is one page load. 0 reads only the pinned video from the About page.",
            "default": 5
          },
          "includePinnedVideo": {
            "title": "Also read the pinned video",
            "type": "boolean",
            "description": "The pinned video's description is embedded in the About page, so it costs nothing extra. Channels often keep business contacts there.",
            "default": true
          },
          "checkEmailDomain": {
            "title": "Check email domains",
            "type": "boolean",
            "description": "Look up MX records of each found email domain and report `has_mx`, `no_mx` or `unknown`. This says the domain accepts mail; it does not prove the mailbox exists, so there is no `emailVerified` field.",
            "default": false
          },
          "includeBusinessEmailStatus": {
            "title": "Report the YouTube business email button",
            "type": "boolean",
            "description": "YouTube shows a business email button on some channels, but its address opens only after sign-in and a captcha. Keep this on to get `hasBusinessEmail` and an explicit note that the address was not taken.",
            "default": true
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "YouTube `hl` value, e.g. `en`, `de`, `es`. Affects labels such as \"subscribers\" and \"Joined\".",
            "default": "en"
          },
          "region": {
            "title": "Search region",
            "type": "string",
            "description": "YouTube `gl` value, e.g. `US`, `DE`, `GB`. Changes which channels a keyword returns even without a proxy.",
            "default": "US"
          },
          "minSubscribers": {
            "title": "Min subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Drop channels below this rounded subscriber count. Checked after the channel pages are read, because the count comes from there. 0 disables the filter.",
            "default": 0
          },
          "maxSubscribers": {
            "title": "Max subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Drop channels above this rounded subscriber count. 0 disables the filter.",
            "default": 0
          },
          "maxUploadAgeDays": {
            "title": "Last upload within days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Drop channels whose newest upload is older than this many days, e.g. `180` keeps only channels active within the last six months. Read from the channel videos page, so it runs after the pages are fetched. 0 disables the filter.",
            "default": 0
          },
          "countries": {
            "title": "Channel countries",
            "type": "array",
            "description": "Keep only channels whose owner declared one of these countries. ISO 3166 codes or English names, e.g. `US`, `Germany`.",
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Verified channels only",
            "type": "boolean",
            "description": "Keep only channels carrying YouTube's verification badge. Works in `keywords` mode; a listed channel has no badge data until its pages are read.",
            "default": false
          },
          "maxChannelsPerTerm": {
            "title": "Max channels per term",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop paging a term once this many channels were found for it. Counted before filters.",
            "default": 50
          },
          "excludedChannelIds": {
            "title": "Exclude channels",
            "type": "array",
            "description": "Channel ids (`UC…`) or handles (`@name`) to leave out.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "subscribers",
              "views",
              "videoCount",
              "lastUpload"
            ],
            "type": "string",
            "description": "Order of rows in the dataset. `relevance` keeps YouTube's order in `keywords` mode and your list order in `channels` mode.",
            "default": "relevance"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Channels read in parallel. Each channel costs about 2 s of work plus its video pages.",
            "default": 3
          },
          "sameDomainDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Minimum gap between two requests to youtube.com.",
            "default": 0.5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Per-request timeout before a retry is attempted.",
            "default": 30
          },
          "runBudgetSecs": {
            "title": "Run budget (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "How long this run may take before it stops and returns what it has. Leave it empty (recommended) and the run uses the whole timeout you set for it. Stopping early is not a failure: the summary reports it."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not required to read YouTube. Worth enabling on large runs: one channel plus its videos costs several MB of traffic.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}