# YouTube Sponsorship Scraper: Sponsors, Promo Codes (`automation_craft/youtube-sponsorship-scraper`) Actor

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.

- **URL**: https://apify.com/automation_craft/youtube-sponsorship-scraper.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.84 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### YouTube Sponsorship Scraper: Sponsors, Promo Codes

**YouTube sponsorship scraper** without a login: give it YouTube videos, channels, playlists, search words or brand names, and get
one row per video with every sponsor named in its description, the sponsor and affiliate links, promo codes, offers and sponsor
chapters. Add YouTube's own **paid promotion label** and the **spoken sponsor reads** from the captions when you need them. You
pay per video row; videos your filters leave out, repeats and unavailable videos are free.

Who uses it:

- **Brand and agency marketers** mapping which creators a competitor sponsors, and with which codes and landing links.
- **Influencer agencies** checking a creator's past brand deals before a campaign.
- **Affiliate managers** collecting promo codes, affiliate networks and tracked links across a niche.
- **Sponsorship sellers and creators** finding the brands that buy YouTube sponsorships in their niche.

### Quick start

1. Put a channel (`@mkbhd`), a video link, a playlist link or a YouTube search link into **YouTube links, ids or @handles**, or
   type **Search words** or **Brand names**.
2. Set **Videos per source** (5 to try it).
3. Optional: set a filter (for example **Minimum sponsorship level**: Strong or confirmed) or switch on an add-on.
4. Run it and open the **Sponsorships** table, or export JSON, CSV or Excel, or read it through the API.

### What you get

One `video` row per video (the charged row), read from the video's own public watch page. Each row also carries the full
description, every description link with its class, and the evidence that fired.

| Field | What it is | Filled on 406 videos |
|---|---|---|
| `title, channelName, channelId, url` | the video and its channel | 100 percent |
| `publishedDate` | the day it was published (YYYY-MM-DD) | 100 percent |
| `views` | exact view count (hidden on live streams and some members only videos) | 73 percent |
| `likes` | like count | 100 percent |
| `channelSubscribers` | subscribers, as YouTube rounds them | 98 percent |
| `durationSeconds` | length in seconds (list tile or player) | 99 percent |
| `description` | the full description, as served | 100 percent |
| `descriptionLinks` | every description link with its class (commercial, affiliate, shortener, social...), domain and parameters | 98 percent |
| `chapters` | chapters with start and end | 70 percent |
| `sponsors` | at least one sponsor, with its links | 56 percent |
| `promoCodes` | at least one promo code | 20 percent |
| `offers` | at least one offer (percent off, free trial...) | 23 percent |
| `trackedLinks` | at least one tracked brand link | 56 percent |
| `affiliateLinks, affiliateNetworks` | at least one affiliate link (with its network when known) | 25 percent |
| `disclosures` | a sponsored or affiliate disclosure | 50 percent |
| `sponsorChapters` | a chapter marking a sponsor segment | 8 percent |
| `tags` | the video's tags (from a player answer: an add-on read, or a watch page whose player YouTube served) | 23 percent |
| `category` | the video's category (only from a watch page whose player YouTube served) | 12 percent |

Measured on 406 distinct videos of the real Actor's own test runs (2026-11-08: one technology channel's last 300 videos, two
science and interview channels with both add-ons, 30 searches, Shorts, playlists and brand searches). Exact views are missing
mostly on members only videos, where YouTube hides the count. Levels on the same videos: confirmed 24, strong
90, possible 158, none 134.

Add-ons on the same runs: the **paid promotion label** was read on 59 of 59 videos it was asked for (true on 31), and the
**caption check** read a caption track on 57 of 57 (a passage that sounds like a sponsor read heard on 21).

A video with no sponsor signal is still a row (level `none`), so you can see it was read; set **Minimum sponsorship level** to
leave such videos out for free.

#### How sponsorship is detected

Fixed rules, no AI model, the same input gives the same answer. Every rule says what fired and the text it matched, as served:

1. **Sponsor wording** in the description: "sponsored by X", "thanks to X for sponsoring", "today's sponsor X", "in partnership
   with X", "brought to you by X", "Sponsor: X". Lines that ask for sponsors ("for sponsorship inquiries") never count, and a line
   saying the video is not sponsored is reported as such.
2. **Disclosures**: #ad, #sponsored, "paid promotion", "paid partnership"; affiliate disclosures ("affiliate links", "earn a
   commission", "Amazon Associate").
3. **Promo codes** ("code X", "promo code X") and **offers** ("20% off", "free trial", "first month free").
4. **Sponsor chapters**: a chapter whose title marks a sponsor segment, with its start, end and length.
5. **Links**: affiliate links (affiliate networks and Amazon links with a tag, with the network named), and **tracked links**: a
   brand link with a campaign or coupon parameter, or a path coded for the creator (nordvpn.com/mkbhd, notion.com/lex).
