Why does Youtube shows 301+ views? - youtube

I am just curious about why does Youtube shows 301+ views. I think there must be some logic behind that. What it could be?
I have seen exact count of views lesser than 300 views as well as having count in several thousands and millions.

It can stay stuck for a while. This is a control procedure for preventing the use of bots, any video getting more than 301 views in a short period gets verified in terms of source of traffic. However views are still getting counted (logged) in the back-end and will appear when YouTube will unlock the view counts.

Answering myself, it is no longer the case and it's been resolved.
So whenever a new video used to upload it receives many likes including from bots. So to verify the legitimacy of likes YouTube counter used to stop after 300 likes to verify sources of likes.
Official release: https://mobile.twitter.com/YTCreators/status/628958720953819136

Related

'defaultPerDayPerProject' to 'default/CLIENT_PROJECT-1d' [duplicate]

I got new YouTube quotas approved. But there is one problem. They do not work. It appears to me that there are actually two of them. In fact, there are new quotas, but they are not.
What could it be and how can I get out of this situation? Thanks
Currently this appears to be an internal issue with the YouTube API.
When you get a quota extension, either the old 10k quota should either be removed or the new higher quota should be the one applied when you are making requests.
There appears to be a bug some where in the system. where you have two quotas and only the lower one is being applied and the higher one is being ignored.
I am in contact with the team and they are looking into it. I have not heard anything positive back yet only that they are still trying to diagnose the issue.
I'm going placing this as an answer here as it was the first question regarding this issue. I can close vote all other questions as duplicate to this one. There by keeping everything in one place.
Currently there are four.
YouTube api does not apply quota extension, quota still limited to 10k
'defaultPerDayPerProject' to 'default/CLIENT_PROJECT-1d'
Youtube data API not using the correct quota
Why am I getting quota exceeded with enough quota remaining
There is also a report on the issue forum
Quota Increase Not Working

Applying for Additional Quota for YouTube API as an Individual (without business info)

