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?
Related
I am making the following request trying to get the thumbnail images for a specific video.
https://api.vimeo.com/videos/447593888/pictures?access_token=XXXXXXXXXX
I generated the access token in my account however I get the following error.
"No user credentials were provided."
Any idea why this wouldn't work? I wish there was a simple send and return the Title, Duration, Thumbnail when I sent the ID value.
Access tokens should be passed in the request header, not as a query parameter (this is also insecure as a malicious actor could intercept the request url and get your access token, which is why only tokens with "public" scope can be provided this way): https://developer.vimeo.com/api/authentication#presenting-the-access-token
I wish there was a simple send and return the Title, Duration, Thumbnail when I sent the ID value.
Have you tried oEmbed? The oEmbed API doesn't require authentication, and can be used to get the metadata (name, description, thumbnails) for any embeddable video: https://developer.vimeo.com/api/oembed/videos
Vimeo oEmbed works perfectly and you can send in the height/width of the thumbnail you want and it pulls that, duration, title, desc, created date, etc. Awesome!
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.
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
I have successfully uploaded a video to Vimeo using the API, but after that It will take some time for video conversion..
Is there a way to check if video conversion has completed using the API?
I am looking for something like a callback URL..
Currently the API does not perform a callback or push notification when an upload has completed video transcoding. Instead, you'll need to periodically make requests to the API to get the video's status.
To get a video's status, make a filtered request with these fields specified:
GET https://api.vimeo.com/videos/[video_id]?fields=uri,upload.status,transcode.status
The upload.status and transcode.status fields will return one of the following values:
complete
error
in_progress
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.