6. With the add-ons: YouTube's **paid promotion label**, and **spoken sponsor reads** in the captions: the passages that sound
   like a sponsor read, as heard (what was said and the second it starts). They are listed only: a spoken read never names a
   sponsor, never adds a code and never changes the level, because automatic captions carry no punctuation and a name heard in
   them cannot be told apart from a longer one ("made in cookware", "head and shoulders").

A **sponsor** is a brand named by rule 1 joined with its links, or the domain of a link coded for the creator
(a domain the description links with three or more paths is the creator's own link service, never a sponsor). A link joins a
sponsor only when its domain is the brand's own name (squarespace.com for Squarespace). Promo codes, offers and sponsor
chapters belong to the video: they are listed on the row (`promoCodes`, `offers`, `sponsorChapters`), never tied to one
sponsor, because a description pairs codes with brands in free prose no fixed rule reads without mistakes; each sponsor's
`evidence` keeps the line that named it. A chapter names a sponsor only when the description names none. The **level** of a video: `confirmed` when YouTube's label is on; `strong` on sponsor wording, a
sponsored disclosure or a sponsor chapter; `possible` on a promo code, a tracked or affiliate link or an
affiliate disclosure; `none` otherwise.

#### Where the videos come from

| Input | What is read | Order |
|---|---|---|
| Video, Short or live link, or an 11 character id | that video | as given |
| Channel (@handle, channel link, UC id, /c/, /user/) | its Videos tab by default; Shorts and Live (past streams) tabs with **Channel tabs to read** | newest first |
| Playlist link or id | every video of the playlist | the playlist's order |
| Search words, or a YouTube search link | YouTube's video results, with its upload date and length filters | Relevance or Popularity |
| Brand names | a YouTube search for the brand; a video is kept when the brand is named in its title, channel name or description, or is one of its detected sponsors; `brandMatch` says where | YouTube's order |

Brand search finds videos ABOUT a brand far more often than videos sponsored BY it: in our measurement about 12 percent of plain
brand search results named the brand in the description alone, the form a sponsored video takes. Adding the brand to **Only these
sponsors** keeps the sponsored ones, but then most videos read are left out, so such a run stops early on its unpaid work
allowance with few rows (measured: 0 to 1 sponsored video after 22 to 26 reads). To map a brand's sponsorships, run the brand
search without that filter and keep the rows whose `sponsorBrands` hold the brand, or read the channels of your niche with
**Only these sponsors**.

### How much does it cost to scrape YouTube sponsorships?

Pay per event: you pay for what is delivered, never for platform usage on top.

| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
| Video (one row per video) | USD 1.18 / 1,000 | USD 1.08 / 1,000 | USD 0.97 / 1,000 | USD 0.84 / 1,000 |
| Paid promotion check (add-on) | USD 3.50 / 1,000 | USD 3.20 / 1,000 | USD 2.90 / 1,000 | USD 2.50 / 1,000 |
| Caption check (add-on) | USD 5.60 / 1,000 | USD 5.10 / 1,000 | USD 4.65 / 1,000 | USD 4.00 / 1,000 |
| Actor start (one per run at the default 256 MB; Apify charges one per GB of memory) | USD 0.01 | USD 0.01 | USD 0.01 | USD 0.01 |

Platinum and Diamond plans pay the Gold price. The Store pricing card shows these same prices per 1,000 events: "$5.60 / 1,000" on
the Caption check row means one caption check costs 0.56 cents.

- A **Video** event is charged once per video row delivered in a run, whatever its sponsorship level.
- A **Paid promotion check** is charged only for a delivered video whose label was read (true or false); a **Caption check**
  only for a delivered video whose caption track was read, whether or not a spoken sponsor read was found.
- Free: videos your filters leave out, a video found twice in one run, unavailable videos, videos without captions, refused
  reads, and every status, coverage and summary row.
- Example: 1,000 videos of a channel on the Bronze plan cost USD 1.08 plus the USD 0.01 start fee; with both add-ons on every
  video, USD 1.08 + 3.20 + 5.10 = USD 9.38 plus the start fee.
- Set a charge limit on the run (Max total charge) and the run stops cleanly at it.

### Input

```json
{
    "startUrls": ["https://www.youtube.com/@mkbhd", "https://www.youtube.com/watch?v=1w3XaMSIeR8"],
    "searchQueries": ["vpn review"],
    "brands": ["NordVPN"],
    "maxVideosPerSource": 20,
    "minSponsorshipLevel": "possible",
    "sponsorNames": ["NordVPN"],
    "checkPaidPromotion": true,
    "readCaptions": false
}
```

- **What to read**: `startUrls`, `searchQueries`, `brands` (up to 1,000 entries together). An entry this Actor cannot use (not
  a YouTube link, a channel page that lists no videos, a link with a parameter it does not read) is not read and is listed in a
  free status row with its position; the other entries are read.
- **Caps**: `maxVideosPerSource` (default 20, up to 10,000 per channel, playlist, search or brand) and `maxItems` (up to
  20,000 rows a run).
- **Channel tabs**: `channelContent` (Videos, Shorts, Live). A channel link that names a tab reads that tab unless you change
  this setting.
- **Dates**: `publishedAfter` takes a day (2026-10-01) or "30 days".
- **Search**: `searchSort` (Relevance or Popularity), `searchUploadDate`, `searchDuration`, `searchRegion` (YouTube's own list of
  111 countries). Left at their defaults, a pasted search link keeps its own filters and country.
- **Filters** (left out videos are free): `minSponsorshipLevel`, `sponsorNames`, `onlyTrackedLinks`, `skipAffiliateOnly`,
  `readAloudOnly` (a passage of the captions that sounds like a sponsor read). A video whose filter needs a fact that could not be read (its day, its length, the label or the captions) is
  not delivered and is listed as not judged, free.
- **Add-ons**: `checkPaidPromotion`, `readCaptions` with `captionLanguages` and `includeTranscript`. An add-on can be left off a
  row when the run's add-on allowance is spent or the charge limit cannot pay it; the row says so in `paidPromotionStatus` or
  `captionStatus` and that add-on is not charged.
- **Extras**: `resolveShortLinks` (the first hop of up to 3 short links per video, free, slower), `brandTerms` and
  `competitorTerms` (listed per row with where they appear), `safetyCategories` and `safetyTerms` (brand safety flags).

### FAQ

#### How do I find out who sponsors a YouTube creator?

Give the creator's channel (an @handle or a channel link) and the number of videos to read. Each video comes back as a row with
its sponsors and their links, with the promo codes and sponsor chapters, read from the description; add the caption check to catch sponsors
that are only read aloud.

#### How do I know which YouTube creators a brand sponsors?

Put the brand name in **Brand names**: you get the videos YouTube finds for the brand, each with `brandMatch` and its detected
sponsors; keep the rows whose `sponsorBrands` hold the brand. Most of YouTube's results for a brand are about it rather than
sponsored by it, so for a full picture also read the channels of your niche with the brand in **Only these sponsors**.

#### Does a video without the paid promotion label mean it is not sponsored?

No. The label is the creator's own tick box in YouTube Studio, so many sponsored videos carry none. The Actor reads it as an
add-on (true or false) next to the sponsor evidence it finds in the description and, with the caption check, in what is said.

#### How much does it cost to scrape YouTube sponsorships?

Each video row is one Video event, USD 0.84 to 1.18 per 1,000 depending on your Apify plan, plus a start fee per run. The paid
promotion label and the caption check are add-ons charged only per video where they were read; filtered, repeated and
unavailable videos are free.

#### Why does this Actor run with limited permissions?

It needs nothing beyond its own run storage: it writes rows to the run's dataset and one start record to the run's key-value
store, and opens no other storage of your account.

### What this Actor does not do

- It does not read SponsorBlock's community database (sponsor segment timestamps submitted by viewers, their votes and
  submitters). It reports sponsor chapters from the video itself and spoken sponsor reads from the captions instead.
