{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Email & Sponsor Leads Scraper [$2.50/1K]",
    "description": "[$2.50/1K] Extract verified YouTube channel business & sponsorship emails, phone numbers, subscriber counts, latest video recency, sponsor domains & creator stacks (Skool, Kajabi, Beehiiv) via pure HTTP/2 — zero captchas.",
    "version": "1.3",
    "x-build-id": "2h5bLPvdQh9ddJ6QQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/appropriate_ideal_ksi~youtube-channel-email-leads-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-appropriate_ideal_ksi-youtube-channel-email-leads-pro",
        "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/appropriate_ideal_ksi~youtube-channel-email-leads-pro/runs": {
      "post": {
        "operationId": "runs-sync-appropriate_ideal_ksi-youtube-channel-email-leads-pro",
        "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/appropriate_ideal_ksi~youtube-channel-email-leads-pro/run-sync": {
      "post": {
        "operationId": "run-sync-appropriate_ideal_ksi-youtube-channel-email-leads-pro",
        "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": "Niche keywords to discover YouTube channels (e.g. 'AI automation agency', 'B2B SaaS marketing', 'specialty coffee', 'personal finance').",
            "default": [
              "AI automation agency"
            ],
            "items": {
              "type": "string"
            }
          },
          "channelTargets": {
            "title": "Direct Channel URLs, @Handles or UC IDs",
            "type": "array",
            "description": "Optional list of specific YouTube channels to enrich (e.g. '@nateherk', 'https://www.youtube.com/@LiamOttley', or 'UC2ojq-nuP8ceeHqiroeKhBA').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "niches": {
            "title": "Niches (Matrix Mode)",
            "type": "array",
            "description": "Optional niches combined with Audiences (e.g. ['AI tools', 'Cybersecurity', 'DevOps'] x ['founder', 'tutorial']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "audiences": {
            "title": "Audiences / Modifiers (Matrix Mode)",
            "type": "array",
            "description": "Optional audience/format terms paired with Niches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Search Region (Country Code)",
            "type": "string",
            "description": "Two-letter country code for YouTube search localization (e.g. US, GB, CA, AU, DE, IN).",
            "default": "US"
          },
          "language": {
            "title": "Language Code",
            "type": "string",
            "description": "Two-letter language code (e.g. en, de, es, fr).",
            "default": "en"
          },
          "maxLeadsPerQuery": {
            "title": "Max Channels per Query",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "Maximum qualified channel leads per search query (supports 1,000+ via Innertube continuation + 12-modifier expansion).",
            "default": 25
          },
          "maxTotalLeads": {
            "title": "Max Total Channels",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Global cap on qualified channel leads returned in this run.",
            "default": 100
          },
          "onlyWithEmail": {
            "title": "Only Channels With Verified Public Email (Pre-Charge Filter)",
            "type": "boolean",
            "description": "When enabled, channels without a public email (from About bio, latest video description, or external website/Link-in-Bio) are skipped BEFORE billing ($0 charge).",
            "default": false
          },
          "onlySponsorFriendly": {
            "title": "Only Sponsor-Friendly Channels (Pre-Charge Filter)",
            "type": "boolean",
            "description": "Keep only channels with active sponsor/affiliate links, dedicated sponsorship emails, or creator monetization stacks.",
            "default": false
          },
          "minSubscribers": {
            "title": "Minimum Subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Pre-charge filter: minimum subscriber count (e.g. 5000 for micro-influencers)."
          },
          "maxSubscribers": {
            "title": "Maximum Subscribers",
            "minimum": 1,
            "type": "integer",
            "description": "Pre-charge filter: maximum subscriber count (e.g. 250000 to avoid celebrity talent agencies)."
          },
          "minLatestVideoViews": {
            "title": "Minimum Latest Video Views",
            "minimum": 0,
            "type": "integer",
            "description": "Pre-charge filter: minimum views on the channel's most recent upload."
          },
          "activeWithinDays": {
            "title": "Uploaded Within Last N Days",
            "minimum": 1,
            "type": "integer",
            "description": "Pre-charge filter: skip dormant channels whose newest video is older than N days (e.g. 60)."
          },
          "countries": {
            "title": "Allowed Channel Countries",
            "type": "array",
            "description": "Optional list of channel countries to keep (e.g. ['United States', 'United Kingdom', 'Canada']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude Keywords",
            "type": "array",
            "description": "Skip channels whose name, bio, or latest video contains any of these terms (e.g. ['kids', 'minecraft', 'asmr']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "scanLatestVideos": {
            "title": "Latest Videos to Inspect per Channel",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Inspect 1-3 newest video descriptions for sponsorship inquiry emails, exact upload date, views, and sponsor brand domains.",
            "default": 1
          },
          "enrichExternalWebsites": {
            "title": "Enrich External Website & Link-in-Bio",
            "type": "boolean",
            "description": "Follow the creator's owned website and Linktree/Beacons/Stan Store over HTTP/2 to decode Cloudflare emails, phones, socials, and creator stack.",
            "default": true
          },
          "expandSearchModifiers": {
            "title": "Auto-Expand Niche Search Modifiers (1,000+ Scale)",
            "type": "boolean",
            "description": "Automatically fans out queries across 12 creator modifiers when Max Channels per Query > 40.",
            "default": true
          },
          "onlyNewChannels": {
            "title": "Only New Channels (Stateful Deduplication)",
            "type": "boolean",
            "description": "Persist seen channel IDs in an Apify Key-Value Store so scheduled runs only emit newly discovered creators.",
            "default": false
          },
          "monitorStoreName": {
            "title": "State Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used when Only New Channels is enabled.",
            "default": "youtube-channels-seen-ids"
          },
          "concurrency": {
            "title": "HTTP/2 Worker Concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Parallel HTTP/2 channel enrichment workers (runs comfortably in 256 MB RAM at 4).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}