# How to make a Youtube API Music Player?

**URL:** https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417
**Category:** Questions about Thunkable X
**Tags:** beginner, webapi
**Created:** [January 28, 2021, 6:20pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417 "2021-01-28T18:20:00Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![fatouwaprbj](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fatouwaprbj](https://community.thunkable.com/u/fatouwaprbj)
#### Post date: [January 28, 2021, 6:20pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/1 "2021-01-28T18:20:00Z")

</div>

Hi!

I’m new to Thunkable and I’m trying to create a music player app kind of like the [Musi App](https://apps.apple.com/us/app/musi-simple-music-streaming/id591560124) and [Stream Squid](https://streamsquid.com/#/browse/newrel) that uses the Youtube API to play music.

I tried to use playlist embed links in the web viewer component, but it doesn’t work for certain videos. I get a screen that looks like this

 ![Screen Shot 2021-01-28 at 6.12.35 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d06336f5ea52bbf40cd7c5943209b244feccae8.png)

How would I go about either using the Youtube Data API or Youtube Player API to incorporate YouTube Playlists on my app like Musi or Stream Squid? If it’s not possible, what other options do I have to create a music player without downloading a bunch of MP3 files?

Thanks!

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 28, 2021, 6:55pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/2 "2021-01-28T18:55:59Z")

</div>

Check this from @darren

[![](https://img.youtube.com/vi/M9o6XuqjVCU/maxresdefault.jpg "Hacking the YouTube API to Find YOUR Most Liked Thunkable Tutorials") ](https://www.youtube.com/watch?v=M9o6XuqjVCU)

---

<div class="post-metadata">

### Author: ![fatouwaprbj](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fatouwaprbj](https://community.thunkable.com/u/fatouwaprbj)
#### Post date: [January 29, 2021, 1:38pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/4 "2021-01-29T13:38:01Z")

</div>

Thanks for the video! I had a quick run through, but it looks like it makes you exit the app to go to YouTube and the selected video. Is there a way I could play the YouTube video inside my app like the Musi app?

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [January 29, 2021, 3:21pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/5 "2021-01-29T15:21:31Z")

</div>

you can use web viewer instead open link block

---

<div class="post-metadata">

### Author: ![fatouwaprbj](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fatouwaprbj](https://community.thunkable.com/u/fatouwaprbj)
#### Post date: [January 29, 2021, 4:51pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/6 "2021-01-29T16:51:48Z")

</div>

I’m currently using the Webviewer and change URL components that picks randomly from a list of playlist. My blocks look like this:

 ![Screen Shot 2021-01-29 at 4.50.35 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f558132a1953434a4498afb5ca1dda5c8c6b82be.png)

The blocks and the links work perfectly, it’s just that YouTube isn’t allowing the video to play in my app

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 29, 2021, 10:49pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/7 "2021-01-29T22:49:56Z")

</div>

> [@fatouwaprbj](#):
>
> it’s just that YouTube isn’t allowing the video to play in my app

Why _would_ Youtube allow this? From your first screenshot it looks like your using web testing - is that right?

Have you tried installing your app yet?

---

<div class="post-metadata">

### Author: ![fatouwaprbj](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fatouwaprbj](https://community.thunkable.com/u/fatouwaprbj)
#### Post date: [February 1, 2021, 10:35am UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/8 "2021-02-01T10:35:05Z")

</div>

Yeah I have been using a youtube embed link in the web viewer to play the videos. I’ve tried installing my app, but even then I can’t play the videos.

Should I keep trying to use Youtube to play music, or should I find another platform to do so?

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [February 1, 2021, 10:54am UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/9 "2021-02-01T10:54:55Z")

</div>

> [@fatouwaprbj](#):
>
> Should I keep trying to use Youtube to play music

I’d have a read of their terms and conditions - perhaps there’s a paid version of the API for streaming music?

Since the business model for their free service revolves around serving ads to listeners I wouldn’t think that they’d just let developers bypass this.

I’m not a YouTube expert, that’s just an educated guess.

---

<div class="post-metadata">

### Author: ![don.soa1](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@don.soa1](https://community.thunkable.com/u/don.soa1)
#### Post date: [November 19, 2023, 7:03am UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/10 "2023-11-19T07:03:44Z")

</div>

so did a find a way or not

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/how-to-make-a-youtube-api-music-player/1073417/11 "2024-11-08T13:30:29Z")

</div>


