Get all my Video On Demand VOD videos, properties, urls - vimeo

I cannot find on the Vimeo API how to get all my VOD videos with the description, title, price and the url to buy them. ondemand/pages is not really showing any useful info, neither is google.
Anybody knows the endpoint for this or how to get this info?

Vimeo API for endpoints:
https://developer.vimeo.com/api/endpoints
Specifically
https://developer.vimeo.com/api/playground/me/ondemand/pages
If you're already using this and it doesn't have the info you need, you might have to contact support and request it to be added.

Related

access stats using the vimeo API

i want to access the vimeo stats with the vimeo API to automatically get a list of the most viewed videos.
i am trying to access https://api.vimeo.com/me/videos/stats with an access token, but i get the following error.
{
"error": "Your access token does not have the \"stats\" scope"
}
is it not possibile to access the stats using the API, because i can't find a scope named "stats"? it only works from the stats admin page where i can download the stats export as an csv.
i read in a post from over a year ago that the stats api is not available yet, does anyone know if this is still the case, i could not find anything in the vimeo docs.
Stats are still unavailable via the Vimeo API.

Dailymotion Advertising Api

I'm trying to get status about my video with dailymotion api. Some of videos are not getting ads. So i'm trying to understand how it's gonna be.
I tried like this but it's not telling about ads status.
String.Format("https://api.dailymotion.com/user/{0}/videos?fields=id,title,partner&limit=100&page={1}", userID, pageNumber)
i thought like partner key is enough to understand that situation but it's not. Can someone help me ? Also i tried to get something from http code but it didn't work.
Any suggestions ?
You can't know if ads will be displayed or not on a video. The AD server uses many criteria to determine what to do.
When the player is loaded on the page, a call to the ad server is sent in real time to know if an ad is available or not.
The API player provides some useful ad events, maybe you can use them: api events documentation

Add domain to all vimeo videos by API

We need to add domains to all of our videos. But I cant find a API call to add a domain to all of the videos - only one video at a time.
Right now I am doing two steps:
https://api.vimeo.com/me/videos....
Here I get all of our videos and their IDs and a hell of lot of stuff I dont need.
Then I loop through all of the videoIDs and call
https://api.vimeo.com/videos/{videoId}/privacy/domains/{newDomain} for each video.
This results in 1200 put requests which is not good. Furthermore I am not sure if we get banned with to many requests.
Is there som APIs that I have missed which supports what I am trying to do ?
Any help is appreciated.
Instead of using the API to do this, I suggest setting the default video privacy for all your videos at https://vimeo.com/settings/videos/upload_defaults - this includes the ability to add domain privacy.
Looking through the documentation I found an option for reducing the amount of data return. By adding e.g. &fields=uri,privacy to my api calls I reduced the amount of data returned.
I still have to loop each video and do a put however the first step is a lot faster.

How to get Chanel Name by giving Youtube ID

I need to get chanel name, and coutn views of a youtube video..
I use Youtube API, and i want to send the argument : video code
And result , the views coutn of that video, and the channel name (not chanel id)
You may refer here: How to get YouTube channel name?
It stated that you can extract the video id from the URL, and then make an HTTP GET request: https://gdata.youtube.com/feeds/api/videos/dQw4w9WgXcQ?v=2&alt=json where dQw4w9WgXcQ is the video id you're interested in. This returns a JSON response, with the channel name in the author field.
For the count views of a YouTube video, you can use the YouTube Analytics API.
Video reports provide statistics for all user activity related to a channel's videos or a content owner's videos. For example, these reports contain the number of views that your videos received. In the YouTube Analytics API, some content owner video reports also include estimated revenue and ad performance metrics.
Here's a related thread: How to count the total number of views from a youtube channel?

Is it possible to get scrobbling from information from last.fm API

I am getting information about the track I am listening to from last.fm.. I cannot however get the information about what I am scrobbling from, like you see on you last.fm page: "scrobbling now from spotify"
Does anyone know if this is possible without scraping the user page?
I don't see anything in the API docs - could easily be missing something.
The call I am using to get the now playing track is user.getRecentTracks which you use a attribute on the first song returned (nowplaying="true") to tell if its being played now and there is nothing about what I am listening on there.
The answer is: no, Last.fm API doesn't support this feature.
The only way you can get this information is to scrap it from <div class="scrobblesource">.