How to get the number of hits when querying the youtube API?

Hello! How to get number of views of all videos that I receive via the youtube API?
Which should you use for this?
At the moment I have part=snippet, but it passed only basic information(name, etc). I tried to use statistics, but displays an error 400. Separated by commas the same trouble.
https://www.googleapis.com/youtube/v3/search?part=...
March 23rd 20 at 18:55
1 answer
March 23rd 20 at 18:57
statistics.viewcount patrolled
Is to specify in part? - araceli_Botsford commented on March 23rd 20 at 19:00
@araceli_Botsford, but only a token don't forget - Charles.Dicki commented on March 23rd 20 at 19:03
@Charles.Dicki, it gives an error - araceli_Botsford commented on March 23rd 20 at 19:06
https://developers.google.com/youtube/v3/docs/errors here 400еррор - Charles.Dicki commented on March 23rd 20 at 19:09
@Charles.Dicki, there's this error: unknownPart - the query Parameter part indicates an unknown value. - araceli_Botsford commented on March 23rd 20 at 19:12
can you throw your request in postman I look? or token important information will be - Charles.Dicki commented on March 23rd 20 at 19:15
https://www.googleapis.com/youtube/v3/search?part=snippet&q=$search&type=video&maxResults=10&fields=items(id,snippet(title,channelTitle,description))&order=date&regionCode=RU&key=
- araceli_Botsford commented on March 23rd 20 at 19:18
@araceli_Botsfordwithout tokeena will not see - Charles.Dicki commented on March 23rd 20 at 19:21
or you don't use the token? without token will not be - Charles.Dicki commented on March 23rd 20 at 19:24
@Charles.Dicki, you're talking about key? or something else? - araceli_Botsford commented on March 23rd 20 at 19:27
@araceli_Botsford, bearer or aces Kay - Charles.Dicki commented on March 23rd 20 at 19:30
@Charles.Dicki, And where to get them?
Actually, I want to sort the videos by date, then among these videos count views. As it is impossible to specify? Ie filter by date, then use php code to sort on the count? - araceli_Botsford commented on March 23rd 20 at 19:33
@Charles.Dicki, I understand, to get a token, you need to use Oauth? And if I get the token where to put it and how? - araceli_Botsford commented on March 23rd 20 at 19:36
https://developers.google.com/youtube/registering_... - Charles.Dicki commented on March 23rd 20 at 19:39
@Charles.Dicki, I got the token. Where and how to insert it? - araceli_Botsford commented on March 23rd 20 at 19:42
&key=[API_KEY] in the end of the link - Charles.Dicki commented on March 23rd 20 at 19:45

Find more questions by tags APIYouTube