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

# Get channel details

> Retrieve channel metadata, metrics, and recent videos for a YouTube channel handle.



## OpenAPI

````yaml get /v1/youtube/channel
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/youtube/channel:
    get:
      tags:
        - YouTube
      summary: Get YouTube channel details
      description: >-
        Retrieves channel metadata (subscriber/view/video counts, description,
        links) and a list of recent videos for a YouTube channel handle. Backed
        by our own maintained `youtube_channel` Web Scraping API target,
        independently of whether search/video/subtitles happen to be self-hosted
        or provider-backed on this deployment. Requires a Starter plan or
        higher.
      operationId: getYouTubeChannel
      parameters:
        - name: handle
          in: query
          required: true
          schema:
            type: string
            minLength: 2
            maxLength: 64
            pattern: ^@?[A-Za-z0-9_.-]{2,63}$
            description: YouTube channel handle, e.g. @channelname
        - name: limit
          in: query
          required: false
          schema:
            description: Max number of recent videos to include
            type: integer
            exclusiveMinimum: 0
            maximum: 100
      responses:
        '200':
          description: Structured YouTube channel details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YouTubeChannelResponse'
        '400':
          description: Invalid channel handle.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: YouTube channel requires a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Daily credit cap exceeded, or the upstream provider rate-limited the
            request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: YouTube channel upstream failed or returned an unusable response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: YouTube channel execution backend unavailable or unconfigured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/youtube/channel?handle=@scrapio&limit=20"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    YouTubeChannelResponse:
      type: object
      properties:
        request_id:
          type: string
        channel:
          type: object
          properties:
            id:
              anyOf:
                - type: string
                - type: 'null'
            name:
              anyOf:
                - type: string
                - type: 'null'
            handle:
              type: string
            description:
              anyOf:
                - type: string
                - type: 'null'
            avatar_url:
              anyOf:
                - type: string
                  format: uri
                - type: 'null'
            country:
              anyOf:
                - type: string
                - type: 'null'
            joined_date:
              anyOf:
                - type: string
                - type: 'null'
            subscriber_count:
              anyOf:
                - type: string
                - type: 'null'
            view_count:
              anyOf:
                - type: string
                - type: 'null'
            video_count:
              anyOf:
                - type: integer
                  minimum: 0
                  maximum: 9007199254740991
                - type: 'null'
            links:
              type: array
              items:
                type: object
                properties:
                  url:
                    type: string
                  title:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - url
                  - title
                additionalProperties: false
            videos:
              type: array
              items:
                type: object
                properties:
                  position:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 9007199254740991
                  url:
                    type: string
                    format: uri
                  title:
                    type: string
                  view_count:
                    type: string
                  uploaded_at:
                    type: string
                required:
                  - position
                  - url
                  - title
                additionalProperties: false
          required:
            - id
            - name
            - handle
            - description
            - avatar_url
            - country
            - joined_date
            - subscriber_count
            - view_count
            - video_count
            - links
            - videos
          additionalProperties: false
      required:
        - request_id
        - channel
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````