Back to APIs list

YouTube API examples & templates

Use these vals as a playground to view and fork YouTube API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
AshishChaudhary10 avatar
AshishChaudhary10
YouTubeSearchApp
HTTP
YouTube all features
0
samkingco avatar
samkingco
getLatestYouTubeVideoFromChannel
Script
An interactive, runnable TypeScript val by samkingco
1
Pruthvi123 avatar
Pruthvi123
youtubeSearchApp
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
youtubefree avatar
youtubefree
solicitousAmethystMeadowlark
HTTP
An interactive, runnable TypeScript val by youtubefree
0
trob avatar
trob
youtubeSearchResults
HTTP
@jsxImportSource https://esm.sh/react
0
Eddy avatar
Eddy
understandingLavenderTiger
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
1
pdebie avatar
pdebie
youtubeFeed
Script
Fetches all videos for a Youtube channel, by using its RSS feed.
3
syncretizm avatar
syncretizm
youtubeEndpoint
HTTP
An interactive, runnable TypeScript val by syncretizm
0
zzz avatar
zzz
YoutubeTranscript
Script
An interactive, runnable TypeScript val by zzz
1
park avatar
park
YoutubeTranscript
Script
An interactive, runnable TypeScript val by park
0
wilt avatar
wilt
getYoutubeLinkFromPage
Script
An interactive, runnable TypeScript val by wilt
0
CoachCompanion avatar
CoachCompanion
efficientAmberUnicorn
HTTP
Forked from CoachCompanion/CoachCompanionbackup
0
nbbaier avatar
nbbaier
getVideoInfo
Script
Get YT Video Information Given a youtube video url, this val returns a small amount of information about the video: title, channel title, and the description. It uses the Youtube Data API v3, so you need to bring your own API key to get it to work (see here about setting up an API key).
0
eligosmlytics avatar
eligosmlytics
embedVideoWebPage
HTTP
@jsxImportSource https://esm.sh/react
1
pdebie avatar
pdebie
publishYoutubeToLemmy
Script
Publish a Youtube feed to Lemmy This allows you to automatically publish a Youtube channel to to a Lemmy community. Example usage: async function publishMyFeed() { try { return @pdebie.publishYoutubeToLemmy({ instance: "lemm.ee", auth: @me.secrets.lemmee, communityId: 23316, youtubeChannelId: "UChZgikssAJkmiQOv_sO-ngQ", lastSyncTime: @pdebie.spacexLemmyDb.lastSync, }); } finally { @pdebie.spacexLemmyDb.lastSync = new Date().toISOString(); } } Get a Youtube channel ID here . Make sure to set your lastSync properly, since otherwise you'll keep publishing new posts!
3
wilt avatar
wilt
getYoutubeLinkFromPageAPI
Script
An interactive, runnable TypeScript val by wilt
0