YouTube Namespace Reference
The YouTube namespace provides YouTube-specific metadata for RSS feeds, enabling identification of YouTube videos and channels within RSS feeds.
Namespace URI | http://www.youtube.com/xml/schemas/2015 |
---|---|
Prefix | <yt:*> |
Available in | Atom |
Structure
INFO
TDate
represents date fields in the type definitions. When parsing, dates are returned as strings in their original format (see Parsing › Handling Dates for more details). When generating, dates should be provided as JavaScript Date
objects.
ts
export type Item = {
videoId?: string
channelId?: string
}
export type Feed = {
channelId?: string
playlistId?: string
}
Related
- Parsing Namespaces - How namespace parsing works