I recently began using the Youtube Data v3 API for a program that I'm writing which is purely for personal use. To give a brief summary of what it does, it checks the the live chat from my most recent (usually ongoing) livestream and performs actions based on certain keywords entered in chat (essentially commands for people to use from live chat). In order to do that, however, I have to constantly send requests to get a refreshed livechat. As it is now, it sends requests on 1 second intervals. I recently did a livestream to test out my program and it only took about 25 minutes for me to reach the daily quota limit of 10,000 units/day.
The request is:youtube.liveChatMessages().list(liveChatId=liveChatId,part="snippet")
It seems like every request I make costs 6 units, according to the math. I want to be able to host livestreams at lengths of up to 3 hours, which would require a significant quota increase. I'm aware that there is an option to fill out a form to request additional quota. However, it asks for business information such as a business name, business website, business mailing address, etc. Like I said before, I'm doing this for my own use only. I'm in no way part of a business, and just made my program as a personal project. Does anyone know if there's any way to apply for additional quota as an individual/hobbyist? If not, do you think just putting n/a in those fields would be acceptable? I did find another post where someone else had the exact same problem, but no one was able to give a helpful answer. Any advice would be greatly appreciated.
Unfortunately, and although only related, it seems as Google is for the money here. I also tried to do something similar myself (a very basic chat bot just reading the chat messages), and, although some other users on the net got some different results, they all have in common that, according to the doc how it should be done, all poll at this interval of about once a second (that's the timeout one get as part of the answer to a poll for new messages). I, along with a few others, got as most as about 5 minutes with polling once a second, some others, like you, got a few more minutes out of it. I changed the interval by hand in incrementing intervals of 5 seconds each: 5, 10, 15, etc... you get the picture. I can't remember on which value I finally tuned in, but I was only able to get about 2 1/2 hours worth with a rather long polling interval of just once every 10 seconds or so - still way enough for a simple chat bot just reading the chat. But also replying would had at least doubled the usage and hence halfed the time.
It's already a pain to get it working as an idividual as just setting up the required OAuth authentication requires one to at least provide basic information like providing a fixed callback and some legal and policy information. I always ended up in had it rejected with this standard reply "Your project seem to be for internal use only.". I even was able to got this G suite working (before it required payment) to set up an "internal" project (only possible if account belongs to a G suite organization account), but after I set up the OAuth login I got the error that my private account I wanted to use the bot on was not part of the organization and hence can't be used. TLDR: Just useless waste of time.
As far as I'm in for this for several months now there's just no way to get it done as a private individual for personal use. Yes, one can just set it up and have the required check rejected (as it uses the YouTube data API scopes), but one still stuck with that 10.000 units / day quota. Building your own powerful tool capable of doing more than just polling once every 10 to 30 seconds with just a minimum of interaction doesn't get you any further than just a few minuts, maybe one or two hours if you're lucky. If you want more you have to set up a business and pay for it - simple and short: Google wants you to pay for that service.
As Mixer got officially announced to be shut down on July 22nd you have exactly these two options:
Use one of the public available services like Streamlabs, Nightbot, etc ... They're backed by their respective "businesses" and by it don't seem to have those quota limits (although I just found some complaints on Streamlabs just from April - so about one month prior to when you posted this question where they admitted to had reached their limits - don't know if they already got it solved).
Don't use YouTube for streaming but rather Twitch - as Twitch doesn't have these limits and anybody is free to set up an API token either on the main account or on a second bot account (which is also explicitly explained in their docs). The downside of this are of course the objective sacrifices one has to suffer: a) viewers only have the quality of the streamer until one reaches at least affiliate b) caped at max 1080p60 with only 6.000kBit/s c) only short time of VOD storage
I myself wanted to use YouTube as my main platform (and currently do, but without my own stuff at the moment) and my own bot stuff and such as streaming on YouTube has some advantages over Twitch, but as YouTube wants me to pay what others (namely: Twitch) offer me for free (although overall not as good quality) it's an easy decision to make. Mixer looked promissing, as it also offered quite some neat features (overall better quality than Twitch, lower latency), but the requirements to get partner status were so high (2.000 followers along with another insane high number to reach) and Mixer itself just so little of a platform (I made the fun to count all the streamers and viewers - only a few hundred streamers with just a few 10.000s viewers the whole platform had less than some big Twitch channels on their own) - and now it's announced soon to be dead anyway.
Hope this may give you some input into what a small streamer has to consider and suffer from when chosing a platform - but after all what I experienced I have these information: Either do it like all the others: Stream on Twitch and use YouTube as an archive to export to from Twitch (although Twitch STILL doesn't have an auto-export of the latest VOD implemented - but I guess that could be done by some small script) - or if you want to stay on YouTube use some existing bot like Nightbot or any of the other services like Streamlabs.
If you get any other information on how to convince Google to increase the limit as an individual please let us know.

How to minimize youtube API credit usage?

We have an app that calculates some metrics from our users' videos on youtube, (about 400k-ish videos at present, rising steadily) - I can initially get the data about their uploads since our users are just arriving piecemeal every day, however keeping it updated every time people log in is absolutely killing our API credit usage (especially for very large channels with 1000s of videos). How can I just determine those videos that have CHANGED their snippet (title, description, tags) since we last asked? - It's very important to the app that changes to videos are reasonably quickly reflected in our users' metrics.
We already get the snippet for users channels in a paged way (50 per page, this seemed to cut our credit usage considerably), and I tried already using etags but it has had no effect on quota usage even if all the videos return 304 - I also searched the docs for a "modifiedDate" and other relevant terms, but I have so far found nothing. I also checked the etag when retrieving just the "id" part, however this etag doesn't change when I modify title, description, or tags....Lastly, we also have a request in to increase our quota, but there must be a better solution than that?
Please read my answer to a somewhat similar question. Note that the respective solution is by no means straightforward to implement, yet it is most likely what you're looking for. Also, I suppose that the activities endpoint may be of help as well.

iOS update number of views for a video file from server automatically

Video file loaded from server.
Video file has (number of views).
If any application user views that particular video the number of views should be incremented and updated.
If I am viewing that video and another user viewed that particular video, is it possible to automatically update the number of views without any user action.
If there is any possible solution AND is a good practice, what is the best approach to implement this using Objective-C?
I've seen some iOS apps updating the number of views for videos which keeps incrementing every second even if the internet connection is disabled, so I think that is a fake counter.
So I was going through a function call every 5 seconds to check the number of views for each video from the server, but I am not sure if it is a good practice, any suggestions?
Websockets are usually great for keeping things updated without any user interaction.
Take a look at this iOS framework: https://github.com/square/SocketRocket
There are different approaches to update the view-counter, the safest is if you put a REST-server "in front of the video file", which returns the video file and at the same time updates the number of views in your database.

How can I find the number of seconds a YouTube video was played?

I have access to a proxy server and I can find out the time a video was requested. The log has the form (time, IP, URL). I want somehow figure out for how many seconds did a particular user using IP address A watched a YouTube video. Any suggestions?
If you only have access to requests, you obviously can't tell the difference if someone just loaded a video or watched it.
So, the best you can do is to come up with a set of heuristics that tries to 'guess' it by observing certain actions of the user. Here are a few ideas:
Does you log count the requests for the video buffer itself? If it does, you can see how much of the video was actually loaded, and the watched time can't be more than that.
If you (quite naively, I guess) assume that they're finished watching when they request another video URL, you can use this as your trigger for ending a 'video session'.
Install Wireshark or similar and start watching activity from YouTube during the video. Can you identify if there's a request when advertising is shown, or the related videos are displayed when the video finishes?
In all honesty, though, I think it will be virtually impossible trying to derive such an specific metric like seconds watched from such limited data as the point in time a video was requested. Just think of what could mess up any strategy you come up with: the user could load several videos in different tabs in a burst, or he could load a video page, pause it and forget it for several minutes or hours before he does watch it.
In short: I don't think you'll get a reliable guess using only the data you have, but if you absolutely must at least try, observing network activity between client and YouTube that only happens when a video is in the 'playing state' (pulling advertisings, related videos, some sort of internal YouTube logging, etc) is probably your best bet. Even that probably won't have a granularity nearly close to seconds, though.

Resources