Get number of video views from a video tweet - twitter

I'm looking for a way to get the number of video views from a video tweet.
With the search/tweets I can get the number of favorites and retweets but not the views. Is it possible?

In the twitter ads api there is a video metric where is possible to get the number of views. The problem is that it requires to be approved through the twitter review process and this api looks more like a way to fully manage the ads of the user.
But I finally found an undocumented api where I can get this information using the same access token used for everything else:
https://api.twitter.com/1.1/videos/tweet/config/{{id-tweet}}.json
Among other things, it returns a track.viewCount field.

Related

is the dislike information still available on youtube's api?

since youtube updated thier guildlines on "dislikes" on the platform , see : https://blog.youtube/news-and-events/update-to-youtube/
I wanted to ask if there is still a way to get the dislike amount on a random video using youtube's api , an example of a random video https://www.youtube.com/watch?v=ThiCMd5kGbE&ab_channel=DigitalE
You will have access until Dec. 13th; after that only the user themselves with an authorized API call will be able to obtain that data for their videos only.

Is there a way to use the Youtube API v3 to grab past subscriber counts?

From everything I have researched I have not been able to find a way to grab past subscriber count on a certain date. If I can't do it through Youtube API is there any other site that would have this kind of data I could grab for a bunch of different channels?
I'm not sure if this is possible with all of the updates to YouTube showing rounded subscriber counts. I would recommend checking out the YouTube Analytics & Reporting APIs at https://developers.google.com/youtube/analytics. Other than that, I would say not.

How to pragmatically test that youtube video links is ok

Here is a link to video which does not work
https://www.youtube.com/watch?v=abEOkul6HEx
How I can programatically detect this ?
The scenario would be to monitor a list of youtube videos and detect if a single video was deleted or is no longer available
Any ideas ?
You can use following youtube v3 API GET request
https://www.googleapis.com/youtube/v3/videos?part=id&id={VIDEO_ID}&key={YOUR_API_KEY}
In the results check for pageInfo.totalResults attribute
Update
If you want to pass multiple video ids in one API, it also can. id={VIDEO_ID1},{VIDEO_ID2}. In this case you can't depend on pageInfo.totalResults you have to go through items[].id decide.

Does the Youtube API return list of users that have watched my video?

I'd like to create a Youtube app that rewards users after they have watched a certain number of my Youtube-channel's videos - or that rewards "experience points" based on the amount of time spent watching my channel.
Can I query the Youtube API to see if an authenticated user has watched a specific video associated with the app?
Seems like I can query against "likes" and "dislikes" - but curious if anyone has tracked "watch-time" or just "watched" in general.
My hesitation here is that I don't want access to a user's full history - I'd like a very unobtrusive approach to connecting authenticated users to specific video content.
I'm not seeing an API endpoint for querying or notifying if an associated Youtube video has been seen. Any help you can provide would be very helpful!
Considering user privacy I don't think you can acces this information. If you search through the API, you'll find that Youtube does come with insights, like viewcount and even demographic information.
It might be a solution to embed your videos in your app and then track which users watch that specific video within the app.
Inside your app catch the the onStateChange event to log that a user viewed a video. It will only work for video they view from inside your app.

Youtube API: no way to get liked videos from user's activity feed

It's a known issue that Youtube API (v2) doesn't support liked videos - http://www.youtube.com/my_liked_videos (not http://www.youtube.com/my_favorites). The trick was to use events API for user's recent activity and filter out those with yt:rating.value = like. However, when I hit this endpoint https://gdata.youtube.com/feeds/api/users/default/events?inline=true (with proper authorization headers), I only get last 24 events and all of them are of 'X has uploded a video' type. Has anyone experienced this and figured out what is wrong?
You can get liked videos without much effort in v3 of the API. I don't think there's a workaround for this in v2.
In v3, make a channels.list(part=contentDetails) call to get the "likes" playlist id, and then do a playlistItems.list() call to get the contents of that playlist, i.e. the videos that have been liked.

Resources