curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/search \
--header 'x-rapidapi-key: <api-key>'{
"data": [
{
"id": "6habFhsOp2NvshLv26DqMb",
"name": "Despacito",
"uri": "spotify:track:6habFhsOp2NvshLv26DqMb",
"duration": 229360,
"artists": [
{
"name": "Luis Fonsi",
"uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG"
},
{
"name": "Daddy Yankee",
"uri": "spotify:artist:4VMYDCV2IEDYJArk749S6m"
}
]
}
],
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
}
}Search the content of the platform, like search video, music etc.
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/search \
--header 'x-rapidapi-key: <api-key>'{
"data": [
{
"id": "6habFhsOp2NvshLv26DqMb",
"name": "Despacito",
"uri": "spotify:track:6habFhsOp2NvshLv26DqMb",
"duration": 229360,
"artists": [
{
"name": "Luis Fonsi",
"uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG"
},
{
"name": "Daddy Yankee",
"uri": "spotify:artist:4VMYDCV2IEDYJArk749S6m"
}
]
}
],
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
}
}API Key
Search keyword for tracks, artists, albums
"despacito"
Offset for pagination
0
Number of results to return
1 <= x <= 10020
Type of search
song, playlist, album, artist, podcast_show, profile, genres_mood "song"
Was this page helpful?