# Playing Songs from Spotify Dataset

**URL:** <https://forum.code.org/t/playing-songs-from-spotify-dataset/34049>\
**Category:** Website and Tools Questions\
**Created:** [January 14, 2021, 11:31pm UTC](https://forum.code.org/t/playing-songs-from-spotify-dataset/34049 "2021-01-14T23:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean.glantz](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sean.glantz](https://forum.code.org/u/sean.glantz)\
**Post date:** [January 14, 2021, 11:31pm UTC](https://forum.code.org/t/playing-songs-from-spotify-dataset/34049/1 "2021-01-14T23:31:00Z")

</div>

Student is trying to create an app that plays music using Spotify charts provided in App Lab Data. The chart has a URL column, but the URLs are not .mp3 and therefore does not seem to work with the playSound() command. Is there another way to do that within the app, or is window.open() the best option?

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [January 15, 2021, 1:44am UTC](https://forum.code.org/t/playing-songs-from-spotify-dataset/34049/2 "2021-01-15T01:44:02Z")

</div>

Since there is no direct access to the mp3 files, window.open() might be the best option.

---

<div class="post-metadata">

**Author:** ![s.loran.cook](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@s.loran.cook](https://forum.code.org/u/s.loran.cook)\
**Post date:** [January 6, 2022, 2:17am UTC](https://forum.code.org/t/playing-songs-from-spotify-dataset/34049/3 "2022-01-06T02:17:44Z")

</div>

More documentation on the Spotify API is here, but it looks like playing a song in App Lab is probably not supported: [Web API Tutorial | Spotify for Developers](https://developer.spotify.com/documentation/web-api/quick-start/)

---

<div class="post-metadata">

**Author:** ![sean.glantz](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sean.glantz](https://forum.code.org/u/sean.glantz)\
**Post date:** [January 6, 2022, 5:08am UTC](https://forum.code.org/t/playing-songs-from-spotify-dataset/34049/4 "2022-01-06T05:08:08Z")

</div>

Thanks for this! I wouldn’t be surprised if this comes up again soon as my students start to dive into their creative tasks this spring.
