Get view count of playlist with YouTube API - youtube-data-api

So, I didn't even know that playlists have a separate view count, but they do, here ya go:
Or here's the link, cuz it took me a while to find it, if you don't believe me: https://www.youtube.com/playlist?list=PLx0sYbCqOb8TBPRdmBHs5Iftvv9TPboYG
Anyone knows if I can retrieve the view count of a PLAYLIST, with the YT data API? I have tried v3/playlistItems, v3/playlists, neither did contain this information. And FYI they do NOT accept the 'statistics' in the part parameter.
Hope someone has this figured out!
Thanks!

Related

Using Pinterest Marketing api to fetch all entities?

Is there an edge that would allow fetching all the campaigns, adgroups, etc., of a given advertiser? In researching this I see these:
GET /ads/v3/campaigns/{campaign}/
GET /ads/v3/adgroups/{adgroup}/
...
which return only single entities. I also found that there is an async report that returns entities in batch:
advertisers/<advertiser ID>/entities/batch/
Is this the best way to accomplish this? If so, the doc says it only supports campaigns right now, is that still the case?
Thanks
Sorry to waste your time folks, I've since found more and better doc and discovered that there is this:
/ads/v3/advertisers/{advertiser}/campaigns/
Here is a link to the doc for your own reference:
https://developers.pinterest.com/docs/redoc/#operation/ads_v3_get_advertiser_campaigns_handler_GET

Retrieve media Entry comments kaltura

Basically what the title says.
I can't find a relative service to their api. I have tried many ways but nothing worked so far. I'd really appreciate any help.
Thank you
You should use CuePoint service with List action and filter with KalturaCuePointFilter property EntryIdEqual - put entry's ID, which comments you want to recieve, and you will get list of all comments belonging to that entry.

How to Get FHIR Photo for Patient from a URL

Consider the FHIR Patient data at http://spark.furore.com/fhir/Patient/f201.
How can I get the photo object referenced therein at URL "binary/#f006"??
I would have thought an HTTP GET on http://spark.furore.com/fhir/binary/#f006 would have done it, but alas...
the data there is wrong. Your conversion to the get was correct, but you ended up with a wrong URL because the reference is wrong in the first place.
It should say: url="Binary/f006" which would equate to a get of http://spark.furore.com/fhir/Binary/f006. That doesn't work either, which is another error in the way things are defined.
See http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=6107 for follow ups
Yes, this reference is outdated, and we are not distributing Binaries currently as part of the examples in the FHIR specification. Our server Spark loads the examples from the specification when we initialize the database, hence the images are not there.
For now, I have uploaded the correct image to Binary/f006 and have updated the link in Patient/f201, so things should work now. When we re-initialize the database (we don't do this often), these changes will be reversed, but a simple PUT to Binary/f006 and an update of Patient/f201 will fix this of course.

Why incorrect "pageCount" returned using Google Books API?

When I am calling "books.volumes.get" API, I am getting a "pageCount" which is different than calling "books.volumes.list" API for the exact same book.
Taking for example "Cryptography decrypted" book title, using the Google API Explorer I will get the following values for "pageCount":
books.volumes.get : "pageCount"=392
books.volumes.list : "pageCount" = 352
Pay attention that the volume ID is exactly the same in both query results. ("id"=wNFQAAAAMAAJ)
Any suggestion for this strange behavior? Any feedback will be greatly appreciated.
Compare responses - they are different.
Publisher for first is "Addison-Wesley" and "Addison-Wesley Professional" for second.
It is total mess. According to book's page In first request is correct publisher but page count is wrong..
To my mind is better idea to send two letter with description of this situation. One to owner of API second to Addison-Wesley (request explanation about Professional). Not sure that your receive answer from second.. whatever..

framework and aprroach to get youtube insight data using ruby

I need to get user, channel & video insight data (views, ratings, subscribers etc) from youtube using ruby.
which tool/gem/framework to use:
I know this is asked before, but this is specific to my problem, I dont want to upload videos etc, most of the frameworks seem geared to this.
None of these seem to be a great fit to me, am I better off using httparty and rolling my own?
youtube-model - http://github.com/edgarjs/youtube-model/tree/master
youtube-g - http://github.com/tmm1/youtube-g
gdata on rails - http://code.google.com/apis/gdata/articles/gdata_on_rails.html
which api to use?
Should I use this api: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_insight.html
I need a list of videos before I can call this, also I need to figure out what channel the user has, ideally get insight data at the channel level, if not I can aggregate it.
Or are feeds: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_understanding_video_feeds.html
a better way to get this kind of data.
I spent some time working on this over the weekend. Youtube-Model seems to work the best:
Use example in youtube model to get authsub token
yt = YouTubeAccess.uploaded_by_user(token)
yt_videos = yt.videos
yt_videos.each{|video|
view_count = video.statistics.viewCount.to_i
favorite_count = video.statistics.favoriteCount.to_i
comment_count = video.comments.attributes['feedLink'].countHint.to_i
}
Not sure how to do channels, but this is a good start.

Resources