# Latest Youtube Video

**URL:** <https://extensions.streamer.bot/t/latest-youtube-video/118>\
**Category:** Approved\
**Tags:** chat, twitch\
**Created:** [June 30, 2023, 12:22am UTC](https://extensions.streamer.bot/t/latest-youtube-video/118 "2023-06-30T00:22:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TerrierDarts](https://extensions.streamer.bot/user_avatar/extensions.streamer.bot/terrierdarts/32/8_2.png) [@TerrierDarts](https://extensions.streamer.bot/u/TerrierDarts)\
**Post date:** [June 30, 2023, 12:22am UTC](https://extensions.streamer.bot/t/latest-youtube-video/118/1 "2023-06-30T00:22:41Z")

</div>

# Description

This will post your latest YouTube video to chat. This extension has had a slight update since the video but be sure to read the documentation.

# Tutorial

[![](https://extensions.streamer.bot/uploads/default/original/1X/fd618c055a7b147abeb3c1a0d9aad70f3ade26c4.jpeg "Latest Youtube Video Pull with Streamerbot!") ](https://www.youtube.com/watch?v=PuIyU9dYTK4)

# Import Code

[LatestYouTubeVideo.sb](https://extensions.streamer.bot/uploads/short-url/cRaWuQPghru9z5XiB7bpqmCjzqg.sb) (1.2 KB)

# Installation

In Streamer.bot in select `Import` from the top left and import the file.

You will need to update, the FetchUrl Sub-Action with your own Channel ID, to get this go onto YouTube then visit Settings, and Advanced Settings. Then replace `<YOUR ID HERE>` with your own Channel ID

# Configuration

You can edit what the Output message is, using url Params you can edit the what the FetchURL returns, under the argument `%latestvid%`.

As mentioned you can also add some additional URL Params if you wish.

You can find more about them here [DecAPI Docs](https://docs.decapi.me/youtube?endpoint=latest_video)

However here are a few highlights.

| URL Param | Purpose |
| --- | --- |
| `no_livestream` | Will exclude any currently _active_ livestreams. Stream VODs are generally _not affected_ by this setting, unless it’s a recently completed livestream (due to caching) |
| `no_shorts` | Will exclude any videos shorter than 1 minute (60 seconds), also known as ‘Shorts’. |
| `include` | Only include videos that contain the specified text in the _video title_ . This is case-insensitive. |
