Here is another UDF! With YTAPI you can easily use the YouTube api to get all the info that you need for a specific YouTube video. This UDF will not retrive to you the video download link!, Remember that download video from YouTube is illegal If you will find any bug, have suggestion or you want other function please just let me know! All supported function: ;_YTApi_GetVideoID
;_YTApi_GetThumbnail
;_YTApi_GetTitle
;_YTApi_GetDescription
;_YTApi_GetAuthor
;_YTApi_GetDuration
;_YTApi_GetCategory
;_YTApi_GetStats
;_YTApi_GetRating
;_YTApi_GetRatingAverange
;_YTApi_GetUploadedDate
;_YTApi_GetUpdatedDate
;_YTApi_GetAllowedCountry
;_YTApi_IsCountryAllowed Here is a simple Example of usage: #include "YTAPI.au3"
$Video_ID = "dSLOR2cRouU"
$Video_Thumbnail = _YTApi_GetThumbnail($Video_ID)
If Not @error Then
MsgBox(0, "Thumbnail", "You can see the video thumbnail at this address:" & @CRLF & $Video_Thumbnail)
EndIf
$Video_Author = _YTApi_GetAuthor($Video_ID)
If @error Then
MsgBox(0, "Author", "The video author is: " & $Video_Author)
EndIf
$Video_Duration = _YTApi_GetDuration($Video_ID)
If Not @error Then
MsgBox(0, "Duration", "The video duration is: " & $Video_Duration & " seconds.")
EndIf
$Video_Title = _YTApi_GetTitle($Video_ID)
If Not @error Then
MsgBox(0, "Title", "The video title is: " & $Video_Title)
EndIf
$Video_Description = _YTApi_GetDescription($Video_ID)
If Not @error Then
MsgBox(0, "Description", "The video is: " & $Video_Description)
EndIf
$Video_Category = _YTApi_GetCategory($Video_ID)
If Not @error Then
MsgBox(0, "Category", "The video category is: " & $Video_Category)
EndIf
$Video_Stats = _YTApi_GetStats($Video_ID)
If Not @error Then
MsgBox(0, "Video Stats", "Favorite Video Count: " & $Video_Stats[0] & @CRLF & "View Count: " & $Video_Stats[1])
EndIf
$Video_Rating = _YTApi_GetRating($Video_ID)
If Not @error Then
MsgBox(0, "Video Rating", "Dislikes: " & $Video_Rating[0] & @CRLF & "Likes: " & $Video_Rating[1])
EndIf
$Video_Date = _YTApi_GetUploadedDate($Video_ID) ;Time is expressed in UTC (0)/GMT
If Not @error Then
MsgBox(0, "Video Upload Date", "This video was uploaded on: " & $Video_Date[0] & " at " & $Video_Date[1])
EndIf
$Video_Update = _YTApi_GetUpdatedDate($Video_ID) ;Time exspressed in UTC (0)/GMT
If Not @error Then
MsgBox(0, "Video Update Date", "This video was updated on: " & $Video_Update[0] & " at " & $Video_Update[1])
EndIf
$Video_Allowed_Country = _YTApi_GetAllowedCountry($Video_ID)
If Not @error Then
$allowed_txt = ""
$counter = 0
For $i = 0 To UBound($Video_Allowed_Country) - 1
$allowed_txt &= $Video_Allowed_Country[$i] & " , "
$counter += 1
If $counter = 10 Then
$allowed_txt &= @CRLF
$counter = 0
EndIf
Next
MsgBox(0, "Allowed Country Code", $allowed_txt)
EndIf
$Video_IsCountryAllowed = _YTApi_IsCountryAllowed($Video_ID, "US")
If Not @error Then
MsgBox(0, "Is this country code allowed?", "Country Code: 'US' is allowed!")
EndIfHi! YTAPI v.1.0.0.rar