Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Data Freshness Requirement

Solved!

Data Freshness Requirement

In the "Moving Through It: Getting An Application Reviewed" document, there is the line:

 

  • Implementing an intelligent caching mechanism within your extension can significantly reduce the reliance on frequent API calls. By storing and retrieving frequently accessed data locally, you can minimize the need for repetitive requests. However, it is crucial to keep the cached data up to date and respect Spotify's guidelines regarding data freshness.

I can't find the guidelines regarding data freshness. I'm hoping to develop an application that uses a caching layer and want to ensure that it complies with the guidelines. Should data be re-cached monthly/weekly/daily, and does it vary by category of data (artist, album, podcast etc.)?

Reply

Accepted Solutions
Marked as solution

There is a tiny section on caching at https://developer.spotify.com/documentation/web-api/concepts/api-calls

If you look at actual API responses you'll see they contain max-age values.

 

But of course, Spotify have absolutely no way to check you're respecting whatever "freshness" they've failed to make clear, so just be sensible. I tend to bump the max-age values they provide by a resource-dependent extra value. For example, track and album data is unlikely to change very often, in contrast to playlist contents. Hope that is somewhat helpful.

View solution in original post

1 Reply
Marked as solution

There is a tiny section on caching at https://developer.spotify.com/documentation/web-api/concepts/api-calls

If you look at actual API responses you'll see they contain max-age values.

 

But of course, Spotify have absolutely no way to check you're respecting whatever "freshness" they've failed to make clear, so just be sensible. I tend to bump the max-age values they provide by a resource-dependent extra value. For example, track and album data is unlikely to change very often, in contrast to playlist contents. Hope that is somewhat helpful.

Suggested posts

Let's introduce ourselves!

Hey there you, Ā  Yeah, you!Ā 😁 Ā  Welcome - we're glad you joined the Spotify Community! Ā  While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random