Setup

Make sure you have all the required packages installed before using this data type. You can install them by running the following command in your terminal.

pip install -u "embedchain[youtube]"

Usage

To add any youtube video to your app, use the data_type as youtube_video. Eg:

from embedchain import App

app = App()
app.add('a_valid_youtube_url_here', data_type='youtube_video')