Youtube API - What do we need to do to store data for more than 30 days?

Viewed 185

We want to store data retrieved using YouTube Data API or YouTube Analytics API for more than 30 days.

The acquired data will be used within our web service.

However, according to the developer policy (https://developers.google.cn/youtube/terms/developer-policies#e.-handling-youtube-data-and-content), it says:

  1. Refreshing, Storing, and Displaying API Data

To be clear, an API Client must not store statistics retrieved as Non-Authorized Data for more than 30 days.

For example, the following sites display subscriber data and views over 30 days ago. https://www.noxinfluencer.com/youtube/channel/UClLV6D8S4CrVJL64-aQvwTw

In short, we also want to do what we are doing on this site.

What do you do to store for more than 30 days? Also, is there a way to get past data?

1 Answers

You need to read the full sentence.

To be clear, an API Client must not store statistics retrieved as Non-Authorized Data for more than 30 days. For example, an API Client must not store the subscriber count for a YouTube channel for more than 30 days without authorization from the channel owner.

The first key term here is Non-Authorized if you are not authorizing the user who owns the channel. So you are in fact using an api key to access public data about a YouTube channel. Then you may not store the data for more then 30 days. Basically because you do not have the owners permission to collect statistical data on their YouTube channel.

If you have however used Oauth2 to authorize the user who owns the channel they have given you their consent to store the data with in your app. The you can store it longer then thirty days.

If it is public data then I would say that you could store a rounded up or down number then it would no longer be the exact number and should get you around the storing the exact number for thirty days.

Monday total is 22, in thirty days round it down to 20. Tuesday total is 29, in thirty das round it up to 30.

You may want to contact a lawyer to see if this is a valid solution or not. IMO (not a lawyer) This is the best you can do unless you are authorizing the user.

Related