YouTube
GET /v1/youtube/video-sponsors

YouTube Video Sponsors API

SponsorBlock community segments — free while the CC BY-NC-SA commercial-use exception is pending.

0 credits per request
TL;DR
SponsorBlock community segments — free while the CC BY-NC-SA commercial-use exception is pending. The YouTube Video Sponsors API (YouTube) is a single authenticated GET request to /v1/youtube/video-sponsors that responds with clean JSON and costs 0 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the YouTube Video Sponsors API?

Paste a YouTube video URL. Returns community-sourced skip segments from SponsorBlock (https://sponsor.ajay.app/) — not YouTube official data and not Captapi detection. Envelope always includes source:"sponsorblock", sourceUrl, license:"CC BY-NC-SA 4.0" (attribution required; commercial use needs SponsorBlock's explicit permission), and videoDurationSeconds even when segments is empty. Segments sorted by startSeconds with overlapsWith. coverageSeconds is the union of filtered intervals — overlapping segments are counted once, so coverageSeconds ≤ sum(durationSeconds). minVotes and categories are echoed so a filtered coverageSeconds is distinguishable from an unfiltered one. Default minVotes=0 drops rejected segments (votes < 0). Default categories=sponsor,selfpromo,interaction. 0 credits on every call since 2026-08-09: the SponsorBlock database/API licence is non-commercial, so this endpoint stays free unless SponsorBlock grants a written commercial-use exception.

What you get

  • source / sourceUrl / license on every response
  • videoDurationSeconds always present (empty or not)
  • Sorted segments + overlapsWith + coverageSeconds
  • 0 credits on every call (NC-licensed data — free by policy)

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/youtube/video-sponsors?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "videoId": "Wdjh81uH6FU",
    "videoDurationSeconds": 938.852,
    "totalReturned": 5,
    "segments": [
      {
        "category": "selfpromo",
        "actionType": "skip",
        "startSeconds": 554.515,
        "endSeconds": 638.201,
        "startFormatted": "9:15",
        "endFormatted": "10:38",
        "durationSeconds": 83.686,
        "votes": 1,
        "uuid": "52f9974390e30c4941d529cb028dfa56886a6e738fd1c5f1603a37f9bd9c21217"
      },
      {
        "category": "sponsor",
        "actionType": "skip",
        "startSeconds": 600.675,
        "endSeconds": 617.15,
        "startFormatted": "10:01",
        "endFormatted": "10:17",
        "durationSeconds": 16.475,
        "votes": 0,
        "uuid": "6377104df535c8eb2c2d7d6437320e71660b93a02517da2ba668c3813d7de6ff7"
      },
      {
        "category": "sponsor",
        "actionType": "skip",
        "startSeconds": 555.65,
        "endSeconds": 560.175,
        "startFormatted": "9:16",
        "endFormatted": "9:20",
        "durationSeconds": 4.525,
        "votes": 0,
        "uuid": "f75d77a0658f668c014ffa63f26f2ecc439a6d6b18b868d93c0875f55a47ba017"
      },
      {
        "category": "selfpromo",
        "actionType": "skip",
        "startSeconds": 567.302,
        "endSeconds": 573,
        "startFormatted": "9:27",
        "endFormatted": "9:33",
        "durationSeconds": 5.698,
        "votes": 0,
        "uuid": "328569d7ae428c1243bc54f010800a5cf6b5449e47abd3ee0f8093531ebeb8137"
      },
      {
        "category": "sponsor",
        "actionType": "skip",
        "startSeconds": 621.375,
        "endSeconds": 627.7,
        "startFormatted": "10:21",
        "endFormatted": "10:28",
        "durationSeconds": 6.325,
        "votes": -1,
        "uuid": "ee142c1cb73f13b3eceef18ffdd1eafd763c1adaef8df88f2c2b20f768e40ad27"
      }
    ]
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success and a data object with the following fields:

Top-level fields

  • videoIdPlatform video ID.
  • videoDurationSecondsFull video length in seconds. Always present — including when segments is empty (proves the video was looked up).
  • totalReturnedNumber of items returned in this response.

Segments

Each item in segments contains:

  • categorySponsorBlock segment category: "sponsor" | "selfpromo" | "interaction" | "intro" | "outro" | "preview" | "music_offtopic" | "poi_highlight" | "filler".
  • actionTypeSponsorBlock action (usually "skip").
  • startSecondsSegment start time in seconds.
  • endSecondsSegment end time in seconds.
  • startFormattedSegment start as M:SS or H:MM:SS.
  • endFormattedSegment end as M:SS or H:MM:SS.
  • durationSecondsSponsor segment length in seconds (end - start).
  • votesVotes. Example: 1.
  • uuidUuid.

Parameters

NameTypeRequiredDescription
urlstringYesPublic YouTube video URL, e.g. https://youtube.com/watch?v=ID. Not a TikTok/Instagram/Facebook URL. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
minVotesintegerNoMinimum SponsorBlock votes to keep a segment. Default 0 (drops community-rejected votes < 0).
categoriesstringNoComma-separated categories. Default sponsor,selfpromo,interaction. Also intro,outro,preview,music_offtopic,poi_highlight,filler.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 0 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool youtube_video_sponsors via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/youtube/video-sponsors and parse the JSON response.

Use cases

Sponsorship Detection

Surface sponsor segments disclosed on a YouTube video.

Brand Safety

See which brands appear alongside a creator's content.

Frequently asked questions

What does the YouTube Video Sponsors API do?+

The YouTube Video Sponsors API lets you fetch full metadata and key stats from a public YouTube video using one GET request to /v1/youtube/video-sponsors. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the YouTube Video Sponsors API cost?+

0 credits on every call. SponsorBlock data is CC BY-NC-SA 4.0 — attribution required (source / sourceUrl / license ship on every response). Commercial use needs SponsorBlock's written permission. This is not an account endpoint; it is free because of that licence.

Do I need a YouTube API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.

Why is this free if it is not an account endpoint?+

The SponsorBlock database/API is CC BY-NC-SA 4.0 (non-commercial). Captapi keeps this route at 0 credits unless SponsorBlock grants a written commercial-use exception. Every response carries source, sourceUrl, and license so you can discharge the BY. This is not an /account/* route.

Why is coverageSeconds smaller than the sum of durationSeconds?+

coverageSeconds is the union of the filtered intervals, not the sum. Overlapping segments are counted once, so coverageSeconds ≤ sum(durationSeconds). On Wdjh81uH6FU the first segment swallows the other three — a naive sum is 110.384 and the union is 83.686. Filters recompute it; they do not leave a stale total.

Is categories echoed like minVotes?+

Yes. minVotes and categories are both on every response so coverageSeconds and totalReturned are readable under a filter. Default categories are sponsor, selfpromo, interaction.

Is the YouTube Video Sponsors API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

More YouTube APIs

Ready to use the YouTube Video Sponsors API?

Sign up, grab your key, and make your first call in 60 seconds.

YouTube Video Sponsors API | Captapi — Captapi