SpotifyCharts CSV export error for latest available date data

Reply
Highlighted

SpotifyCharts CSV export error for latest available date data

Visitor

Hi - My issue deals with www.spotifycharts.com

 

Specifically, when pulling data for the latest day.

 

For example, Chart is available for 7/29...today 7/30

 

When I try to download the chart for 7/29, I can click the "Download to CSV" button and hit the URL behind it (https://spotifycharts.com/regional/global/daily/latest/download)

 

The CSV downloads properly!

 

However, if I change the date from 7/29 to 7/28 in the dropdown...and then select 7/29 from the dropdown again, the "Download to CSV" url changes from the above to (https://spotifycharts.com/regional/global/daily/2020-07-29/download)

 

When you try to hit the above however, it doesn't download the CSV properly and errors out as it tries to download "download.html"

 

Please see screenshots below.

 

We use the /daily/[date]/download URL structure to pull charts data, but it seems to error out recently if you input the latest available chart date.

 

Please let me know if I can provide any more context

 

Latest 1.png

Latest 2.png

 

------

Date 1.png

Date 2.png

SUGGESTED POSTS