# YouTube Sponsorship & Brand Intelligence (`gulalig/youtube-sponsorship-brand-intelligence`) Actor

Discover YouTube sponsorship opportunities with actionable creator intelligence. Detect sponsored content, identify brand mentions, affiliate links and promo codes, and analyse creator engagement. Get structured JSON with supporting evidence, brand-domain matching, and creator-level insights.

- **URL**: https://apify.com/gulalig/youtube-sponsorship-brand-intelligence.md
- **Developed by:** [Gulali Gulaliyev](https://apify.com/gulalig) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 video scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 & Brand Intelligence

**Discover sponsorship disclosures, brand mentions, affiliate signals, and creator performance — in structured, developer-ready JSON.**

Turn public YouTube video descriptions and metadata into useful commercial intelligence. Identify **named sponsor candidates**, connect brands to relevant domains, classify promotional links, and examine engagement — without manually reviewing every description.

**🔎 Evidence-first detection · 🔗 Commercial link analysis · 📊 Creator analytics · 🌍 32-language phrase-rule coverage · 📦 JSON v2**

> **Important:** This tool identifies *signals* from public video descriptions and metadata, not independently verified commercial agreements. Its initial phrase rules cover 32 languages; accuracy has not been independently validated across all 32.

***

### ✨ What you get

| Feature                            | What it delivers                                                                               |
| ---------------------------------- | ---------------------------------------------------------------------------------------------- |
| 🎯 **Sponsorship signals**         | Detect explicit disclosure phrases and extract named brand candidates.                         |
| 🧾 **Supporting evidence**         | Preserve matched text and explain how a candidate was detected.                                |
| 🔗 **Brand–domain matching**       | Associate a brand candidate with a relevant URL when supported by conservative rules.          |
| 🛍️ **Commercial links**            | Classify links as `sponsor`, `affiliate`, `social`, or `unknown` and give a reason.            |
| 🏷️ **Promo and affiliate signals** | Extract recognized promo codes and affiliate/referral parameters when present.                 |
| 📈 **Engagement intelligence**     | Calculate engagement rate, likes and comments per 1,000 views, and views-to-subscribers ratio. |
| 👤 **Creator information**         | Return available channel metadata and public statistics.                                       |
| 🤝 **Creator–brand summaries**     | Aggregate observed brands, domains, repeat mentions, and mention rates across analyzed videos. |
| 📅 **Readable dates**              | Include both UTC ISO timestamps and human-readable dates.                                      |
| ✅ **Run completeness**            | Show how many IDs were requested, processed, or not returned by the YouTube API.               |

#### 💡 Who is it for?

- **Influencer marketing teams** researching potential creator–brand relationships.
- **Brand researchers** examining disclosed sponsor mentions and commercial domains.
- **Agencies** enriching creator prospect lists with structured public signals.
- **Developers and analysts** feeding structured video intelligence into dashboards and workflows.

***

### 🚀 Get started

1. Open the Actor's **Input** tab.
2. Add one or more YouTube **video IDs** (not channel URLs).
3. Set **Maximum videos** if needed.
4. Click **Start**, then explore **🎯 Sponsorship Overview**, **📊 Engagement Analytics**, or **All fields** under **Output**.

#### 📥 Example input

```json
{
  "videoIds": ["SSHx_D-gcR8", "dQw4w9WgXcQ"],
  "maxVideos": 50
}
```

| Field       | Required | Details                                                                        |
| ----------- | -------- | ------------------------------------------------------------------------------ |
| `videoIds`  | Yes      | Array of YouTube video IDs in standard 11-character format; 1–50 supplied IDs. |
| `maxVideos` | No       | Limit on valid unique videos to process, from 1–50; defaults to `20`.          |

For example, `https://www.youtube.com/watch?v=SSHx_D-gcR8` has video ID `SSHx_D-gcR8`.

Duplicate and invalid IDs are removed during validation. A well-formed ID is not a guarantee that the video is available through the YouTube API.

***

### 📦 Your results: three useful outputs

#### 🎬 1. Video analysis dataset

The **default dataset** contains one JSON record per successfully processed video, including its metadata, candidate sponsors, evidence, commercial signals, channel details, and derived analytics.

```json
{
  "videoId": "SSHx_D-gcR8",
  "channelTitle": "MacMagazine",
  "schemaVersion": "2.0",
  "publishedDateReadable": "11 Jun 2025",
  "sponsorshipStatus": "unverified-signals",
  "sponsorshipIntelligence": {
    "detected": true,
    "brandCount": 1,
    "brands": [
      {
        "name": "NordVPN",
        "relationshipStatus": "unverified",
        "confidenceLevel": "explicit-mention",
        "detectionMethod": "explicit-description-mention",
        "evidence": {
          "sourceType": "video-description",
          "matchedText": "foi patrocinado pela NordVPN"
        },
        "links": [
          {
            "url": "https://nordvpn.com/macmagazine",
            "domain": "nordvpn.com",
            "associationMethod": "brand-domain-match",
            "verified": false
          }
        ],
        "promoCodes": [],
        "offer": null
      }
    ]
  },
  "engagementIntelligence": {
    "engagementRateByViewsPercent": 6.8316,
    "likesPer1000Views": 63.1667,
    "commentsPer1000Views": 5.1495,
    "viewsToSubscribersRatio": 0.1933
  }
}
```

*Focused excerpt from an analyzed video, not the full JSON record or proof of a commercial agreement. Engagement metrics reflect a past snapshot and can change.*

The full record also retains `url`, `title`, `videoDetails`, `channelDetails`, `evidence`, `sponsorCandidates`, `commercialSignals`, `commercialIntelligence`, `dataQuality`, timestamps, and more.

#### 👥 2. Creator–brand summaries

Creator-level summaries are available in the **`creator-brand-summaries`** dataset and the **`CREATOR_SUMMARIES`** key-value record. They include:

- Channel identity and number of analyzed videos.
- Observed named brand candidates, domains, and promo codes.
- Videos with named sponsor candidates and sponsor mention rate.
- Recurring brand candidates across the **submitted, successfully processed videos**.

Recurring mentions are observations, **not verification of ongoing partnerships**.

#### 🧮 3. Run summary

The **`RUN_SUMMARY`** key-value record reports the requested, processed, and missing video IDs, alongside timestamps.

```json
{
  "schemaVersion": "2.0",
  "requestedVideos": 2,
  "processedVideos": 1,
  "failedVideos": 1,
  "failures": [
    {
      "videoId": "ZZZZZZZZZZZ",
      "reason": "not-returned-by-youtube-api"
    }
  ]
}
```

*Illustrative partial-failure example. “Not returned” does not establish whether a video is deleted, private, restricted, or otherwise unavailable.*

***

### 🔍 Understanding sponsorship and link signals

| Value                | Meaning                                                                                        |
| -------------------- | ---------------------------------------------------------------------------------------------- |
| `unverified-signals` | Disclosure-related language or candidates found; no independently verified agreement.          |
| `no-explicit-signal` | No explicit phrase found in the analyzed description; not proof that there is no sponsorship.  |
| `explicit-mention`   | A named brand extracted near explicit disclosure language; not a statistical confidence score. |
| `sponsor`            | Link domain heuristically matches a named sponsor candidate.                                   |
| `affiliate`          | A recognized affiliate or referral parameter was detected in a URL.                            |
| `social`             | A recognized social/community platform link.                                                   |
| `unknown`            | Evidence is insufficient for a stronger classification.                                        |

**Affiliate tracking is not itself evidence of a paid sponsorship.** Evidence and classification reasons are preserved so results can be reviewed.

***

### 📊 Engagement analytics

Metrics use available public counters captured at analysis time:

| JSON field                     | Calculation                                 |
| ------------------------------ | ------------------------------------------- |
| `engagementRateByViewsPercent` | `(likes + comments) / views × 100`          |
| `likesPer1000Views`            | `likes / views × 1000`                      |
| `commentsPer1000Views`         | `comments / views × 1000`                   |
| `viewsToSubscribersRatio`      | `video views / current channel subscribers` |

If the required value is unavailable or the denominator is zero, a metric is `null`. The views-to-subscribers ratio is **not a historical subscriber measurement**.

***

### 📅 Human-friendly dates + machine-readable timestamps

The output includes both formats so it works for dashboards and API integrations:

```json
{
  "publishedAt": "2025-06-11T12:30:22Z",
  "publishedDate": "2025-06-11",
  "publishedDateReadable": "11 Jun 2025",
  "analyzedAt": "2026-11-20T19:58:49.813Z",
  "analyzedDateReadable": "20 Nov 2026, 19:58:49 UTC"
}
```

Times are **UTC**. Use ISO timestamp fields for programmatic parsing; readable dates are for display.

***

### 🧩 API and integrations

Use the Apify API to retrieve analysis results from a completed run:

```http
GET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json
GET https://api.apify.com/v2/key-value-stores/<STORE_ID>/records/CREATOR_SUMMARIES
GET https://api.apify.com/v2/key-value-stores/<STORE_ID>/records/RUN_SUMMARY
```

Replace the placeholders with the dataset and key-value store IDs from your run. Use appropriate authentication when accessing private data.

The underlying analysis is built with a **Go extraction engine** and **TypeScript intelligence pipeline**. The core workflow also supports standalone execution; the JSON contract is not designed exclusively for Apify.

***

### 🛡️ Data quality and scope

- **Source:** Public information available through YouTube Data API and video descriptions.
- **Detection scope:** Description text and public video/channel metadata; **not** audio, transcripts, or spoken sponsorship detection.
- **Languages:** Initial sponsorship-related phrase rules cover 32 languages.
- **Commercial relationships:** Brand candidates and domain matches are **unverified signals**, not certification of a sponsorship contract.
- **Availability:** Public counters and metadata may be missing or change over time. Some video IDs may not be returned by YouTube.
- **Analysis scope:** Creator summaries reflect the videos supplied and successfully processed in that run, **not** an exhaustive historical scan of the channel.

**Use the evidence fields to review important findings before making commercial decisions.**

***

#### 🤝 Ready to explore creator sponsorship signals?

Add a YouTube video ID, click **Start**, and turn public video data into structured sponsorship and creator intelligence.

*This product is an independent analysis tool and does not endorse or certify the brands identified in its results.*

# Actor input Schema

## `videoIds` (type: `array`):

1–50 public 11-character YouTube video IDs. No usernames or channel scraping in v0.1.

## `maxVideos` (type: `integer`):

Maximum number of YouTube videos to analyze in one run. The limit is 50 videos.

## Actor input object example

```json
{
  "maxVideos": 20
}
```

# Actor output Schema

## `videoResults` (type: `string`):

One record per successfully analyzed YouTube video. Explicit sponsorship signals are unverified, not proof of a paid partnership.

## `creatorSummaries` (type: `string`):

JSON snapshot of creator summaries stored in the default key-value store. The existing creator-brand-summaries dataset is also retained.

## `runSummary` (type: `string`):

Counts of requested, processed, and missing videos. A missing video was not returned by the API; its reason for unavailability is not verified.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gulalig/youtube-sponsorship-brand-intelligence").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("gulalig/youtube-sponsorship-brand-intelligence").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 '{}' |
apify call gulalig/youtube-sponsorship-brand-intelligence --silent --output-dataset

```

## MCP server setup

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

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/hD4SOaOooLRCc75kh/builds/qVQDOj0kxAufDT3FP/openapi.json
