# How to Connect the Spotify API and SDK to Create a Music Player

**URL:** https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464
**Category:** Questions about Thunkable X
**Tags:** beginner, help
**Created:** [February 10, 2021, 10:34am UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464 "2021-02-10T10:34:05Z")
**Posts on this page:** 9
**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: [February 10, 2021, 10:34am UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/1 "2021-02-10T10:34:06Z")

</div>

Hi!

I’m trying to create a music player app, and I want to use the [Spotify API](https://developer.spotify.com/documentation/web-api/) to get information about the music (artist, song length, playlists etc), and allow users of my app to create playlists through the app. I want to use the [Spotify Web Player SDK](https://developer.spotify.com/documentation/web-playback-sdk/) to play music in the app.

How would I go about connecting the Spotify API and SDK to my app? Is it possible?

Would I connect the API information to a data viewer list to display the information?

Would it make more sense to just make my own website using html and javascript that is connected to the spotify API and SDK, then connect it to the thunkable web viewer?

Thanks!

---

<div class="post-metadata">

### Author: ![aarav-work](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aarav-work/32/95738_2.png) [@aarav-work](https://community.thunkable.com/u/aarav-work)
#### Post date: [February 10, 2021, 10:38am UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/2 "2021-02-10T10:38:52Z")

</div>

Hello!

Today a read a old post about the same thing, thunkable had replied -

“We have a playlist on youtube about Web API”

Playlist Link - [APIs - YouTube](https://www.youtube.com/playlist?list=PLB89L9PPGIrzgD2b9Y0Lvmt_tQYrJSbFT)

---

<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 10, 2021, 11:01am UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/3 "2021-02-10T11:01:48Z")

</div>

Thanks for this, I’ve seen some of the web API videos but I’ve definitely not watched all of them. Do you have any idea how I could add the web playback sdk without having to create an entirely new website?

---

<div class="post-metadata">

### Author: ![aarav-work](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aarav-work/32/95738_2.png) [@aarav-work](https://community.thunkable.com/u/aarav-work)
#### Post date: [February 10, 2021, 12:21pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/4 "2021-02-10T12:21:08Z")

</div>

Well I have no idea about it, but in the description of the video I had seen a Github link to a list of 1000 APIs, listed by topic. See if you can find a music API.

Github Link: [GitHub - public-apis/public-apis: A collective list of free APIs for use in software and web development.](https://github.com/public-apis/public-apis)

---

<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 10, 2021, 6:22pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/5 "2021-02-10T18:22:47Z")

</div>

Hey @fatouwaprbj,

This very much looks like it’s for web browsers:

> The Web Playback SDK is a client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser via Encrypted Media Extensions. It’s the same technology we use to power our Web Player experience.

And specifically, mobile does not seem to be supported:

 ![Screenshot 2021-02-10 at 18.20.39](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff21f7218f550ff3cc0ef162cccbbaa5f8fec9d8.png)

---

<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 10, 2021, 8:05pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/6 "2021-02-10T20:05:06Z")

</div>

Alright, thanks for this! Guess I’m going to have to keep trying to find a new solution!

---

<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 10, 2021, 9:16pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/7 "2021-02-10T21:16:21Z")

</div>

No problem! Just a couple of questions for you as you continue to ideate around this:

1. Who are you building your app for?
2. How are you going to publish/distribute your app?

Or, in other words; what do your users need and how are you going to get it to them?

---

<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 10, 2021, 9:38pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/8 "2021-02-10T21:38:54Z")

</div>

I’m building this app for a really big passion project for my school. The main target market for my app is teens and I’m hoping to publish my app on both the Google Play Store and App Store (given there aren’t any bugs lol).

Although playing music is important for my app, it’s really just one feature of it. Because it’s not the main focus, I’ve been using a Youtube embed player with 24/7 live mixes in the web viewer (think lo-fi for studying videos on youtube). It isn’t the best solution in a UI perspective, but because of my limited knowledge of coding it’s pretty much all I can do now.

---

<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:29pm UTC](https://community.thunkable.com/t/how-to-connect-the-spotify-api-and-sdk-to-create-a-music-player/1090464/9 "2024-11-08T13:29:28Z")

</div>


