youtube_api 0.1.1 youtube_api: ^0.1.1 copied to clipboard
YoutubeAPI is a plugin which directly interects with youtube server. Supports Searching video and playlist.
youtube_api #
A Flutter plugin for fetching interacting with Youtube Server to fetch data using API. Supports iOS and Android.
Usage #
To use this plugin, add youtube_api
as a dependency in your pubspec.yaml file.
Example #
static String key = 'YOUR_API_KEY';
YoutubeAPI ytApi = new YoutubeAPI(key);
List<YT_API> ytResult = [];
String query = "Flutter";
ytResult = await ytApi.Search(query);
Default Per-page result is 10 and by default it you search for video only.
Type(String) can be video, playlist , channel
maxResults(int) can be 1 - 50
int max = 25;
String type = "channel";
YoutubeAPI ytApi = new YoutubeAPI(key,maxResults: max,Type: type);