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

Some API calls currently don't support "locale" param

Some API calls currently don't support "locale" param

Some API calls currently don't support "locale" param. Calls with local content should have this "locale" param.

Some calls such as Get User's Top Items, artist name, title name and album name should be localized. For now, if I included locale param, I'll get a 400 invalid request error. So I have get local content by sending another API call but this will increase server costs.

Reply
3 Replies

Do you mean 'market'? But yes, not every endpoint has the market parameter.

No, I mean locale, for example: locale=zh-CN, in different locale,  artist name, title name and album name might be different.

I tested some more API calls, it seems currently locale param won't affect playlist name, description and image.

For example, when I use the param locale=zh-CN, I still got English title and description instead of Chinese ones.

And the image is also the English version (https://wrapped-images.spotifycdn.com/image/yts-2022/large/your-top-songs-2022_large_en.jpg), this should be replaced with Chinese version (https://wrapped-images.spotifycdn.com/image/yts-2022/large/your-top-songs-2022_large_zh.jpg)

I also tried some other locales such as fr-FR, but still not working, only returns English version.

FYI, with locale param, other responses (track info, album info, artist info) are localized, only playlist title, description, and image are not localized.

Suggested posts