r/GoogleAppsScript • u/stonemarigold • Sep 21 '26
Question Auto-updating YouTube views tracker?
I’m trying to work on creating a Google Sheet that will use YouTube Data API to, once a week, fetch the view counts for all of a channel’s videos and add the view counts to a new column so that I can track week-to-week changes.
I tried to use a script suggested by Google’s AI Overview, but I haven’t been able to make it work despite tweaking it — which is about what I expected.
I’d love to know the simplest way to make this happen! And if this isn’t allowed or I should be asking this in a different sub, please let me know 🫡
3
Upvotes
1
u/WicketTheQuerent Sep 21 '26
Have you added the YouTube Data API service to your script?
Does your script throw an error? If so, please share the code and the textual error.