# Get sponsor timestamps for one YouTube video

**Use case:** 

Find exactly when each sponsor read starts and ends in a single YouTube video, with the brand and the creator's words. This example uses a 2-hour Huberman Lab episode with five sponsors. Paste any video link to try your own.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=y-fRFiTrrg4"
  ],
  "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 "Get sponsor timestamps for one YouTube video". [Sign up or log in](https://console.apify.com/create-task-from-example/CrQgcHXj6ebSbkrUO) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get sponsor timestamps for one YouTube video" 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 "Get sponsor timestamps for one YouTube video" 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 "Get sponsor timestamps for one YouTube video" task via API](https://apify.com/switkowski/youtube-sponsor-segments.md).

## FAQ

### How accurate are the sponsor timestamps?

In testing on 1,000 videos, sponsor start times landed within about a second of human-labeled ad segments on most videos.

### Does this work on videos without captions?

Videos without captions come back empty, with the reason in transcriptStatus, and you are not charged for them.

### How long does one video take?

One video usually takes under a minute, and long podcasts take about the same as short 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`).
