> For the complete documentation index, see [llms.txt](https://docs.feedotter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.feedotter.com/newsletters/content-sources/youtube.md).

# YouTube

### Create a new YouTube Content Source

* Go to **Settings** > **Content Sources** > select **New Content Source**.
* Under **Platform**, select **YouTube**. Then give your content source a **name.**
* Next we need to find the appropriate YouTube feed for our channel or playlist.

***

### Finding URLs for YouTube Channels and Playlists

We need to locate the numeric id for your channel and/or playlists. Once you have identified the id you can append it to the following url samples and enter that into the **Feed Url** input in the Feedotter interface.

```
//Example channel video feed
https://www.youtube.com/feeds/videos.xml?channel_id=<yourchannelid>

//Example playlist video feed
https://www.youtube.com/feeds/videos.xml?playlist_id=<yourplaylistid>
```

***

### Extracting the IDs You Need

FeedOtter uses the YouTube **channel ID** or **playlist ID** to build the correct RSS feed URL.

#### **A. Channel IDs**

* **If your URL includes `/channel/`** — The ID is everything after `/channel/`.\
  Example:

  ```
  https://www.youtube.com/channel/UC1234567890ABCDEF
  Channel ID: UC1234567890ABCDEF
  ```
* **If your URL uses a custom handle (`@name`)** —\
  You’ll need to look up the numeric channel ID:
  1. Go to the channel’s main page.
  2. Right-click and select **View Page Source**.
  3. Search for the text  `rss` (Ctrl+F).
  4. Copy the long ID string after "`channel_id="...`

     ```
     e.g. channel_id=UCauucVdZyf_0oRLlIu9nfxP
     ```

#### **B. Playlist IDs**

* Found after `list=` in the playlist URL.\
  Example:

  ```
  https://www.youtube.com/playlist?list=PL6cg6pbzNzX-EIBhLbNwQt6r-uvGRJat1
  Playlist ID: PL6cg6pbzNzX-EIBhLbNwQt6r-uvGRJat1
  ```

***

### 3. Building Your YouTube RSS Feed

Now that you have the numeric id plug it into one of these standard formats to get the **Feed Url** to use in Feedotter.

| Source Type       | Example Feed URL                                                                    |
| ----------------- | ----------------------------------------------------------------------------------- |
| **Channel Feed**  | `https://www.youtube.com/feeds/videos.xml?channel_id=< YOUR NUMERIC CHANNEL ID >`   |
| **Playlist Feed** | `https://www.youtube.com/feeds/videos.xml?playlist_id=< YOUR NUMERIC PLAYLIST ID >` |

Paste this RSS feed URL into **FeedOtter → Content Sources → YouTube** to automatically pull your latest videos into your newsletter.

FeedOtter will now check this feed for new videos and import them automatically.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.feedotter.com/newsletters/content-sources/youtube.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
