(self, query: str)
return suggestions
Returns a list of suggested items for the given query.
Returns a list of suggested items for the given query.
Returns a list of suggested items for the given query .
def get_search_suggestions(self, query: str) -> List[str]:
        """Returns a list of suggested items for the given query."""

        response = self.web_client.get(
            f"https://api-v2.soundcloud.com/search/queries", q=query
        )

        suggestions = [
            item.query
            for item in response.collection
            if not song_utils.is_forbidden(item.query)
        ]
        return suggestions
def get_search_suggestions ( self , query : str ) -> List [ str ] : response = self . web_client . get ( f"https://api-v2.soundcloud.com/search/queries" , q = query ) suggestions = [ item . query for item in response . collection if not song_utils . is_forbidden ( item . query ) ] return suggestions