regexgoogle-sheetsweb-scrapingyoutuberegex-replace

How would I import YouTube video views into google sheets?


I have a list of videos for which I want to easily see the number of views. Is there a way to do that with REGEXREPLACE, or some other way?


Solution

  • try:

    =REGEXEXTRACT(QUERY(FLATTEN(IMPORTDATA(A1)); 
     "where Col1 starts with 'viewCount'"; ); "\d+")*1
    

    enter image description here