YouTube likes and dislikes data imported in Google Sheets - if-statement

I have a YouTube channel on which I have regular video updates. Now I want to know how many likes are taken on any video and I want to reflect real-time like value to be reflected in Google Sheets also.
So I want some way to link YouTube API to Google Sheets.

LIKES:
=IF(ISNA(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","(//*[contains(#class,'like-button-renderer-like-button')])[1]"))=TRUE,0,
IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","(//*[contains(#class,'like-button-renderer-like-button')])[1]"))
DISLIKES:
=IF(ISNA(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","(//*[contains(#class,'like-button-renderer-dislike-button')])[1]"))=TRUE,0,
IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","(//*[contains(#class,'like-button-renderer-dislike-button')])[1]"))

Related

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

how to embed youtube video in virtumart 2.0 product description page

i want to embed youtube video into virtumart2.0 product description page, but i am unable to embed the youtube video. i have searched about it and come to know that if in array $tagBlacklist have to remove embed and object tag from blacklist.
I have done with this, but my problem is remaining same, youtube video is not embeded with my product description page.For this i have also used AllVideos (by JoomlaWorks) module,but it works only in articles not in virtumart product description.
Can anyone help me to figure out this problem
Thanks in advance
you can see here , i have embed you tube video in product detail page.
you should install Easy Embed Video Plugin in joomla.
after just put {youtube}CEDiiDYIHw8{/youtube} in your description.
you can Download Plugin Here

How to search within videos of a single user with Youtube API?

I am building a music video streaming website with the Youtube API, whereby I will upload all my videos by my account and get my own videos with the user-specific feed.
I would like to know if it's possible and how to search within videos uploaded by a user, i.e. the search should return results containing only videos I uploaded.
Thanks!!!
Assuming you're using v1/v2 of the YouTube Data API, the relevant parameter to add to your search query is author=USER, where USER is either a YouTube username or a YouTube channel id.
This is documented at https://developers.google.com/youtube/2.0/reference#authorsp

How to get Tour Dates information from a band page through API

I'm working on a web site for a friend's band and I want to pull information from their facebook band page. Specifically I am looking to get tour dates. I am a beginner with the facebook APIs, but I did read through all of the documentation and I couldn't find anything on the tour date information through the graph API. I can pull basic info from them, but I can't seem to figure out how to get tour dates. Any help is much appreciated. Thank you!
The Tour Dates are provided by the Bandsintown Facebook app (ID: 123966167614127). As such, you need to use their API to access the dates.
Fortunately, Bandsintown.com does offer a nice API. Check it out at: http://www.bandsintown.com/api/requests
The above was just to obtain the dates as you see in the 'Tour Dates' link for most popular bands.
If the band uses Facebook events along with the app, you could just do a simple call to something like https://developers.facebook.com/tools/explorer/?method=GET&path=coldplay%2Fevents
If the band is using the Events functionality on Facebook you can use that to retrieve a list of all tour dates. Check the Events API page in the Facebook documentation:
http://developers.facebook.com/docs/reference/api/event/
And look at their example of what this looks like here:
http://developers.facebook.com/tools/explorer/?method=GET&path=331218348435

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.