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

# Get YouTube video content

> [OpenAPI JSON Spec](/docs/output/v1_other_youtube_videos_video-id_get.json)
Returns the current extraction result for one YouTube video. Set include_content=true for the transcript, speaker matches and, on a video processed before screenshots stopped, screenshots.
A transcript segment's speaker is the voice that talks most during it: its name when the audio speaker identification is at least 0.4 sure of it, otherwise "spk N". speakers has one entry per voice the identification listed, labeled as the segments are, with name, role, confidence and attribution_source; a name below 0.4 stays there. A video not yet identified keeps the captions' own name labels. If no voice is named with confidence 0.4 or more, the captions' own name labels are kept when they have any, and the segments show "spk N" when they have none.
updated_at is an RFC3339 UTC timestamp with millisecond precision.
The list endpoint rejects offset, including offset=0, because an update window is always required.
With include_content, turns and resolved_speakers are the audio transcript and who each voice is, in the /api/v1/persons/channel-commentary format without person_id; they are absent until speaker identification finishes. No person_id is served anywhere on this endpoint.
cover_url and screenshots[].url are public image URLs. The lane no longer takes screenshots: it downloads a video's audio and captions only, so screenshots and screenshot_ids appear only on videos processed before it stopped.
See docs/api/youtube-videos-updates.md and docs/api/update-polling.md for the complete update-polling contract.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/other/youtube/videos/{video_id}
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Welcome to Arrays!


    Arrays is a unified financial data layer for both financial institutions and
    retail users, delivering comprehensive market data across crypto and equity
    markets. Our datasets cover fundamentals, ETFs, options, crypto, and more.


    Visit [arrays.org](https://arrays.org) to request an API key and start your
    free trial. You can explore our full API offerings in the documentation
    below.


    For any questions regarding APIs or pricing, please contact
    support@arrays.org.
  title: Arrays API
  version: '1.0'
servers:
  - url: https://data-tools.prd.arrays.org/api
security: []
paths:
  /v1/other/youtube/videos/{video_id}:
    get:
      tags:
        - Other
      summary: Get YouTube video content
      description: >-
        [OpenAPI JSON
        Spec](/docs/output/v1_other_youtube_videos_video-id_get.json)

        Returns the current extraction result for one YouTube video. Set
        include_content=true for the transcript, speaker matches and, on a video
        processed before screenshots stopped, screenshots.

        A transcript segment's speaker is the voice that talks most during it:
        its name when the audio speaker identification is at least 0.4 sure of
        it, otherwise "spk N". speakers has one entry per voice the
        identification listed, labeled as the segments are, with name, role,
        confidence and attribution_source; a name below 0.4 stays there. A video
        not yet identified keeps the captions' own name labels. If no voice is
        named with confidence 0.4 or more, the captions' own name labels are
        kept when they have any, and the segments show "spk N" when they have
        none.

        updated_at is an RFC3339 UTC timestamp with millisecond precision.

        The list endpoint rejects offset, including offset=0, because an update
        window is always required.

        With include_content, turns and resolved_speakers are the audio
        transcript and who each voice is, in the
        /api/v1/persons/channel-commentary format without person_id; they are
        absent until speaker identification finishes. No person_id is served
        anywhere on this endpoint.

        cover_url and screenshots[].url are public image URLs. The lane no
        longer takes screenshots: it downloads a video's audio and captions
        only, so screenshots and screenshot_ids appear only on videos processed
        before it stopped.

        See docs/api/youtube-videos-updates.md and docs/api/update-polling.md
        for the complete update-polling contract.
      parameters:
        - description: YouTube video id
          in: path
          name: video_id
          required: true
          schema:
            type: string
        - description: >-
            Include transcript, speaker matches, description and, on videos
            processed before screenshots stopped, screenshots
          in: query
          name: include_content
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      data:
                        items:
                          $ref: '#/components/schemas/model.YouTubeContent'
                        type: array
                    type: object
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/model.APIResponse'
                  - properties:
                      error:
                        $ref: '#/components/schemas/model.APIError'
                    type: object
      security:
        - ApiKeyAuth: []
components:
  schemas:
    model.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/model.APIError'
        metadata: {}
        pagination: {}
        request_id:
          type: string
        success:
          type: boolean
      type: object
    model.YouTubeContent:
      properties:
        channel_id:
          type: string
        channel_name:
          type: string
        channel_url:
          type: string
        cover_object:
          type: string
        cover_url:
          description: >-
            CoverURL is the public arrays-public-assets URL for cover_object
            when cover_object is non-empty.
          type: string
        description:
          type: string
        duplicate_of:
          description: >-
            DuplicateOf is another video's id in this API for the same
            recording: its discovery

            captions match entry by entry and its duration is identical. It is
            omitted when unknown.

            A row with status duplicate was not downloaded and has no content;
            content is on that video.
          type: string
        duration_ms:
          type: integer
        id:
          type: string
        published_at:
          type: string
        resolved_speakers:
          additionalProperties:
            $ref: '#/components/schemas/model.YouTubeResolvedSpeaker'
          type: object
        screenshots:
          items:
            $ref: '#/components/schemas/model.YouTubeScreenshot'
          type: array
        speakers:
          items:
            $ref: '#/components/schemas/model.YouTubeSpeakerMatch'
          type: array
        status:
          description: >-
            Status is transcribed when content is available.

            discovered, media_queued, media_submitting and media_fetching mean
            processing is in progress.

            media_failed, media_not_configured, transcription_missing,
            transcription_failed, screenshot_failed,

            screenshot_upload_failed, cover_upload_failed and
            speaker_match_failed mean content is absent or incomplete.

            duplicate means the video was not downloaded because it is another
            upload of duplicate_of.
          enum:
            - transcribed
            - discovered
            - media_queued
            - media_submitting
            - media_fetching
            - media_failed
            - media_not_configured
            - transcription_missing
            - transcription_failed
            - screenshot_failed
            - screenshot_upload_failed
            - cover_upload_failed
            - speaker_match_failed
            - duplicate
          type: string
        title:
          type: string
        transcript:
          items:
            $ref: '#/components/schemas/model.YouTubeTranscriptSegment'
          type: array
        turns:
          description: >-
            Turns and ResolvedSpeakers identify the video's audio transcription
            and each voice, using the

            same format and rules as /api/v1/persons/channel-commentary, except
            that no person_id is

            served (see YouTubeResolvedSpeaker). They are returned only with
            include_content and remain

            absent until speaker identification finishes; transcript remains the
            YouTube subtitles.
          items:
            $ref: '#/components/schemas/model.ChannelCommentaryTurn'
          type: array
        updated_at:
          description: >-
            UpdatedAt is an RFC3339 UTC timestamp with millisecond precision
            used by the update window and cursor.
          type: string
        video_url:
          type: string
      type: object
    model.APIError:
      properties:
        code:
          example: RESOURCE_NOT_FOUND
          type: string
        details:
          items:
            $ref: '#/components/schemas/model.APIErrorDetail'
          type: array
        docs_url:
          type: string
        examples:
          items:
            type: string
          type: array
        hint:
          type: string
        message:
          example: The requested resource was not found.
          type: string
        suggestions:
          items:
            type: string
          type: array
      type: object
    model.YouTubeResolvedSpeaker:
      properties:
        attribution_source:
          description: >-
            AttributionSource is how the name was reached: intro_selfstated,
            intro_introduced,

            signoff, title, websearch, or adjudicated.
          type: string
        confidence:
          description: >-
            Confidence runs 0..1. Below 0.4 is already dropped; at or above 0.7
            use it, between

            the two show it as uncertain. An entry stored without one stays and
            reports 0.
          type: number
        name:
          description: >-
            Name is the spelling found on a source, not the one in the audio
            transcript.
          type: string
        role:
          description: >-
            Role is host, guest, or clip: the video plays a recording of this
            person made somewhere

            else, and they were not in the video.
          enum:
            - host
            - guest
            - clip
          example: guest
          type: string
        unknown_turn_indexes:
          description: >-
            UnknownTurnIndexes are the zero-based positions, in turns, of turns
            of this voice that

            cannot be attributed to the person it names.
          items:
            type: integer
          type: array
      type: object
    model.YouTubeScreenshot:
      properties:
        id:
          type: string
        is_cover:
          type: boolean
        object:
          type: string
        reason:
          type: string
        timestamp_ms:
          type: integer
        url:
          description: >-
            URL is the public screenshot URL; it is omitted when object is
            empty.
          type: string
      type: object
    model.YouTubeSpeakerMatch:
      properties:
        attribution_source:
          description: >-
            AttributionSource says how the name was reached, for example
            intro_selfstated.
          type: string
        confidence:
          description: >-
            Confidence is how sure the identification is of the name (segments
            use the name from 0.4 up); absent, not 0, when it gave none.
          type: number
        evidence:
          type: string
        label:
          type: string
        name:
          type: string
        role:
          description: >-
            Role is host, guest or clip (a recording played in the video, not a
            person who took part).
          type: string
        status:
          type: string
      type: object
    model.YouTubeTranscriptSegment:
      properties:
        end_ms:
          type: integer
        screenshot_ids:
          items:
            type: string
          type: array
        speaker:
          type: string
        start_ms:
          type: integer
        text:
          type: string
      type: object
    model.ChannelCommentaryTurn:
      properties:
        end_sec:
          description: >-
            EndSec is the end of the turn, in seconds from the start of the
            video.
          type: number
        speaker:
          description: >-
            Speaker is who said the turn: the name of the voice's entry in
            resolved_speakers. A

            voice with no entry there (it was given no name, or a name below
            0.4) shows its voice

            label, such as "spk 3", and so does a turn that the entry lists in

            unknown_turn_indexes.
          example: Arthur Hayes
          type: string
        start_sec:
          description: >-
            StartSec is the start of the turn, in seconds from the start of the
            video.
          type: number
        text:
          description: Text is what the voice said in this turn.
          type: string
        voice:
          description: >-
            Voice is the voice's label in this video, such as "spk 3", whether
            or not speaker

            shows a name. It is a key of resolved_speakers when the voice was
            given a name, and the

            value quote_speaker takes.
          example: spk 3
          type: string
      type: object
    model.APIErrorDetail:
      properties:
        field:
          type: string
        got:
          type: string
        reason:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: 'API Key authentication. Example: "your-api-key-here"'
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.