<?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: Questions about local files and the API in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Questions-about-local-files-and-the-API/m-p/7125068#M18781</link>
    <description>&lt;P&gt;I did some additional looking/testing and was able to answer my questions. Leaving what I found here in case it helps future travelers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Recently Played endpoint does not appear to return local files at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that the only guaranteed metadata is the track name and duration. If a track name is not defined in the file metadata, it appears that the name of the file is used. In my testing, I noticed that if an album or artist was not defined in the metadata, the names for these would return as empty strings instead of null. Unsure if that's consistent behavior or if that's just because of the way my files were created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URI format is actually documented (&lt;A href="https://developer.spotify.com/documentation/web-api/concepts/playlists#understanding-the-local-file-uri" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/concepts/playlists#understanding-the-local-file-uri&lt;/A&gt;), so it can safely be assumed that this is consistent. In my testing, I did find that if the artist name and album name are not provided, those are represented as empty strings in the URI (example:&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;spotify:local:::Track+Name:Duration&lt;/FONT&gt;).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 12:34:41 GMT</pubDate>
    <dc:creator>AdamusEsq</dc:creator>
    <dc:date>2025-09-10T12:34:41Z</dc:date>
    <item>
      <title>Questions about local files and the API</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Questions-about-local-files-and-the-API/m-p/7124442#M18778</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;A few months ago, I wrote up a personal application for gathering some statistics about my listening. At the time, I didn't have a need to handle local files, but that will likely be changing soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few questions about local files, but was unable to find answers in the API docs, so I figured the forums would be a good place to ask &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is if the Recently Played endpoint returns local files. The API docs indicate that the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;is_local&lt;/FONT&gt; flag is returned, but that does not necessarily answer whether local files are actually included in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next question is what properties I can expect to pull back from the API for local files, and which properties may be null. In the limited testing I did earlier with the Playlist Items endpoint, I was able to get information like the names of the track and associated album and artists, but not much else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final questions are about the URI for the local file. It appears to be structured like so:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;spotify:local:Artist+Name:Album+Name:Track+Name:ID&lt;/SPAN&gt;&lt;/FONT&gt;. Is that format relatively consistent? What happens if metadata like the artist name or album name is not present?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 22:46:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Questions-about-local-files-and-the-API/m-p/7124442#M18778</guid>
      <dc:creator>AdamusEsq</dc:creator>
      <dc:date>2025-09-09T22:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about local files and the API</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Questions-about-local-files-and-the-API/m-p/7125068#M18781</link>
      <description>&lt;P&gt;I did some additional looking/testing and was able to answer my questions. Leaving what I found here in case it helps future travelers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Recently Played endpoint does not appear to return local files at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that the only guaranteed metadata is the track name and duration. If a track name is not defined in the file metadata, it appears that the name of the file is used. In my testing, I noticed that if an album or artist was not defined in the metadata, the names for these would return as empty strings instead of null. Unsure if that's consistent behavior or if that's just because of the way my files were created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The URI format is actually documented (&lt;A href="https://developer.spotify.com/documentation/web-api/concepts/playlists#understanding-the-local-file-uri" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/concepts/playlists#understanding-the-local-file-uri&lt;/A&gt;), so it can safely be assumed that this is consistent. In my testing, I did find that if the artist name and album name are not provided, those are represented as empty strings in the URI (example:&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;spotify:local:::Track+Name:Duration&lt;/FONT&gt;).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 12:34:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Questions-about-local-files-and-the-API/m-p/7125068#M18781</guid>
      <dc:creator>AdamusEsq</dc:creator>
      <dc:date>2025-09-10T12:34:41Z</dc:date>
    </item>
  </channel>
</rss>

