cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aamir2021
Frequent Visitor

Youtube data api v3 (how to fetch videos with by using snippet + statistics)

Hi,

I have fetched video  "Xlookup" by using youtube data api v3 from Google Platform in power query through "https://youtube.googleapis.com/youtube/v3/search", where I have used snippet then it has shown videos however I wanted to get to fetch statistics as well, but when I try to use this snippet, statistics then it shows error.

 

However statistics data is coming for Xlookup videos in different query. but it is not coming in same in search URL.

How can I get video as search commond for statistics data as well ?

 

Below is the m language code for which I am using. 

Aamir2021_1-1633803020813.png

 

Aamir2021_2-1633803049925.png

 

Aamir2021_3-1633803101290.pngAamir2021_4-1633803126925.png

 

 

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Aamir2021 ,

Based on these two queries, what is your expected output seems not certain.

'when I try to use this snippet, statistics then it shows error.', what's error you have faced, I created the same queries like yours to get the same table but seems that not seen any error message in the queries.

 

In addition, what did the 'but it is not coming in same in search URL.' direct, perhaps can share more details about this issue.

 

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors