Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Web API: Endpoint /search returns a URL for "next" that leads to 404

Web API: Endpoint /search returns a URL for "next" that leads to 404

Plan

Free

 

Country

Germany

 

My Question or Issue

Please see the following curl command:

 

curl -X "GET" "https://api.spotify.com/v1/search?q=Ope&type=artist&limit=40&offset=1960" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer MY-TOKEN"

 

 

It returns a result with the following data:

 

"limit": 40,
"next": "https://api.spotify.com/v1/search?query=Ope&type=artist&market=US&offset=2000&limit=40",
"offset": 1960,
"previous": "https://api.spotify.com/v1/search?query=Ope&type=artist&market=US&offset=1920&limit=40",
"total": 4065

 

 

If I then call the next URL "https://api.spotify.com/v1/search?query=Ope&type=artist&market=US&offset=2000&limit=40", the endpoint returns 404.

Reply
0 Replies

Suggested posts

Staff
Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

Staff
ModeratorStaff / Moderator/ 3 years ago  in Social & Random

Type a product name