Skip to main content
Module

x/youtube_sr/mod.ts>Video

Simple library for Node, Deno & Bun to make YouTube search easily
Go to Latest
class Video
Re-export
import { Video } from "https://deno.land/x/youtube_sr@v4.3.1/mod.ts";

Constructors

new
Video(data: any)

Properties

readonly
adaptiveFormats
optional
channel: Channel
optional
description: string
dislikes: number
duration: number
durationFormatted: string
readonly
embedURL: string

YouTube video embed url

readonly
formats
optional
id: string
likes: number
live: boolean
nsfw: boolean
private: boolean
optional
streamingData: VideoStreamingData | null
tags: string[]
optional
thumbnail: Thumbnail
optional
title: string
readonly
type: "video"
unlisted: boolean
optional
uploadedAt: string
readonly
url
optional
videos: Video[]
views: number

Methods

private
_patch(data: any): void

Patch raw data

Creates mix playlist url from this video

embedHTML(options?): string

YouTube video embed html

toString(): string