<?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 Web API artist top tracks endpoint is requiring &amp;quot;market&amp;quot; as mandatory request parameter in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5570312#M8992</link>
    <description>&lt;P&gt;Even if in the documentation is explicitly mentioned that "&lt;SPAN&gt;If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter&lt;/SPAN&gt;" (see&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-an-artists-top-tracks" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/get-an-artists-top-tracks&lt;/A&gt;),&lt;/P&gt;&lt;P&gt;Given a valid user access token is specified,&lt;/P&gt;&lt;P&gt;when no "market" request parameter is provided,&lt;/P&gt;&lt;P&gt;then the get Artist's Top Tracks endpoint is returning error 400 "missing country parameter"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the "market" request parameter is provided, then the API works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of failing call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;curl \
    -i \
    -X GET \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    "https://api.spotify.com/v1/artists/${ARTIST_ID}/top-tracks"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of successful call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;curl \
    -i \
    -X GET \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    "https://api.spotify.com/v1/artists/${ARTIST_ID}/top-tracks?market=IT"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other endpoints like "Search" (see: &lt;A href="https://developer.spotify.com/documentation/web-api/reference/search" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/search&lt;/A&gt;) are correctly treating the "market" request parameter as optional&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 17:40:59 GMT</pubDate>
    <dc:creator>muusic3</dc:creator>
    <dc:date>2023-04-26T17:40:59Z</dc:date>
    <item>
      <title>Web API artist top tracks endpoint is requiring "market" as mandatory request parameter</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5570312#M8992</link>
      <description>&lt;P&gt;Even if in the documentation is explicitly mentioned that "&lt;SPAN&gt;If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter&lt;/SPAN&gt;" (see&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-an-artists-top-tracks" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/get-an-artists-top-tracks&lt;/A&gt;),&lt;/P&gt;&lt;P&gt;Given a valid user access token is specified,&lt;/P&gt;&lt;P&gt;when no "market" request parameter is provided,&lt;/P&gt;&lt;P&gt;then the get Artist's Top Tracks endpoint is returning error 400 "missing country parameter"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the "market" request parameter is provided, then the API works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of failing call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;curl \
    -i \
    -X GET \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    "https://api.spotify.com/v1/artists/${ARTIST_ID}/top-tracks"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of successful call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;curl \
    -i \
    -X GET \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    "https://api.spotify.com/v1/artists/${ARTIST_ID}/top-tracks?market=IT"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other endpoints like "Search" (see: &lt;A href="https://developer.spotify.com/documentation/web-api/reference/search" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/search&lt;/A&gt;) are correctly treating the "market" request parameter as optional&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:40:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5570312#M8992</guid>
      <dc:creator>muusic3</dc:creator>
      <dc:date>2023-04-26T17:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5572004#M9021</link>
      <description>&lt;P&gt;I definitely think there is a bug here with user markets. Not the exact same issue, but I'm trying to use the player/currently-playing endpoint, and without specifying any market, I'm getting weird behaviour where I receive the song name, but no `external_url` for it, because the song is available for the user's market, but not elsewhere (like the app's server region).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 23:58:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5572004#M9021</guid>
      <dc:creator>ItsMikeTwitch</dc:creator>
      <dc:date>2023-04-28T23:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5572862#M9037</link>
      <description>&lt;P&gt;Just noticed that a similar issue has already been reported in Dec '22 here:&amp;nbsp;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Get-Artists-Top-Tracks-Country-is-required/m-p/5478183/highlight/true#M7432" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Get-Artists-Top-Tracks-Country-is-required/m-p/5478183/highlight/true#M7432&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 17:43:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5572862#M9037</guid>
      <dc:creator>muusic3</dc:creator>
      <dc:date>2023-04-30T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5612962#M10088</link>
      <description>&lt;P&gt;I'm having this issue too&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 14:06:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5612962#M10088</guid>
      <dc:creator>sassy-in-glasse</dc:creator>
      <dc:date>2023-07-22T14:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5733132#M11808</link>
      <description>&lt;P&gt;I have the same issue too. For now I solved it by adding the country parameter as such ?country=HN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My request endpoint &lt;span class="lia-unicode-emoji" title=":down_arrow:"&gt;⬇️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fetch(
  'https://api.spotify.com/v1/artists/53XhwfbYqKCa1cC15pYq2q/top-tracks?country=HN'
  {
    headers: { Authorization: 'Bearer Z4ga...9lk' }
  }
)&lt;/LI-CODE&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>Fri, 08 Dec 2023 15:14:25 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5733132#M11808</guid>
      <dc:creator>pauldvlp</dc:creator>
      <dc:date>2023-12-08T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5733901#M11813</link>
      <description>&lt;P&gt;When using Client Credentials, you'll need to specify the market. Else, you should use a Authorization Code flow.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 14:04:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5733901#M11813</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-12-08T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734075#M11815</link>
      <description>&lt;P&gt;Yes, currently I'm using the&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/code-flow" target="_blank" rel="noopener"&gt;Authorization Code&lt;/A&gt;&amp;nbsp; method, and with this method I have the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:05:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734075#M11815</guid>
      <dc:creator>pauldvlp</dc:creator>
      <dc:date>2023-12-08T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734267#M11817</link>
      <description>&lt;P&gt;I don't see you using the authentication token in your code snipped.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 14:42:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734267#M11817</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-12-08T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Web API artist top tracks endpoint is requiring "market" as mandatory request paramete</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734345#M11818</link>
      <description>&lt;P&gt;My bad, I fixed it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:16:11 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-artist-top-tracks-endpoint-is-requiring-quot-market-quot/m-p/5734345#M11818</guid>
      <dc:creator>pauldvlp</dc:creator>
      <dc:date>2023-12-08T15:16:11Z</dc:date>
    </item>
  </channel>
</rss>

