Get Recommendations
Developing
GET
/recommendations
category-browse
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/v1/recommendations?seed_artists=&seed_genres=&seed_tracks=' \
--header 'Authorization;'
Response Response Example
200 - Example 1
{
"seeds": [
{
"afterFilteringSize": 0,
"afterRelinkingSize": 0,
"href": "string",
"id": "string",
"initialPoolSize": 0,
"type": "string"
}
],
"tracks": [
{
"album": {
"album_group": "string",
"album_type": "string",
"artists": [
{
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"name": "string",
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"release_date": "string",
"release_date_precision": "string",
"restrictions": {
"reason": "string"
},
"total_tracks": 0,
"type": "string",
"uri": "string"
},
"artists": [
{
"external_urls": {
"spotify": "string"
},
"followers": {
"href": "string",
"total": 0
},
"genres": [
"string"
],
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"popularity": 0,
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"disc_number": 0,
"duration_ms": 0,
"explicit": true,
"external_ids": {
"ean": "string",
"isrc": "string",
"upc": "string"
},
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"is_local": true,
"is_playable": true,
"linked_from": {
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"type": "string",
"uri": "string"
},
"name": "string",
"popularity": 0,
"preview_url": "string",
"restrictions": {
"reason": "string"
},
"track_number": 0,
"type": "string",
"uri": "string"
}
]
}
Request
Query Params
limit
integer
optional
market
string
optional
from_token
. Provide this parameter if you want to apply Track Relinking. Because min_*
, max_*
and target_*
are applied to pools before relinking, the generated results may not precisely match the filters applied. Original, non-relinked tracks are available via the linked_from
attribute of the relinked track response.seed_artists
string
required
seed_artists
, seed_tracks
and seed_genres
.seed_genres
string
required
seed_artists
, seed_tracks
and seed_genres
.seed_tracks
string
required
seed_artists
, seed_tracks
and seed_genres
.min_acousticness
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_acousticness
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_acousticness
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_danceability
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_danceability
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_danceability
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_duration_ms
integer
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_duration_ms
integer
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_duration_ms
integer
optional
min_energy
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_energy
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_energy
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_instrumentalness
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_instrumentalness
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_instrumentalness
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_key
integer
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_key
integer
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_key
integer
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_liveness
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_liveness
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_liveness
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_loudness
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_loudness
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_loudness
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_mode
integer
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_mode
integer
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_mode
integer
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_popularity
integer
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_popularity
integer
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_popularity
integer
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_speechiness
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_speechiness
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_speechiness
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_tempo
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_tempo
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_tempo
number
optional
min_time_signature
integer
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_time_signature
integer
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_time_signature
integer
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.min_valence
number
optional
min_tempo=140
would restrict results to only those tracks with a tempo of greater than 140 beats per minute.max_valence
number
optional
max_instrumentalness=0.35
would filter out most tracks that are likely to be instrumental.target_valence
number
optional
target_energy=0.6
and target_danceability=0.8
. All target values will be weighed equally in ranking results.Header Params
Authorization
string
required
Responses
Modified at 2022-09-12 10:04:50