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

Search API incorrect result

Search API incorrect result

Plan

Premium

Country

UK

Operating System

macOS 12.0

 

Issue

Search API incorrect result for query 'Smok Dance Tonight'

https://developer.spotify.com/console/get-search-item/?q=Smok%20Dance%20Tonight&type=track&market=&l...

 

However on mac app result is correct, but API is different

https://api-partner.spotify.com/pathfinder/v1/query?operationName=searchDesktop&variables={"searchTerm":"Smok Dance Tonight","offset":0,"limit":1,"numberOfTopResults":5}&extensions={"persistedQuery":{"version":1,"sha256Hash":"75bbf6bfcfdf85b8fc828417bfad92b7cd66bf7f556d85670f4da8292373ebec"}}

 

response from mac app API:

(tracks still wrong, but app not showing them, it shows only album with correct songs)

Spoiler
{
	"data": {
		"search": {
			"albums": {
				"totalCount": 1,
				"items": [{
					"name": "Dance Tonight EP",
					"type": "EP",
					"uri": "spotify:album:7K1YOBLPaw1eQF1Wdet0ne",
					"artists": {
						"items": [{
							"uri": "spotify:artist:66cZLd2HGExEGjz1Bit0Hp",
							"profile": {
								"name": "Smok"
							}
						}]
					},
					"coverArt": {
						"sources": [{
							"url": "https://i.scdn.co/image/ab67616d00001e022f5e5807fa966c98aab5b2c2",
							"width": 300,
							"height": 300
						}, {
							"url": "https://i.scdn.co/image/ab67616d000048512f5e5807fa966c98aab5b2c2",
							"width": 64,
							"height": 64
						}, {
							"url": "https://i.scdn.co/image/ab67616d0000b2732f5e5807fa966c98aab5b2c2",
							"width": 640,
							"height": 640
						}]
					},
					"date": {
						"year": 2021
					}
				}]
			},
			"artists": {
				"totalCount": 0,
				"items": []
			},
			"episodes": {
				"totalCount": 0,
				"items": []
			},
			"genres": {
				"totalCount": 0,
				"items": []
			},
			"playlists": {
				"totalCount": 1,
				"items": [{
					"name": "That Scene in the Movies Where the Manic Pixie Dream Girl Dances While Smoking",
					"uri": "spotify:playlist:6ryuoUqd2uHwMegwSNBD0I",
					"description": ""Come on!! Let's have fun tonight!!!" Three months later she would be dead, but that didn't matter tonight. None of it mattered tonight. Just her and me, pressing against the storm. Some nights she would smile and say: "Baby no one can know me, I am not a thing that is meant to be known."",
					"images": {
						"items": [{
							"sources": [{
								"url": "https://i.scdn.co/image/ab67706c0000da84ad6338d143433b9489a35d45",
								"width": 640,
								"height": 640
							}]
						}]
					},
					"owner": {
						"name": "CB"
					}
				}]
			},
			"podcasts": {
				"totalCount": 0,
				"items": []
			},
			"topResults": {
				"items": [{
					"uri": "spotify:album:7K1YOBLPaw1eQF1Wdet0ne",
					"name": "Dance Tonight EP",
					"artists": {
						"items": [{
							"uri": "spotify:artist:66cZLd2HGExEGjz1Bit0Hp",
							"profile": {
								"name": "Smok"
							}
						}]
					},
					"coverArt": {
						"sources": [{
							"url": "https://i.scdn.co/image/ab67616d00001e022f5e5807fa966c98aab5b2c2",
							"width": 300,
							"height": 300
						}, {
							"url": "https://i.scdn.co/image/ab67616d000048512f5e5807fa966c98aab5b2c2",
							"width": 64,
							"height": 64
						}, {
							"url": "https://i.scdn.co/image/ab67616d0000b2732f5e5807fa966c98aab5b2c2",
							"width": 640,
							"height": 640
						}]
					},
					"date": {
						"year": 2021
					}
				}, {
					"uri": "spotify:playlist:6ryuoUqd2uHwMegwSNBD0I",
					"name": "That Scene in the Movies Where the Manic Pixie Dream Girl Dances While Smoking",
					"description": ""Come on!! Let's have fun tonight!!!" Three months later she would be dead, but that didn't matter tonight. None of it mattered tonight. Just her and me, pressing against the storm. Some nights she would smile and say: "Baby no one can know me, I am not a thing that is meant to be known."",
					"images": {
						"items": [{
							"sources": [{
								"url": "https://i.scdn.co/image/ab67706c0000da84ad6338d143433b9489a35d45",
								"width": 640,
								"height": 640
							}]
						}]
					},
					"owner": {
						"name": "CB"
					}
				}, {
					"uri": "spotify:track:39eY7VbkqwAuIBxkOyF8Ur",
					"id": "39eY7VbkqwAuIBxkOyF8Ur",
					"name": "...And the Cat Turned to Smoke",
					"album": {
						"uri": "spotify:album:6ZsMmLZL9wAphwKpVunXDD",
						"name": "Dance Tonight! Revolution Tomorrow!",
						"coverArt": {
							"sources": [{
								"url": "https://i.scdn.co/image/ab67616d00001e02c1843a827f650e35cbe79231",
								"width": 300,
								"height": 300
							}, {
								"url": "https://i.scdn.co/image/ab67616d00004851c1843a827f650e35cbe79231",
								"width": 64,
								"height": 64
							}, {
								"url": "https://i.scdn.co/image/ab67616d0000b273c1843a827f650e35cbe79231",
								"width": 640,
								"height": 640
							}]
						},
						"id": "6ZsMmLZL9wAphwKpVunXDD",
						"sharingInfo": {
							"shareUrl": "https://open.spotify.com/album/6ZsMmLZL9wAphwKpVunXDD?si=X4rX3EALQaOUkILmmR_DBQ"
						}
					},
					"artists": {
						"items": [{
							"uri": "spotify:artist:6tEdQbmg3bKE6IjmH5hO9d",
							"profile": {
								"name": "Orchid"
							}
						}]
					},
					"contentRating": {
						"label": "NONE"
					},
					"duration": {
						"totalMilliseconds": 316346
					},
					"playability": {
						"playable": true
					}
				}],
				"featured": []
			},
			"tracks": {
				"totalCount": 7,
				"items": [{
					"track": {
						"uri": "spotify:track:39eY7VbkqwAuIBxkOyF8Ur",
						"id": "39eY7VbkqwAuIBxkOyF8Ur",
						"name": "...And the Cat Turned to Smoke",
						"album": {
							"uri": "spotify:album:6ZsMmLZL9wAphwKpVunXDD",
							"name": "Dance Tonight! Revolution Tomorrow!",
							"coverArt": {
								"sources": [{
									"url": "https://i.scdn.co/image/ab67616d00001e02c1843a827f650e35cbe79231",
									"width": 300,
									"height": 300
								}, {
									"url": "https://i.scdn.co/image/ab67616d00004851c1843a827f650e35cbe79231",
									"width": 64,
									"height": 64
								}, {
									"url": "https://i.scdn.co/image/ab67616d0000b273c1843a827f650e35cbe79231",
									"width": 640,
									"height": 640
								}]
							},
							"id": "6ZsMmLZL9wAphwKpVunXDD",
							"sharingInfo": {
								"shareUrl": "https://open.spotify.com/album/6ZsMmLZL9wAphwKpVunXDD?si=X4rX3EALQaOUkILmmR_DBQ"
							}
						},
						"artists": {
							"items": [{
								"uri": "spotify:artist:6tEdQbmg3bKE6IjmH5hO9d",
								"profile": {
									"name": "Orchid"
								}
							}]
						},
						"contentRating": {
							"label": "NONE"
						},
						"duration": {
							"totalMilliseconds": 316346
						},
						"playability": {
							"playable": true
						}
					}
				}]
			},
			"users": {
				"totalCount": 0,
				"items": []
			}
		}
	}
}

 

 

 

 

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