Get video details

From UBot Studio
Revision as of 16:00, 4 July 2023 by LillyT (Talk | contribs)

Jump to: navigation, search

$get video details is a function that retrieves the details of a YouTube video using its video ID.

Parameters

Video Id: This is the unique identifier for the YouTube video whose details are to be retrieved. The video ID can be found in the video's URL.

Return Value

This function returns a yaml object of the video's details.

Example

ui console view
connect to youtube("path/to/your/client secret.json")
log object($get video details("dQw4w9WgXcQ"))

The script above connects to YouTube using the client secret file "client secret.json". Please replace "path/to/your/" with the actual path to your client secret file.

It uses the "$get video details" function to retrieve the details of the YouTube video with the ID "dQw4w9WgXcQ", and logs it to the console.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox