<?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 Episodes API not returning data in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Episodes-API-not-returning-data/m-p/5504316#M7957</link>
    <description>&lt;P&gt;I'm not getting episode info back from the API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are others seeing this? I tried using ids from the docs as well as ones I'm pulling off of urls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried hitting the API directly and through spotipy like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

auth_manager = SpotifyClientCredentials()
sp = spotipy.Spotify(auth_manager=auth_manager)

episodes = sp.episodes(["512ojhOuo1ktJprKbVcKyQ"])

print("Got episodes:", episodes) # Got episodes: {'episodes': [None]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 21:44:57 GMT</pubDate>
    <dc:creator>listenaddress</dc:creator>
    <dc:date>2023-02-12T21:44:57Z</dc:date>
    <item>
      <title>Episodes API not returning data</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Episodes-API-not-returning-data/m-p/5504316#M7957</link>
      <description>&lt;P&gt;I'm not getting episode info back from the API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are others seeing this? I tried using ids from the docs as well as ones I'm pulling off of urls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried hitting the API directly and through spotipy like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

auth_manager = SpotifyClientCredentials()
sp = spotipy.Spotify(auth_manager=auth_manager)

episodes = sp.episodes(["512ojhOuo1ktJprKbVcKyQ"])

print("Got episodes:", episodes) # Got episodes: {'episodes': [None]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 21:44:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Episodes-API-not-returning-data/m-p/5504316#M7957</guid>
      <dc:creator>listenaddress</dc:creator>
      <dc:date>2023-02-12T21:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Episodes API not returning data</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Episodes-API-not-returning-data/m-p/5504361#M7958</link>
      <description>&lt;P&gt;Ah, looks like this is a token issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I generate a token from the Spotify dev console and inject that into a request, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to properly generate a token in code. The follow gives me a token that doesn't work for the episodes endpoint:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;res = requests.post("https://accounts.spotify.com/api/token", data={
    "grant_type": "client_credentials"
}, headers={
    'Authorization': 'Basic ' + base64.b64encode((SPOTIFY_CLIENT_ID + ":" + SPOTIFY_CLIENT_SECRET).encode()).decode(),
    "Content-Type": "application/x-www-form-urlencoded"
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any of y'all know what might be my issue? Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 23:59:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Episodes-API-not-returning-data/m-p/5504361#M7958</guid>
      <dc:creator>listenaddress</dc:creator>
      <dc:date>2023-02-12T23:59:04Z</dc:date>
    </item>
  </channel>
</rss>

