Youtube api unknown part statistics

I am trying to get some of the statistics, and for some reason I am getting an error, and I like the way the documents say.

This is what I post:

https://www.googleapis.com/youtube/v3/search?key=AIzaSyBsobUXzJvjjuHZsMiv7SZAkzVcSgc8F2c&maxResults=5&part=id,snippet,statistics&q=test 

without some statistics, this works.

 { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "statistics", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "statistics" } } 
+5
source share
1 answer

You need to get the video ID in this call, and then send a new request for receipt with the statistical part to this URL:

https://www.googleapis.com/youtube/v3/videos?id=videoId&part=statistics

+6
source

All Articles