<?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 Search track by year range in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-track-by-year-range/m-p/7066179#M18514</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&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&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;Could you show an example of query for a track in a range of years? From the examples and the query form &lt;A href="https://developer.spotify.com/documentation/web-api/reference/search" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/reference/search&lt;/A&gt; I don't understand how to construct a query string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a%20year:1960-1970&lt;/EM&gt; returns the 2023 track (attached the files to the post) and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1'&lt;/LI-CODE&gt;&lt;P&gt;&lt;EM&gt;a year:1960-1970&lt;/EM&gt; returns empty response for small offset&amp;nbsp; (attached the files to the post)&amp;nbsp;and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=a+year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1' &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;*a*%20year:1960-1970 with wildcard also return random year&amp;nbsp;and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1'&lt;/LI-CODE&gt;&lt;P&gt;Could you explain the specifics of performing a search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Jul 2025 10:19:23 GMT</pubDate>
    <dc:creator>ravecat</dc:creator>
    <dc:date>2025-07-26T10:19:23Z</dc:date>
    <item>
      <title>Search track by year range</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Search-track-by-year-range/m-p/7066179#M18514</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&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web API&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;Could you show an example of query for a track in a range of years? From the examples and the query form &lt;A href="https://developer.spotify.com/documentation/web-api/reference/search" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/reference/search&lt;/A&gt; I don't understand how to construct a query string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a%20year:1960-1970&lt;/EM&gt; returns the 2023 track (attached the files to the post) and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1'&lt;/LI-CODE&gt;&lt;P&gt;&lt;EM&gt;a year:1960-1970&lt;/EM&gt; returns empty response for small offset&amp;nbsp; (attached the files to the post)&amp;nbsp;and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=a+year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1' &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;*a*%20year:1960-1970 with wildcard also return random year&amp;nbsp;and constructs curl command&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&amp;amp;type=track&amp;amp;market=EN&amp;amp;limit=1&amp;amp;offset=1'&lt;/LI-CODE&gt;&lt;P&gt;Could you explain the specifics of performing a search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 10:19:23 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Search-track-by-year-range/m-p/7066179#M18514</guid>
      <dc:creator>ravecat</dc:creator>
      <dc:date>2025-07-26T10:19:23Z</dc:date>
    </item>
  </channel>
</rss>

