# Find promo codes in YouTube sponsor reads

**Use case:** 

Pull the promo codes creators read out in their sponsor segments, with the brand, tracking link and the moment in the video. This example covers five videos with codes from Fireship, NetworkChuck, Mrwhosetheboss, Wendover Productions and Veritasium.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=wajoP_5Cpw8",
    "https://www.youtube.com/watch?v=5wZUwZWxMLQ",
    "https://www.youtube.com/watch?v=HVLUtJWlcJY",
    "https://www.youtube.com/watch?v=vIGub9r4a2o",
    "https://www.youtube.com/watch?v=NiCgcUTL9_Q"
  ],
  "maxVideosPerChannel": 10,
  "sponsorCpmLow": 20,
  "sponsorCpmHigh": 50,
  "languages": [
    "en"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "title": {
    "label": "Video",
    "format": "text"
  },
  "channelName": {
    "label": "Channel",
    "format": "text"
  },
  "sponsors": {
    "label": "Sponsors",
    "format": "text"
  },
  "sponsorCount": {
    "label": "Sponsor reads",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "estSponsorSpendLowUsd": {
    "label": "Est. sponsor spend, low ($)",
    "format": "number"
  },
  "estSponsorSpendHighUsd": {
    "label": "Est. sponsor spend, high ($)",
    "format": "number"
  },
  "promoCodes": {
    "label": "Promo codes",
    "format": "text"
  },
  "adTimes": {
    "label": "Ad times",
    "format": "text"
  },
  "affiliates": {
    "label": "Affiliate plugs",
    "format": "text"
  },
  "paidPromotion": {
    "label": "YouTube paid promotion flag",
    "format": "boolean"
  },
  "url": {
    "label": "Link",
    "format": "link"
  },
  "transcriptStatus": {
    "label": "Captions",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Sponsorship Tracker Actor is ready to run with the inputs already set for "Find promo codes in YouTube sponsor reads". [Sign up or log in](https://console.apify.com/create-task-from-example/Rtf26R3OmZtAgVXLp) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find promo codes in YouTube sponsor reads" task

The YouTube Sponsorship Tracker Actor will start running based on the input automatically. You can also change all the input fields, like video urls, videos per channel, and more, to match your specific use case.

### 3. Receive the "Find promo codes in YouTube sponsor reads" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video, channel, sponsors, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find promo codes in YouTube sponsor reads" task via API](https://apify.com/switkowski/youtube-sponsor-segments.md).

## FAQ

### Are the promo codes spelled correctly?

Promo codes come from the video description when the creator lists them there, which avoids caption misspellings. Codes only spoken aloud come from captions.

### What if a video has no promo code?

The promo code column is left empty for that sponsor, and the tracking link is still returned when the description has one.

### Can I check a whole channel for codes?

Add the channel under Channel URLs instead of listing videos. The task then checks its newest long videos.

## About this Actor

This example demonstrates how to use [YouTube Sponsorship Tracker](https://apify.com/switkowski/youtube-sponsor-segments.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/switkowski/youtube-sponsor-segments.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/switkowski/youtube-sponsor-segments.md

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