<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to generate a spotify code using web api? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452608#M6938</link>
    <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-original.png" style="width: 902px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147445i18A659F15932F3CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-original.png" alt="scannable-original.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-album.png" style="width: 359px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147446i4B076FF2BA10FEF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-album.png" alt="scannable-album.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just need to have the first bit of:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-partial.png" style="width: 472px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147447iAD30E32ED6274CB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-partial.png" alt="scannable-partial.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then add the URI onto the end like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-example.png" style="width: 829px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147448iEC799DCFD92769B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-example.png" alt="scannable-example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that helps, have added these links as images as this forum turns them into embeds if you don't!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 10:31:59 GMT</pubDate>
    <dc:creator>RoguePlanetoid</dc:creator>
    <dc:date>2022-11-02T10:31:59Z</dc:date>
    <item>
      <title>How to generate a spotify code using web api?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452329#M6901</link>
      <description>&lt;P&gt;Hi guys so I saw this&amp;nbsp;&lt;A href="https://www.spotifycodes.com/" target="_blank"&gt;https://www.spotifycodes.com/&lt;/A&gt;&amp;nbsp;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?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:00:49 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452329#M6901</guid>
      <dc:creator>nakunaru</dc:creator>
      <dc:date>2022-11-01T19:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a spotify code using web api?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452337#M6902</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 19:30:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452337#M6902</guid>
      <dc:creator>JBayudz</dc:creator>
      <dc:date>2022-11-02T19:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a spotify code using web api?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452608#M6938</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-original.png" style="width: 902px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147445i18A659F15932F3CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-original.png" alt="scannable-original.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-album.png" style="width: 359px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147446i4B076FF2BA10FEF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-album.png" alt="scannable-album.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just need to have the first bit of:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-partial.png" style="width: 472px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147447iAD30E32ED6274CB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-partial.png" alt="scannable-partial.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then add the URI onto the end like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scannable-example.png" style="width: 829px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/147448iEC799DCFD92769B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="scannable-example.png" alt="scannable-example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that helps, have added these links as images as this forum turns them into embeds if you don't!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:31:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452608#M6938</guid>
      <dc:creator>RoguePlanetoid</dc:creator>
      <dc:date>2022-11-02T10:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a spotify code using web api?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452770#M6940</link>
      <description>&lt;P&gt;I was also trying to figure out how to do it, but RoguePlanetoid beat me to it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 13:42:56 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5452770#M6940</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2022-11-03T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a spotify code using web api?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5453459#M6953</link>
      <description>&lt;P&gt;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!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:43:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-a-spotify-code-using-web-api/m-p/5453459#M6953</guid>
      <dc:creator>nakunaru</dc:creator>
      <dc:date>2022-11-04T14:43:42Z</dc:date>
    </item>
  </channel>
</rss>

