{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel & Video Scraper (Emails & Leads)",
    "description": "Blazing-fast YouTube scraper for creator emails, social links & video metrics. Target by keyword, channel, or video URL. Get 100% verified emails (AI-cleaned), social profiles, subscriber stats & video analytics. Instant zero-cost pre-filtering: free compute, pay only for qualified leads!",
    "version": "1.0",
    "x-build-id": "LYgQi7d6joT2baoFT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codescraper~youtube-channel-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codescraper-youtube-channel-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/codescraper~youtube-channel-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codescraper-youtube-channel-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/codescraper~youtube-channel-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codescraper-youtube-channel-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": {
          "channelUrls": {
            "title": "Channel URLs (Unlimited - Lowest Base Rate)",
            "type": "array",
            "description": "Enter any number of YouTube channel URLs. Unlimited capacity — enter 10, 500, or 10,000+ URLs! Direct URLs enjoy the lowest base rate ($5/1k). Supports /channel/..., /@handle, /c/..., etc.",
            "items": {
              "type": "string"
            }
          },
          "searchKeyword": {
            "title": "Search Keyword (Optional)",
            "type": "string",
            "description": "Discover channels matching any niche, topic, or industry keyword (e.g., 'Finance', 'Tech Reviews', 'Fitness'). Channels discovered via search are charged at the keyword rate ($10/1k)."
          },
          "maxSearchResults": {
            "title": "Max Keyword Search Results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum channels to discover via keyword search (min 1, default 20, max 100 to protect API quota). For unlimited scraping without limits, enter URLs into 'Channel URLs' above.",
            "default": 20
          },
          "videoUrls": {
            "title": "Video URLs (Video + Channel Scraper)",
            "type": "array",
            "description": "Enter YouTube video URLs (e.g., https://www.youtube.com/watch?v=... or https://youtu.be/...). The actor extracts all video data and the creator's channel contact info. Billed at standard URL enter rate ($5/1k).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hasEmailOnly": {
            "title": "Only Channels With Verified Emails",
            "type": "boolean",
            "description": "When enabled, guarantees every exported channel has at least one verified contact email. Channels without email are skipped for FREE. Delivered leads billed at the verified contact lead rate ($25/1k).",
            "default": false
          },
          "hasSocialLinks": {
            "title": "Only Channels With Social Links",
            "type": "boolean",
            "description": "When enabled, guarantees every exported channel has external social media links (Instagram, X, Discord, LinkedIn, TikTok, etc.). Billed at verified contact lead rate.",
            "default": false
          },
          "minSubscribers": {
            "title": "Minimum Subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with fewer subscribers (e.g., 10000). Disqualified channels are eliminated instantly before browser scraping for $0.00."
          },
          "maxSubscribers": {
            "title": "Maximum Subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip channels with more subscribers (e.g., 250000). Perfect for micro-influencer outreach. Disqualified channels cost $0.00."
          },
          "minVideos": {
            "title": "Minimum Video Count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip inactive or new channels with fewer uploaded videos than this threshold (e.g., 10)."
          },
          "minViews": {
            "title": "Minimum Lifetime Views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip low-traction channels with fewer lifetime views than this number."
          },
          "countryFilter": {
            "title": "Target Countries",
            "type": "array",
            "description": "Filter channels by country name or 2-letter ISO code (e.g., 'United States', 'US', 'United Kingdom', 'GB', 'Germany'). Non-matching channels are skipped instantly for $0.00.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "deepEnrich": {
            "title": "Deep Website Email Crawl",
            "type": "boolean",
            "description": "If enabled, visits external websites linked in the channel's About section to uncover hidden emails on /contact, /about, and /impressum pages. Verified by Groq AI.",
            "default": false
          },
          "concurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of browser workers running simultaneously (default 10).",
            "default": 10
          },
          "userAgent": {
            "title": "Custom User Agent",
            "type": "string",
            "description": "Custom User-Agent header for browser requests.",
            "default": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}