- It does not watch channels for you between runs: no memory of earlier runs, no "new videos only" mode, no alerts or webhooks.
  Schedule it in Apify and filter by `publishedAfter` to read recent videos.
- It does not sort a search by upload date: YouTube's search no longer offers that order. Use the upload date filter.
- It does not translate captions: it reads a track the video has, in your preferred languages when there is one.
- It does not name a sponsor from the captions: spoken reads are listed as heard, with their second, and the sponsors come from
  the description.
- It cannot tell from a link alone whether a page coded for the creator (a path with its handle, name or initials) is a
  sponsor's campaign page or the creator's own page elsewhere: such a link is listed as a sponsor of its domain when no phrase
  names one. On the 406 measured videos about 8 had such a sponsor that is not one (the creator's own store, a tip jar, a
  publisher's book page, a news article); each carries the source `creator_code_link` and its link, so you can see what it is.
- It does not use a login, cookies or a YouTube API key, and reads only what YouTube shows to visitors who are not signed in
  (members only and age restricted videos show less; private videos nothing).
- A video's length, tags and category come from YouTube's player, which YouTube shows to some visitors only: they are on a row
  when the list showed the length, YouTube served the player, or an add-on read it.
- It stops after a run spends its allowance of unpaid work (lists and videos read that deliver no billed row); the status
  message, the coverage row and the summary row say so. Measured on the real Actor: a filter that left out 25 of the first 29
  videos of a channel stopped there with 4 of the 5 videos asked; a list of 100 unknown video ids stopped after 44 misses in a
  row (the other 56 are listed as not read, free). Put live links first and use filters that most videos of the source pass.
- If the Apify platform restarts a run (a migration or a crash), the restarted run reads nothing more: rows delivered before stay
  delivered and charged, and a status row says the rest was not read. Run it again for the rest.

You are responsible for using the data lawfully, including personal data under the GDPR and similar laws.

### Use it through the API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~youtube-sponsorship-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://www.youtube.com/@mkbhd"], "maxVideosPerSource": 10}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation_craft/youtube-sponsorship-scraper').call({ brands: ['NordVPN'], sponsorNames: ['NordVPN'], maxVideosPerSource: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((r) => r.type === 'video').map((r) => [r.channelName, r.title, r.promoCodes]));
```

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("automation_craft/youtube-sponsorship-scraper").call(run_input={"searchQueries": ["vpn review"], "minSponsorshipLevel": "strong"})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row["type"] == "video":
        print(row["channelName"], row["sponsorBrands"], row["promoCodes"])
```

Rows of `type` `status`, `coverage` and `summary` are free: a coverage row per channel, playlist or search says how far its list
was read and why it stopped; the summary row closes every run.

### Changelog

See the Changelog tab.

### More data tools by Automation Craft

- [Meta Branded Content Scraper: Paid Partnerships](https://apify.com/automation_craft/meta-branded-content-scraper)
- [Instagram Paid Partnership Scraper: Brand Collabs](https://apify.com/automation_craft/instagram-paid-partnership-scraper)
- [YouTube Ads Scraper - Video Ads by Advertiser](https://apify.com/automation_craft/youtube-ads-scraper)
- [Google Ads Transparency Center API & Scraper](https://apify.com/automation_craft/google-ads-transparency-scraper)
- [Threads Scraper: Posts, Search, Tags, Replies](https://apify.com/automation_craft/threads-scraper)
- [Instagram Profile Scraper: Followers, Bio, Posts](https://apify.com/automation_craft/instagram-profile-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/youtube-sponsorship-scraper/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

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.

## `searchQueries` (type: `array`):

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.

## `brands` (type: `array`):

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.

## `maxVideosPerSource` (type: `integer`):

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.

## `maxItems` (type: `integer`):

The most Video rows this run delivers across every source. Left empty: 20,000, the most one run delivers.

## `channelContent` (type: `array`):

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.

## `publishedAfter` (type: `string`):

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` (type: `string`):

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.

## `searchUploadDate` (type: `string`):

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.

## `searchDuration` (type: `string`):

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.

## `searchRegion` (type: `string`):

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.

## `minSponsorshipLevel` (type: `string`):

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.

## `sponsorNames` (type: `array`):

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.

## `onlyTrackedLinks` (type: `boolean`):

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).

## `skipAffiliateOnly` (type: `boolean`):

Leave out videos whose only signals are affiliate links or an affiliate disclosure (typical product reviews with store links), keeping sponsored videos.

## `readAloudOnly` (type: `boolean`):

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".

## `checkPaidPromotion` (type: `boolean`):

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.

## `readCaptions` (type: `boolean`):

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.

## `captionLanguages` (type: `array`):

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.

## `includeTranscript` (type: `boolean`):

Adds the whole caption text of the track read to each row (up to 200,000 characters). Needs "Read the captions"; costs nothing extra.

## `resolveShortLinks` (type: `boolean`):

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.

## `brandTerms` (type: `array`):

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.

## `competitorTerms` (type: `array`):

Like "Your brand terms", listed apart on each row (competitorTermsFound). Up to 50.

## `safetyCategories` (type: `array`):

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.

## `safetyTerms` (type: `array`):

Your own words to flag the same way (category "custom"). Up to 50.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/@mkbhd"
  ],
  "maxVideosPerSource": 5,
  "channelContent": [
    "videos"
  ],
  "searchSort": "relevance",
  "searchUploadDate": "any",
  "searchDuration": "any",
  "searchRegion": "US",
  "minSponsorshipLevel": "none",
  "onlyTrackedLinks": false,
  "skipAffiliateOnly": false,
  "readAloudOnly": false,
  "checkPaidPromotion": false,
  "readCaptions": false,
  "captionLanguages": [
    "en"
  ],
  "includeTranscript": false,
  "resolveShortLinks": false,
  "safetyCategories": []
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.youtube.com/@mkbhd"
    ],
    "maxVideosPerSource": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/youtube-sponsorship-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.youtube.com/@mkbhd"],
    "maxVideosPerSource": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/youtube-sponsorship-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.youtube.com/@mkbhd"
  ],
  "maxVideosPerSource": 5
}' |
apify call automation_craft/youtube-sponsorship-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation_craft/youtube-sponsorship-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fF11bqa7EzxjSY0Xb/builds/BJaq9saLdpumdctX7/openapi.json
