modwedar / YoutubeDataApi

A Flutter package for fetching complete data from YouTube.
Apache License 2.0
10 stars 13 forks source link

Can we use this library in terminal.. Does is support pure dart? #1

Closed yashwant1999 closed 1 year ago

modwedar commented 1 year ago

Yes, You can

yashwant1999 commented 1 year ago

How to get particular youtube video link from searching query

modwedar commented 1 year ago

You can get video id then get youtube link String query = "Query"; YoutubeDataApi youtubeDataApi = YoutubeDataApi(); List videoResult = await youtubeDataApi.fetchSearchVideo(query); videoResult.forEach((element){ if(element is Video){ Video video = element; String? id = video.videoId; String link = "https://www.youtube.com/watch?v=$id"; } });