filter custom post in rest api with custom function

I mean you need to query by your custom taxonomy (eg. songs_categories, or whatever you named it in your register_taxonomy() function) and then by the term.

&filter[taxonomy]=songs_categories&filter[term]=artist

PS: In my context I filter via custom filter, a plugin that enhance the API. You find all information on the repo.