r/spotifyapi

i’ve been working on a site that creates graphics and charts out of your listening data
▲ 37 r/spotifyapi+6 crossposts

i’ve been working on a site that creates graphics and charts out of your listening data

made a simple site that turns your music listening data into graphics

I’ve been building a site that uses Last.fm data to turn your listening history into things like charts and other visual summaries.

Mostly just wanted to make something fun for my last.fm stats lol. I’d really appreciate it if anyone will try it out and give me feedback or ideas, the site is chartwave.dev. Also, if you do enjoy the charts and graphics and stuff, please share it with friends and stuff if you’d like! Thanks!

u/Aggravating_Newt8536 — 19 hours ago

Accidentally made my Spotify smaller

What the title says. I don't know how to undo it, and I don't know what I did other than (I think) pressing something on my keyboard. (Stuff blocked out for privacy)

u/TimelyService67 — 11 days ago
▲ 1 r/spotifyapi+1 crossposts

Spotify API works locally but fails on Vercel — playlists return 0 tracks while Liked Songs works fine

I’m facing a weird Spotify API issue that only happens in production on Vercel.

Locally:

  • playlist fetch works perfectly
  • returns playlist name
  • correct total track count
  • all tracks load properly

On Vercel:

  • Liked Songs collection works correctly
  • playlist metadata loads
  • BUT playlist tracks.total always becomes 0
  • app thinks every playlist is empty

Example:
Locally:

  • Playlist Name: OK
  • Total Tracks: 42
  • Tracks returned: YES

Vercel:

  • Playlist Name: OK
  • Total Tracks: 0
  • Tracks returned: NO
  • “Playlist is empty”

Stack:

  • Python Flask backend
  • Spotify Web API
  • deployed on Vercel serverless functions

Things I already checked:

  • same Spotify account
  • same scopes
  • token exists
  • auth flow succeeds
  • playlist IDs are valid
  • liked songs endpoint works

What’s confusing:

  • only playlist track retrieval breaks
  • metadata still loads
  • issue happens only in production

Possible causes I’m considering:

  • serverless caching/state issue
  • expired/partial token during playlist fetch
  • pagination issue with serverless execution
  • private playlist permissions behaving differently on Vercel
  • API limitations on development mode

Has anyone seen Spotify playlists return tracks.total = 0 only in production/Vercel while working locally?

reddit.com
u/One_Reference612 — 11 days ago