Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

Field filters using operators

Field filters using operators

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?

Reply
1 Reply

Hey all,

I'll bring topic up again since I have the same issue. Any ideas?

Thanks

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/ 5 years ago  in Social & Random