Announcements

Help Wizard

Step 1

NEXT STEP

Web API Search endpoint returns `null` items in some cases

Web API Search endpoint returns `null` items in some cases

For example this search query https://api.spotify.com/v1/search?query=artist%3A%22Coi+Leray%22+track%3A%22Do+Better%22&type=track&...

 

The response returns a tracklist containing only `null` items.

Full response:

 

 

 

 

{
  "tracks": {
    "href": "https://api.spotify.com/v1/search?query=artist%3A%22Coi+Leray%22+track%3A%22Do+Better%22&type=track&market=DE&offset=0&limit=20",
    "items": [
      null,
      null
    ],
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null,
    "total": 2
  }
}

 

 

 

 

 I can't see this behaviour documented anywhere, so I assume it is a bug.

Reply
2 Replies

4 years later, this is still the case...

I don't understand why they have never fixed their search. It's definitely a crucial endpoint 😕

Suggested posts

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random