Skip to main content
GET
/
api
/
v1
/
suggestions
Search suggestions
curl --request GET \
  --url https://spotify-api31.p.rapidapi.com/api/v1/suggestions \
  --header 'x-rapidapi-key: <api-key>'
{
  "data": {
    "suggestions": [
      {
        "type": "text",
        "suggestion": "despacito justin bieber",
        "uri": "spotify:search:despacito+justin+bieber"
      },
      {
        "type": "text",
        "suggestion": "despacito",
        "uri": "spotify:search:despacito"
      },
      {
        "type": "track",
        "id": "6habFhsOp2NvshLv26DqMb",
        "name": "Despacito",
        "uri": "spotify:track:6habFhsOp2NvshLv26DqMb",
        "duration": 229360,
        "artists": [
          {
            "name": "Luis Fonsi",
            "uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG"
          }
        ]
      },
      {
        "type": "album",
        "id": "3Gq2Dme9nesdgoqNNlcN8O",
        "name": "Despacito Feat. Justin Bieber (Remix)",
        "uri": "spotify:album:3Gq2Dme9nesdgoqNNlcN8O",
        "artists": [
          {
            "name": "Luis Fonsi",
            "uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG"
          }
        ],
        "coverArt": [
          {
            "url": "https://i.scdn.co/image/ab67616d00001e02a6a335d613d151c626895a83",
            "width": 300,
            "height": 300
          }
        ]
      }
    ]
  },
  "message": "Success",
  "statusCode": 200,
  "pagination": {
    "total": 100,
    "hasMore": true,
    "continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
  }
}

Authorizations

x-rapidapi-key
string
header
required

API Key

Query Parameters

keyword
string
required

Search keyword for suggestions

Example:

"despati"

Response

Success

data
object
required
message
string
Example:

"Success"

statusCode
number
Example:

200

pagination
object