Class SearchApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSearch for Item
-
Constructor Details
-
SearchApi
public SearchApi()
-
-
Method Details
-
search
Search for Item
Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string.
Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.- Parameters:
q-Your search query.
You can narrow down your search using field filters. The available filters are
album,artist,track,year,upc,tag:hipster,tag:new,isrc, andgenre. Each field filter only applies to certain result types.The
artistandyearfilters can be used while searching albums, artists and tracks. You can filter on a singleyearor a range (e.g. 1955-1960).
Thealbumfilter can be used while searching albums and tracks.
Thegenrefilter can be used while searching artists and tracks.
Theisrcandtrackfilters can be used while searching tracks.
Theupc,tag:newandtag:hipsterfilters can only be used while searching albums. Thetag:newfilter will return albums released in the past two weeks andtag:hipstercan be used to return only albums with the lowest 10% popularity.type-A comma-separated list of item types to search across. Search results include hits from all the specified item types. For example:
q=abacab&type=album,trackreturns both albums and tracks matching "abacab".- Returns:
- a
SearchRequestobject to build and execute the request
-