very basic, but gives a starting point for self research.
note the documents links below. google apikeys are required.
YouTube made a major change in it's API a couple years back, version3.
you need server and Browser keys, so no direct access is allowed.
you must register thru YouTube to get the keys, and they are considered confidential.
#include <MsgBoxConstants.au3>
$video_id = 'A_QfO7g1YsI'; Parliament - Night of The Thumpasorus Peoples
$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ; // browser key for desktop apps.
;$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ; // server key for web apps.
$ytquery = 'https://www.googleapis.com/youtube/v3/videos' & '?id=' & $video_id & '&key=' & $apikey ;
$ytquery = $ytquery & '&part=snippet,contentDetails,status,player';
$ytquery = $ytquery & '&fields=items(id,snippet(title),status(uploadStatus,rejectionReason,embeddable)';
$ytquery = $ytquery & ',contentDetails(duration,regionRestriction)';
$ytquery = $ytquery & ',player(embedHtml))';
$ytdata = InetRead($ytquery,1);
$ytjson = BinaryToString($ytdata);
;MsgBox($MB_OK, $video_id, $ytjson)
ConsoleWrite( @CRLF & $ytjson & @CRLF)
Exit
; https://developers.google.com/youtube/v3/
; https://developers.google.com/youtube/v3/docs/videos