{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Contacts & Social Links Scraper",
    "description": "Find YouTube creators fast: get channel stats plus public contact signals—websites and social links (X, Instagram, LinkedIn, TikTok, etc.). Perfect for influencer outreach, lead lists, partnerships, and market research.",
    "version": "1.0",
    "x-build-id": "muoG4YXJaex4TtuxP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~youtube-channel-contacts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-youtube-channel-contacts-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/coregent~youtube-channel-contacts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-coregent-youtube-channel-contacts-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/coregent~youtube-channel-contacts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-youtube-channel-contacts-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": "Keywords or topics to discover YouTube channels via YouTube's search. Each keyword returns the channels YouTube ranks as most relevant for that term — this is a keyword search, not an exact lookup. To scrape a specific channel directly, use the Direct URLs section with its channel URL instead.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResultsPerQuery": {
            "title": "Max channels per search term",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of channels to discover per search keyword. Each search will return up to this many unique channels.",
            "default": 10
          },
          "startUrls": {
            "title": "Channels",
            "type": "array",
            "description": "Scrape specific channels — one entry per line. Accepts a channel handle (@name), a channel ID (UC…), a channel URL, or a video URL (the video's channel is scraped). Each entry is an exact lookup, unlike Search Keywords which returns relevance-ranked matches. Playlist and search URLs are also accepted.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxTotalChannels": {
            "title": "Max Total Channels",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the total number of channels returned across the whole run (all searches and URLs combined). Leave empty for no cap. Useful for controlling cost."
          },
          "regionCode": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "IN",
              "DE",
              "FR",
              "JP",
              "BR",
              "MX"
            ],
            "type": "string",
            "description": "Country for localization (ISO 3166-1 alpha-2).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "de",
              "fr",
              "pt",
              "ja",
              "hi",
              "zh"
            ],
            "type": "string",
            "description": "Preferred language (IETF BCP-47).",
            "default": "en"
          },
          "minSubscribers": {
            "title": "Minimum Subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep channels with at least this many subscribers. Leave empty for no minimum."
          },
          "maxSubscribers": {
            "title": "Maximum Subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep channels with at most this many subscribers. Leave empty for no maximum."
          },
          "dateFrom": {
            "title": "From Date (Joined After)",
            "type": "string",
            "description": "Filter channels that joined YouTube after this date (optional). Leave empty to include all channels regardless of join date.",
            "default": ""
          },
          "dateTo": {
            "title": "To Date (Joined Before)",
            "type": "string",
            "description": "Filter channels that joined YouTube before this date (optional). Leave empty to include all channels regardless of join date.",
            "default": ""
          },
          "extractContacts": {
            "title": "Extract Contacts",
            "type": "boolean",
            "description": "ON: extract emails + social links from the About page AND scan the channel's linked website(s) for more emails. OFF: metadata only — fastest and cheapest, no contact extraction.",
            "default": true
          },
          "validateEmails": {
            "title": "Validate Emails (MX check)",
            "type": "boolean",
            "description": "Verify each extracted email's domain has mail servers (MX records) and flag disposable/role addresses. Adds an EmailValidationStatus field. 💲 Extra charge: when ON, bills one `email-validated` event per email validated — the only option in this section with an additional charge. Applies whenever contacts are extracted.",
            "default": false
          },
          "onlyWithContact": {
            "title": "Only Channels With Contact",
            "type": "boolean",
            "description": "ON: keep only channels that have a public email OR a social/website link (a way to reach them). OFF: keep all discovered channels. Filtered-out channels are not saved or charged.",
            "default": false
          },
          "minQualificationScore": {
            "title": "Qualification Threshold (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "A channel is flagged IsQualified = true when its ContactabilityScore is at least this value. The score (0–100) bundles email presence + confidence, MX validation, contact-route richness, and credibility. Every channel also gets a QualificationTier (Hot ≥80, Warm ≥60, Cold ≥40, Unqualified <40). This only annotates results — it does not drop channels.",
            "default": 60
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. If set, each delivered channel is POSTed (as JSON) to this URL in real time — one request per channel — ideal for Zapier, Make, n8n, or a CRM endpoint. Must be http/https. Delivery is best-effort: failed POSTs are logged and never stop the run."
          },
          "webhookAuthHeader": {
            "title": "Webhook Authorization Header",
            "type": "string",
            "description": "Optional. Value sent as the `Authorization` header on each webhook POST (e.g. `Bearer <token>`) to secure your endpoint. Only used when a Webhook URL is set."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}