Note that apps built from the SDK don't have access to the full history, only up to some cutoff. I tried a couple over the years and wrongly concluded Spotify deleted your history after some time.
The data download does contain everything, which was a very pleasant surprise. I didn't think I'd ever see the data from the couple years gap in my last.fm.