Easy Youtube

This package provides a simple and convenient solution for working with YouTube in your Flutter applications. It offers a range of functionalities to handle YouTube videos effortlessly.

How to get the API Key

  • Enable YouTube Data API v3 into your project from GCP.
  • Create an API Key from GCP.

How to use

How to get youtube video id

final youtube =
    Youtube(url: 'https://www.youtube.com/watch?v=YBmFxBb9U6g');

print('id: ${youtube.getVideoId()}');

How to get youtube video information

final youtube =
    Youtube(url: 'https://www.youtube.com/watch?v=YBmFxBb9U6g');

final snippet = await youtube.getSnippet(apiKey: '___xxx___');

print('snippet: $snippet');

Libraries

easy_youtube