Class SearchApi

    • Constructor Detail

      • SearchApi

        public SearchApi()
    • Method Detail

      • search

        public SearchRequest search​(String q,
                                    String type)

        Search for an Item

        Get Spotify Catalog information about albums, artists, playlists, tracks, shows or episodes that match a keyword string.

        Parameters:
        q -

        Search query keywords and optional field filters and operators.
        For example:
        q=roadhouse%20blues.

        type -

        A comma-separated list of item types to search across.
        Valid types are: album , artist, playlist, track, show and episode.
        Search results include hits from all the specified item types.
        For example: q=name:abacab&type=album,track returns both albums and tracks with "abacab" included in their name.

        Returns:
        a SearchRequest object to build and execute the request