<?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: /recommendations invalid request, status 400 in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5887121#M12698</link>
    <description>&lt;P&gt;Thanks for the help!&lt;BR /&gt;Any plans to increase seed track limit in the api?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 14:38:53 GMT</pubDate>
    <dc:creator>oridolores</dc:creator>
    <dc:date>2024-02-15T14:38:53Z</dc:date>
    <item>
      <title>/recommendations invalid request, status 400</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287105#M3519</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Poland&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Linux pop-os&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using /recommendations route. In most cases it works pretty well. But sometimes when i provide more data it responds with invalid request and status 400. It doesn't work correctly in my app and in developer console too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This request below returns error with message: "invalid request", status: 400.&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK%2C5FF8xJSW4qUVU8bk79KYLT&amp;amp;seed_genres=classical%2Ccountry&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK%2C5FF8xJSW4qUVU8bk79KYLT&amp;amp;seed_genres=classical%2Ccountry&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above example i have two two seed_artists, seed_tracks and seed_genres each. I noticed that when i remove one seed e.g. from seed_genres then request works.&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK%2C5FF8xJSW4qUVU8bk79KYLT&amp;amp;seed_genres=classical&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK%2C5FF8xJSW4qUVU8bk79KYLT&amp;amp;seed_genres=classical&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it's not related to specific seed, I can even remove one artist from seed_artist. This again works correctly, and responds with result.&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK&amp;amp;seed_genres=classical%2Ccountry&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/recommendations?limit=10&amp;amp;market=PL&amp;amp;seed_artists=4NHQUGzhtTLFvgF5SZesLK&amp;amp;seed_genres=classical%2Ccountry&amp;amp;seed_tracks=0c6xIDDpzE81m2q797ordA%2C2Q9nA56DKKJhj4cHMbHlAS&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Same story is with seed_tracks.&lt;/P&gt;&lt;P&gt;Am I doing something wrong or is it a bug? I appreciate all help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:34:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287105#M3519</guid>
      <dc:creator>kamiloox</dc:creator>
      <dc:date>2021-11-01T09:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: /recommendations invalid request, status 400</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287625#M3524</link>
      <description>&lt;P class=""&gt;The total number of seed artists, seed tracks, and seed genres must add up to 5 or less.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 07:25:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287625#M3524</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-11-02T07:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: /recommendations invalid request, status 400</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287633#M3525</link>
      <description>Oh I see. I didn't understand this correctly. I thought that i can provide 5 seeds each so up to 15 in total. Anyway thanks much for help.</description>
      <pubDate>Tue, 02 Nov 2021 07:55:49 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5287633#M3525</guid>
      <dc:creator>kamiloox</dc:creator>
      <dc:date>2021-11-02T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: /recommendations invalid request, status 400</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5887121#M12698</link>
      <description>&lt;P&gt;Thanks for the help!&lt;BR /&gt;Any plans to increase seed track limit in the api?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:38:53 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recommendations-invalid-request-status-400/m-p/5887121#M12698</guid>
      <dc:creator>oridolores</dc:creator>
      <dc:date>2024-02-15T14:38:53Z</dc:date>
    </item>
  </channel>
</rss>

