Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
Hi guys so I saw this https://www.spotifycodes.com/ and notice that it uses a URI to generate a spotify code, I'm using the Spotify WEB API an can get the URI using fetch but is it possible to generate a spotify code using WEB API?
Solved! Go to Solution.
You can get a Spotify Code using the data from the Web API, just not directly, when you get a Spotify Code from that website it generates a URL like this one, which is the example from the site itself:
scannable-original.png
For items such as an Album, Artist and Playlist etc you get a Spotify URI from the response when using the Spotify WebApi such as this one for an album:
scannable-album.png
You just need to have the first bit of:
scannable-partial.png
Then add the URI onto the end like so:
scannable-example.png
The "jpeg" part can also be "svg" or "png" depending on which format you need, the "000000" is the background colour, in this case it is black but can be any HTML colour, "white" is the bar colour for the code which can be "black" and "640" is the width of the image which can be any needed. These are all the same values you see when creating the Spotify Code on the website.
Hopefully that helps, have added these links as images as this forum turns them into embeds if you don't!
You can get a Spotify Code using the data from the Web API, just not directly, when you get a Spotify Code from that website it generates a URL like this one, which is the example from the site itself:
scannable-original.png
For items such as an Album, Artist and Playlist etc you get a Spotify URI from the response when using the Spotify WebApi such as this one for an album:
scannable-album.png
You just need to have the first bit of:
scannable-partial.png
Then add the URI onto the end like so:
scannable-example.png
The "jpeg" part can also be "svg" or "png" depending on which format you need, the "000000" is the background colour, in this case it is black but can be any HTML colour, "white" is the bar colour for the code which can be "black" and "640" is the width of the image which can be any needed. These are all the same values you see when creating the Spotify Code on the website.
Hopefully that helps, have added these links as images as this forum turns them into embeds if you don't!
I was also trying to figure out how to do it, but RoguePlanetoid beat me to it.
cooool, thanks! I see that this isn't a part of their official documentation that's why I have troubles finding this out, anw thanks man, you a lifesaver!
Hey there you, Ā Yeah, you!Ā 😁 Ā Welcome - we're glad you joined the Spotify Community! Ā While you here, let's have a fun game and getā¦