Skip to content

Search API

Romain Monteil edited this page Jan 4, 2019 · 2 revisions

Search API

Search API reference

Search for an Item

$response = $spotify->search([
    QueryParametersInterface::PARAMETER_QUERY => 'Muse',
    QueryParametersInterface::PARAMETER_TYPE => [
        'track',
        'artist',
        'playlist',
        'album'
    ],
    QueryParametersInterface::PARAMETER_MARKET => 'FR',
    QueryParametersInterface::PARAMETER_LIMIT => 1,
    QueryParametersInterface::PARAMETER_OFFSET => 1,
]);

Return an instance of SearchResponse

Clone this wiki locally