{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Sponsorship Scraper: Sponsors, Promo Codes",
    "description": "YouTube sponsorship scraper, no login: for any video, channel, playlist, search or brand, every sponsor named in the description with its links, plus the promo codes, offers and sponsor chapters. Add YouTube's paid promotion label and spoken sponsor reads from captions. Pay per video, CSV or API.",
    "version": "0.1",
    "x-build-id": "BJaq9saLdpumdctX7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~youtube-sponsorship-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-youtube-sponsorship-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/automation_craft~youtube-sponsorship-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-youtube-sponsorship-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/automation_craft~youtube-sponsorship-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-youtube-sponsorship-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": "YouTube links, ids or @handles",
            "type": "array",
            "description": "Video links (watch, youtu.be, Shorts, live), channel links or @handles (@mkbhd, /channel/UC..., /c/, /user/), playlist links and YouTube search result links. Bare video ids (11 characters), channel ids (UC...) and playlist ids (PL...) work too. A channel link that names a tab (/videos, /shorts, /streams) reads that tab. Up to 1,000 entries across all three lists.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "Words to search on YouTube, as you would type them (for example \"vpn review\" or \"best budget laptop\"). Each search reads YouTube's video results in YouTube's order and gives up to \"Videos per source\" videos.",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brand names (which creators a brand sponsors)",
            "type": "array",
            "description": "Brand names to search on YouTube (for example \"NordVPN\" or \"Squarespace\"). A row is kept only when the brand is named in the video's title, channel name or description, or is one of its detected sponsors; each row says where (brandMatch). Most rows name the brand as a topic, not as a sponsor (about 1 in 8 of YouTube's results for a brand is a sponsored video), so adding the brand to \"Only these sponsors\" keeps few rows and such a run can stop early on its unpaid work allowance.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSource": {
            "title": "Videos per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most videos delivered from each channel, playlist, search or brand (videos an earlier source of the run already delivered count toward it). 1 to 10,000.",
            "default": 20
          },
          "maxItems": {
            "title": "Videos in all (run cap)",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "The most Video rows this run delivers across every source. Left empty: 20,000, the most one run delivers."
          },
          "channelContent": {
            "title": "Channel tabs to read",
            "type": "array",
            "description": "Which tabs of a channel are read, newest first: Videos, Shorts, Live (past streams). Used for @handles, channel ids and channel links that do not name a tab; when you change it, it also replaces the tab a channel link names.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "shorts",
                "streams"
              ],
              "enumTitles": [
                "Videos tab",
                "Shorts tab",
                "Live tab (past streams)"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only videos published on or after this day: a date such as 2026-10-01, or a number of days back from the run's start such as \"30 days\". A channel walk stops at the first videos older than it."
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "relevance",
              "popularity"
            ],
            "type": "string",
            "description": "The order YouTube gives search results in: Relevance (YouTube default) or Popularity. When set to Popularity, it also replaces the order a pasted search link carries; left at Relevance, a pasted link keeps its own.",
            "default": "relevance"
          },
          "searchUploadDate": {
            "title": "Upload date",
            "enum": [
              "any",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "YouTube's own upload date filter for searches (today, this week, this month, this year). Every row is checked against it again; a row whose publish day cannot be read is left out free. When set to anything but Any time, it also replaces the filter a pasted search link carries; left at Any time, a pasted link keeps its own.",
            "default": "any"
          },
          "searchDuration": {
            "title": "Video length",
            "enum": [
              "any",
              "under3",
              "3to20",
              "over20"
            ],
            "type": "string",
            "description": "YouTube's own length filter for searches. Every row is checked against it again; a row whose length cannot be read is left out free. When set to anything but Any length, it also replaces the filter a pasted search link carries; left at Any length, a pasted link keeps its own.",
            "default": "any"
          },
          "searchRegion": {
            "title": "Search country",
            "enum": [
              "DZ",
              "AR",
              "AM",
              "AU",
              "AT",
              "AZ",
              "BH",
              "BD",
              "BY",
              "BE",
              "BO",
              "BA",
              "BR",
              "BG",
              "KH",
              "CA",
              "CL",
              "CO",
              "CR",
              "HR",
              "CY",
              "CZ",
              "DK",
              "DO",
              "EC",
              "EG",
              "SV",
              "EE",
              "FI",
              "FR",
              "GE",
              "DE",
              "GH",
              "GR",
              "GT",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IQ",
              "IE",
              "IL",
              "IT",
              "JM",
              "JP",
              "JO",
              "KZ",
              "KE",
              "KW",
              "LA",
              "LV",
              "LB",
              "LY",
              "LI",
              "LT",
              "LU",
              "MY",
              "MT",
              "MX",
              "MD",
              "ME",
              "MA",
              "NP",
              "NL",
              "NZ",
              "NI",
              "NG",
              "MK",
              "NO",
              "OM",
              "PK",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PL",
              "PT",
              "PR",
              "QA",
              "RO",
              "RU",
              "SA",
              "SN",
              "RS",
              "SG",
              "SK",
              "SI",
              "ZA",
              "KR",
              "ES",
              "LK",
              "SE",
              "CH",
              "TW",
              "TZ",
              "TH",
              "TN",
              "TR",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UY",
              "VE",
              "VN",
              "YE",
              "ZW"
            ],
            "type": "string",
            "description": "The country YouTube ranks search results for (its gl setting; YouTube's own list of 111 countries). Pages are read in English. When set to anything but United States, it also replaces the country a pasted search link carries.",
            "default": "US"
          },
          "minSponsorshipLevel": {
            "title": "Minimum sponsorship level",
            "enum": [
              "none",
              "possible",
              "strong",
              "confirmed"
            ],
            "type": "string",
            "description": "Keep only videos at this level or above. Possible: a promo code, a tracked or affiliate link. Strong: sponsor wording, a sponsored disclosure or a sponsor chapter. Confirmed: YouTube's paid promotion label (needs \"Check the paid promotion label\"). Videos left out are free.",
            "default": "none"
          },
          "sponsorNames": {
            "title": "Only these sponsors",
            "type": "array",
            "description": "Keep only videos with a detected sponsor whose name or domain holds one of these names as a whole word (for example \"NordVPN\", \"squarespace.com\"). Up to 50 names.",
            "items": {
              "type": "string"
            }
          },
          "onlyTrackedLinks": {
            "title": "Only videos with a tracked link",
            "type": "boolean",
            "description": "Keep only videos whose description carries a tracked brand link (a campaign or coupon parameter, or a creator vanity path such as nordvpn.com/mkbhd).",
            "default": false
          },
          "skipAffiliateOnly": {
            "title": "Leave out affiliate only videos",
            "type": "boolean",
            "description": "Leave out videos whose only signals are affiliate links or an affiliate disclosure (typical product reviews with store links), keeping sponsored videos.",
            "default": false
          },
          "readAloudOnly": {
            "title": "Only videos with a spoken sponsor read",
            "type": "boolean",
            "description": "Keep only videos whose captions hold a passage that sounds like a sponsor read (\"sponsored by\", \"thanks to ... for sponsoring\", \"a word from our sponsor\"). Needs \"Read the captions\".",
            "default": false
          },
          "checkPaidPromotion": {
            "title": "Check the paid promotion label (add-on)",
            "type": "boolean",
            "description": "Reads YouTube's own \"Includes paid promotion\" label of each video (paidPromotion true or false) and charges one Paid promotion check per video where it was read. The label is the creator's own tick box, so false does not prove a video is unsponsored.",
            "default": false
          },
          "readCaptions": {
            "title": "Read the captions (add-on)",
            "type": "boolean",
            "description": "Reads one caption track of each video and lists the passages that sound like a sponsor read, as heard (what was said and the second it starts). A passage is never matched to a sponsor and never changes the level, the sponsors or the codes: a name heard in automatic captions cannot be told apart from a longer one. Charges one Caption check per video whose caption track was read, whether or not a read was found; a video without captions is free.",
            "default": false
          },
          "captionLanguages": {
            "title": "Caption languages",
            "type": "array",
            "description": "Caption languages in order of preference (codes such as en, de, pt-BR). The video's own track in that language is read; with none of them, its automatic track, else its first track. Translated captions are not read.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeTranscript": {
            "title": "Include the full transcript",
            "type": "boolean",
            "description": "Adds the whole caption text of the track read to each row (up to 200,000 characters). Needs \"Read the captions\"; costs nothing extra.",
            "default": false
          },
          "resolveShortLinks": {
            "title": "Resolve short links",
            "type": "boolean",
            "description": "Reads the first hop of up to 3 short links per description (bit.ly, amzn.to, geni.us and similar) and adds where each points (resolvedUrl). Free; it makes a run slower.",
            "default": false
          },
          "brandTerms": {
            "title": "Your brand terms",
            "type": "array",
            "description": "Words to find in each video's title, description and caption text (whole words, any case). Each row lists which were found and where (brandTermsFound). Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "competitorTerms": {
            "title": "Competitor terms",
            "type": "array",
            "description": "Like \"Your brand terms\", listed apart on each row (competitorTermsFound). Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "safetyCategories": {
            "title": "Brand safety categories",
            "type": "array",
            "description": "Flags videos whose title, description or caption text holds a word of a fixed list of the chosen categories (safetyFlags: category, word, where). A flag is a reason to look, not a verdict.",
            "items": {
              "type": "string",
              "enum": [
                "adult",
                "violence",
                "drugs",
                "gambling",
                "profanity",
                "harassment"
              ],
              "enumTitles": [
                "Adult",
                "Violence",
                "Drugs",
                "Gambling",
                "Profanity",
                "Harassment"
              ]
            },
            "default": []
          },
          "safetyTerms": {
            "title": "Custom review terms",
            "type": "array",
            "description": "Your own words to flag the same way (category \"custom\"). Up to 50.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}