> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape a YouTube channel's videos

> Returns a YouTube channel's recent videos as JSON: `videoId`, `title`, `views`, `published`, `thumbnail` and a watch `url`, plus a `channel` summary (name, id). Pass a handle (`@mkbhd`), a channel id (`UC...`) or a channel URL. Returns the channel's first page of videos (about 30).



## OpenAPI

````yaml /api-reference/openapi.json post /content/youtube-channel
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /content/youtube-channel:
    post:
      tags:
        - Plugins
      summary: Scrape a YouTube channel's videos
      description: >-
        Returns a YouTube channel's recent videos as JSON: `videoId`, `title`,
        `views`, `published`, `thumbnail` and a watch `url`, plus a `channel`
        summary (name, id). Pass a handle (`@mkbhd`), a channel id (`UC...`) or
        a channel URL. Returns the channel's first page of videos (about 30).
      operationId: youtube_channel_content_youtube_channel_post
      parameters:
        - name: channel
          in: query
          required: true
          schema:
            type: string
            description: Channel handle (@mkbhd), channel id (UC...) or a channel URL.
            title: Channel
          description: Channel handle (@mkbhd), channel id (UC...) or a channel URL.
        - name: tab
          in: query
          required: false
          schema:
            type: string
            description: 'Which tab: videos, shorts, streams.'
            default: videos
            title: Tab
          description: 'Which tab: videos, shorts, streams.'
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Exit-IP country (ISO-2).
            title: Proxy Country
          description: Exit-IP country (ISO-2).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: >-
              Max videos to return (1-200). Honoured on the 'videos' tab; other
              tabs return a single scraped page.
            default: 30
            title: Limit
          description: >-
            Max videos to return (1-200). Honoured on the 'videos' tab; other
            tabs return a single scraped page.
      responses:
        '200':
          description: JSON with a `channel` summary and a `videos` array.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked by YouTube or no channel page returned.
        '504':
          description: Fetch timed out.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````