---
title: "YouTube Video Sponsors API"
method: GET
path: "/v1/youtube/video-sponsors"
tags: ["YouTube"]
---

# YouTube Video Sponsors API

`GET /v1/youtube/video-sponsors`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/youtube/video-sponsors`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

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

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.

Docs: https://captapi.com/apis/youtube-video-sponsors

## Query parameters

- `url` string, required
- `minVotes` integer
- `categories` string
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `videoId` string: Platform video ID.
    - `videoDurationSeconds` number: Full video length in seconds. Always present — including when segments is empty (proves the video was looked up).
    - `totalReturned` integer: Number of items returned in this response.
    - `segments` object[]
      - `category` string: SponsorBlock segment category: "sponsor" | "selfpromo" | "interaction" | "intro" | "outro" | "preview" | "music_offtopic" | "poi_highlight" | "filler".
      - `actionType` string: SponsorBlock action (usually "skip").
      - `startSeconds` number: Segment start time in seconds.
      - `endSeconds` number: Segment end time in seconds.
      - `startFormatted` string: Segment start as M:SS or H:MM:SS.
      - `endFormatted` string: Segment end as M:SS or H:MM:SS.
      - `durationSeconds` number: Sponsor segment length in seconds (end - start).
      - `votes` integer: Votes. Example: 1.
      - `uuid` string: Uuid.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
