{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Sponsorship Leads Scraper",
    "description": "Extract explicit public sponsorship mentions, public contact emails, and public external links from YouTube channel and video pages.",
    "version": "2.0",
    "x-build-id": "0AImm01fx7gz533b5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~youtube-sponsorship-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-youtube-sponsorship-leads-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/googleapi~youtube-sponsorship-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-youtube-sponsorship-leads-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/googleapi~youtube-sponsorship-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-youtube-sponsorship-leads-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Public HTTPS YouTube channel, video, or supported page URLs.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Public YouTube URL",
                  "description": "Public HTTPS YouTube channel, video, or supported page URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": true
            }
          },
          "sourceUrls": {
            "title": "Source URLs",
            "type": "array",
            "description": "Compatibility alias for public YouTube references.",
            "items": {
              "type": "string"
            }
          },
          "channelUrls": {
            "title": "Channel URLs",
            "type": "array",
            "description": "Public channel URLs to inspect.",
            "items": {
              "type": "string"
            }
          },
          "channelUrl": {
            "title": "Channel URL",
            "type": "string",
            "description": "One public channel URL."
          },
          "channelHandles": {
            "title": "Channel handles",
            "type": "array",
            "description": "Handles such as @Google.",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Public YouTube URL",
            "type": "string",
            "description": "Public input option: url."
          },
          "urls": {
            "title": "Public YouTube URLs",
            "type": "array",
            "description": "Public input option: urls.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Public YouTube search phrases used for channel discovery.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Public input option: query."
          },
          "searchQuery": {
            "title": "Search query alias",
            "type": "string",
            "description": "Public input option: searchQuery."
          },
          "maxItems": {
            "title": "Maximum channels",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Global limit on discovered channel rows.",
            "default": 25
          },
          "maxSampleVideos": {
            "title": "Maximum sample videos",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum public video cards sampled per channel.",
            "default": 5
          },
          "maxEvidenceVideos": {
            "title": "Video descriptions to inspect",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of public video pages fetched per channel to inspect their descriptions for explicit sponsor and contact evidence.",
            "default": 0
          },
          "minSubscribers": {
            "title": "Minimum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep channels whose displayed subscriber count is at least this value."
          },
          "maxSubscribers": {
            "title": "Maximum subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep channels whose displayed subscriber count is no more than this value."
          },
          "minVideoCount": {
            "title": "Minimum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Keep channels whose displayed video count is at least this value."
          },
          "maxVideoCount": {
            "title": "Maximum videos",
            "minimum": 0,
            "type": "integer",
            "description": "Keep channels whose displayed video count is no more than this value."
          },
          "deduplicate": {
            "title": "Deduplicate channels",
            "type": "boolean",
            "description": "Remove repeated channel identities across inputs.",
            "default": true
          },
          "includeMedia": {
            "title": "Include public media",
            "type": "boolean",
            "description": "Public input option: includeMedia.",
            "default": true
          },
          "includeLinks": {
            "title": "Include public links",
            "type": "boolean",
            "description": "Public input option: includeLinks.",
            "default": true
          },
          "includeAboutText": {
            "title": "Include About text",
            "type": "boolean",
            "description": "Include a clean text alias of the public channel description; page chrome and recommendations are excluded.",
            "default": false
          },
          "includeSampleTitles": {
            "title": "Include sample titles",
            "type": "boolean",
            "description": "Public input option: includeSampleTitles.",
            "default": true
          },
          "includeSampleVideos": {
            "title": "Include sample video rows",
            "type": "boolean",
            "description": "Public input option: includeSampleVideos.",
            "default": true
          },
          "includeHashtags": {
            "title": "Include public hashtags",
            "type": "boolean",
            "description": "Public input option: includeHashtags.",
            "default": true
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Compatibility input retained for existing callers; collection limits are controlled by maxItems, maxSampleVideos, and maxEvidenceVideos.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Request delay (milliseconds)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Public input option: requestDelayMs.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Public input option: maxRequestRetries.",
            "default": 1
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Public input option: requestTimeoutSecs.",
            "default": 30
          },
          "requestTimeoutMs": {
            "title": "Request timeout (milliseconds)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Public input option: requestTimeoutMs."
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 50000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Public input option: maxResponseBytes.",
            "default": 2000000
          },
          "locale": {
            "title": "Request locale",
            "type": "string",
            "description": "Public input option: locale.",
            "default": "en-US"
          },
          "userAgent": {
            "title": "User agent",
            "type": "string",
            "description": "Optional ordinary browser user agent."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy routing for public YouTube requests. Use only groups enabled for your account; residential routing requires the corresponding entitlement.",
            "additionalProperties": true
          },
          "renderJavaScript": {
            "title": "Render JavaScript",
            "type": "boolean",
            "description": "Compatibility input; direct public HTML mode does not launch a browser.",
            "default": false
          },
          "useBrowser": {
            "title": "Use browser",
            "type": "boolean",
            "description": "Compatibility input; direct public HTML mode does not launch a browser.",
            "default": false
          },
          "sponsorTerms": {
            "title": "Additional sponsor terms",
            "type": "array",
            "description": "Additional case-insensitive terms to match in the channel description or inspected public video descriptions.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "minSponsorMentions": {
            "title": "Minimum sponsor mentions",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only channels with at least this many matched public sponsorship mentions.",
            "default": 0
          },
          "includeEmails": {
            "title": "Include public emails",
            "type": "boolean",
            "description": "Include explicitly visible public email addresses.",
            "default": true
          },
          "includeSponsorEvidence": {
            "title": "Include sponsor evidence",
            "type": "boolean",
            "description": "Include matched public terms, bounded context, and source URLs.",
            "default": true
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "One-based starting page or offset page for paginated sources.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}