Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Search track by year range

Search track by year range

Plan

Premium

Country

 

Device

Web API

Operating System

Web API

 

My Question or Issue

Could you show an example of query for a track in a range of years? From the examples and the query form https://developer.spotify.com/documentation/web-api/reference/search I don't understand how to construct a query string

 

a%20year:1960-1970 returns the 2023 track (attached the files to the post) and constructs curl command

curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&type=track&market=EN&limit=1&offset=1'

a year:1960-1970 returns empty response for small offset  (attached the files to the post) and constructs curl command

curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=a+year%3A1960-1970&type=track&market=EN&limit=1&offset=1' 


*a*%20year:1960-1970 with wildcard also return random year and constructs curl command

curl --request GET \
  --url 'https://api.spotify.com/v1/search?q=*a*%2520year%3A1960-1970&type=track&market=EN&limit=1&offset=1'

Could you explain the specifics of performing a search

 

2025-07-26_11-34.png
2025-07-26_11-35.png
2025-07-26_11-45.png
Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you, Ā  Yeah, you!Ā 😁 Ā  Welcome - we're glad you joined the Spotify Community! Ā  While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random