> ## 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 video details

> Retrieve metadata for a specific YouTube video by ID.



## OpenAPI

````yaml get /v1/youtube/videos/{video_id}
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/videos/{video_id}:
    get:
      tags:
        - YouTube
      summary: Get YouTube video details
      description: >-
        Retrieve full metadata for a YouTube video by its ID: title, channel,
        description, publish date, view/like counts, tags, category, and
        available caption tracks. Set `include_subtitles: true` to include
        subtitle data in the same response.
      operationId: getYouTubeVideo
      parameters:
        - name: video_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]{6,20}$
        - name: language
          in: query
          required: false
          schema:
            description: Language for metadata
            type: string
            minLength: 2
            maxLength: 16
            pattern: ^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$
        - name: country
          in: query
          required: false
          schema:
            description: Country code for metadata
            type: string
            minLength: 2
            maxLength: 2
            pattern: ^[A-Za-z]{2}$
        - name: include_subtitles
          in: query
          required: false
          schema:
            description: Include subtitle availability in the response
            type: boolean
      responses:
        '200':
          description: Full video metadata.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YouTubeVideoResponse'
        '400':
          description: Invalid video ID format.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Video not found or unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/youtube/videos/dQw4w9WgXcQ?include_subtitles=false"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
        - lang: Python
          label: Python
          source: |-
            import os, requests
            resp = requests.get(
                "https://api.scrapio.dev/v1/youtube/videos/dQw4w9WgXcQ",
                headers={"Authorization": f"Bearer {os.environ['SCRAPIO_API_KEY']}"},
                params={"include_subtitles": False},
            )
            print(resp.json()["video"]["title"])
        - lang: JavaScript
          label: Node.js
          source: >-
            const { video } = await
            fetch("https://api.scrapio.dev/v1/youtube/videos/dQw4w9WgXcQ", {
              headers: { Authorization: `Bearer ${process.env.SCRAPIO_API_KEY}` },
            }).then(r => r.json());

            console.log(video.title, video.view_count);
components:
  schemas:
    YouTubeVideoResponse:
      type: object
      properties:
        request_id:
          type: string
        video:
          type: object
          properties:
            id:
              type: string
            title:
              type: string
            url:
              type: string
              format: uri
            channel:
              type: string
            description:
              type: string
            published_at:
              type: string
            thumbnails:
              type: array
              items:
                type: string
                format: uri
            duration:
              type: string
            view_count:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            like_count:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            tags:
              type: array
              items:
                type: string
            category:
              type: string
            captions_available:
              type: boolean
          required:
            - id
            - title
            - url
            - channel
            - description
            - published_at
            - thumbnails
          additionalProperties: false
      required:
        - request_id
        - video
      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

````