Field filters using operators

Reply

Field filters using operators

gripz
Newbie

Hi!

How can I use in a query that includes filters like genre an operator? I want to get from the "https://api.spotify.com/v1/search" endpoint all the songs matching a keyword that are in at least 1 of the genres that I include in the search. Searching for 1 genre with "q=lil%20genre:"rock"" works well, but when I include more genres things get tricky. I tried "q=lil%20genre:"rock"%20OR%20genre:"rap"", or  "q=lil%20genre:"rock"%20OR%20"rap"", but nothing works. When I type that specific query I want to get songs that are either in the rock or rap genre and match the "lil" keyword. What should I do?

0 Replies
SUGGESTED POSTS