Is it possible to get play statistics from an album of videos using the Vimeo API? - vimeo-api

We have a request from someone on our internal team to send a monthly report of play count for a set of videos that we have grouped in an album.
I think this is something we're going to be asked to do for several different groups so I was hoping to write a program that would handle this for me.
Glancing through the Vimeo API, I didn't see anything relating to pulling up analytic or usage data.
Am I missing something obvious? Or is that capability just not there?
Thanks for your help!

In the new api (developer.vimeo.com/api) play stats are included in each clip response.
So if you made an HTTP GET request to /me/albums/[album_id]/videos, you should be able to loop through the videos (and through multiple pages if necessary) and pull out the play data.
We don't expose much more than the play data yet, but there will soon be Advanced Stats exposed through the API, just like on site.

Related

In general how are likes and recommendations usually handled on sites like Reddit, YouTube, and Facebook?

For example when you hit the like / upvote button it affects the future recommendations you receive.
At a high level how do sites determine all of this information?
Every time you hit the like/dislike button does it automatically make a call to the backend and update your recommendations list?
Or does it wait a bit before it does that in case you hit like by accident? What would happen if you just spam and keep liking and unliking a particular video or post?
this is done by many ways:
FaceBook:
1- when you stay reading the post for a long time or hit like, then you are
interested about the content that is offered in this post.maybe in the database there are categories for the data related to posts and offers according to it. also facebook has strong backend which can analyze photos and according to it's data, it may save it in the DB. this is done by image recognition using python. most people also allow facebook accessabilty for apps on their phones, this allows facebook to collect data about your interests. recommendations also based on your FB data, like age, location, friends and other data. when you admire something, the next time you refesh or opens facebook, a call to backend is made and then it returns data according to some cases according to user data and specifications.
Reddit
this mostly depends on text analysis because it is mostly reading posts. and by the same way like facebook it shows data
YouTube
here it maybe a little bit different because here the backend will analyze the videos you watch, channels, and other videos related json data (if you have dealed with yt_dl you will understand me)
you asked about when will the user preferences be updated?. i think this is done when you refresh or open the app again

Birds eye view of how to place video's into Facebook timelines

We're trying to have users share 'articles' on a simple website into their timelines. Each article is associated with a video and we would like to use that video in the representation of the article in a users timeline. Now, I've read that linking to an mp4 via open graph meta tags isn't possible anymore. So I presume I should be using the graph api.
Could someone confirm that this is true?
And if so can you give a quick run down of the necessary steps achieve this?
Thanks

Add video to timeline from GDK or Add "Share" to live card

I'm using the GDK with XE16
I would like to save a video using MediaRecorder and then put it on the Timeline so I can let the user share the video to Gplus, YouTube or any contact. I am providing some additional information during the recording process as an overlay on the video preview.
I am able to save the videos into the /mnt/sdcard/Movies path. I am invoking the Intent.ACTION_MEDIA_SCANNER_SCAN_FILE to add the recorded video to the media database.
I have not been able to figure out how to add a share intent to on livecard. The previous API supported static cards, but those did not support video attachments; and the API is no longer available. I have also tried to use AccountManager and the com.google account in Glass to get an ouath token for the Mirror api to write direction via oauth2:https://www.googleapis.com/auth/glass.timeline. The authorization request shows up, but it is impossible for the user to accept the request.
I've considered sending the video file back to a proxy server that will then call mirror, but this seems like a big round trip for nothing.
I suppose I could send the credentials through this proxy, but this seems like a security nightmare.
The difference between Static Cards and a Timeline Item were large enough that the team, apparently, removed Static Cards until they could make the two of them work much more similarly. What you're trying to do is a commonly requested, and it does make sense that both should work mostly the same way.
You're on the right track for how to handle this at the moment - use the Mirror API to get it into the timeline as a Timeline Item. As you've noticed, you can't go through the auth flow since the user is unable to authenticate through Glass directly.
While you're testing, you can code in an auth token and a refresh token to be provided to the library to do this. For production through MyGlass, take a look at the auth flow that is available at https://developers.google.com/glass/develop/gdk/authentication

Likes missing in vimeo api response

Sometimes I see that the likes and view for a video obtained using vimeo API response goes missing due to some reason . Why does this happen ? Is there a work around ?
In a users settings they can chose "I prefer not to share statistics on my video clip pages". Video responses in the API respect this setting, and will not include plays.
Likes should always appear, so if you do not see them please contact Vimeo directly with as much information as possible.

Where can I find the data points for the Insights chart in the Facebook dashboard?

I am currently using the Open Graph API but am not opposed to using FQL if it can get me the data points I'd like. Right now I am just hitting the urls directly and not worrying about a client SDK.
Of the three charts on http://www.facebook.com/insights/ => websites I can find the data for the Site Engagement chart in the Domain Insights in the API.
However, I can't seem to find the points for Distribution on Facebook, or Referral Traffic to Site in the insight data being returned for the domain. Did I miss them, are they available maybe in FQL or are they just not exposed yet?
Edit: It looks like someone doesn't understand what charts I am talking about so to clarify, I am looking for the following anywhere in the Open Graph API, FQL, or anyplace else in Facebook:
Like Story Impressions
Share Story Impressions
Like Story Clicks
Share Story Clicks
This info is now available via the Insights app. News Feed section has some of it, at least the story impressions and clicks.