Get-YTdlpVideoInfo
SYNOPSIS
Gets the metadata of a video without downloading it
SYNTAX
Get-YTdlpVideoInfo [-Url] <String[]> [-NoPlaylist] [-CookiesFromBrowser <String>] [-ExecutablePath <String>]
[-AdditionalArguments <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
The Get-YTdlpVideoInfo function gets the metadata of a video, such as the title, uploader, duration, & available formats, as a PowerShell object without downloading the video. It uses the yt-dlp –dump-single-json option.
EXAMPLES
EXAMPLE 1
Get-YTdlpVideoInfo -Url 'https://www.youtube.com/watch?v=cE0wfjsybIQ'
Returns the metadata of the video
EXAMPLE 2
(Get-YTdlpVideoInfo -Url 'https://www.youtube.com/watch?v=cE0wfjsybIQ').formats | Select-Object format_id, resolution, vcodec, acodec
Lists the formats available for the video
PARAMETERS
-Url
One or more URLs to get metadata for
Type: String[]
Parameter Sets: (All)
Aliases: Uri
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-NoPlaylist
Only get the video if the URL refers to a video & a playlist
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-CookiesFromBrowser
The browser to load cookies from
Example: firefox or chrome:Profile 1
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ExecutablePath
Defines an explicit path to the yt-dlp executable
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AdditionalArguments
Any additional raw yt-dlp command line arguments
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
System.Management.Automation.PSCustomObject
NOTES
Copyright 1990-2026 Celerium
NAME: Get-YTdlpVideoInfo Type: Public
AUTHOR: David Schulte
DATE: 2025-11-11
EMAIL: celerium@Celerium.org
TODO: