Currently, Spotify has a limit to how many tracks you can get from a playlist in one api request. (That limit being 100 songs). I read a similar article on here about instead calculating how many songs were on the playlist to determine how many requests I would need to make.
I'm having trouble finding a way to get the size of a playlist through the api. The closest thing I could find was a total value, which will only give me the amount of tracks that were returned from a request.
https://developer.spotify.com/documentation/web-api/reference/#/operations/get-playlist