First, you should go to the Spotify Privacy page. Request your Extended Streaming History and wait for Spotify to send your data to your email. If you have your data already downloaded, click the upload button and select all the files that starts with endsong_NUMBER and ends with .json in the folder you have downloaded.