Youtube-data-api Get Playlist liked video - youtube-data-api

such by title, I need to get Liked video playlist from some channel id. I've used the call "Channel lists" for retrieve all playlist of user. In fact, I get correctly all playlist except Id playlist of "liked video". Maybe is it impossible to get it? Can you help me please? Thank you so much...

You can fetch the list of liked videos only of the user authorizing the API request. So first, make sure you authorize your app to perform requests on behalf of the channel owner.
Once authorized, you can fetch the liked videos by querying against the Videos: list endpoint at GET https://www.googleapis.com/youtube/v3/videos and setting the myRating parameter to 'like'.
For example in python, it would be something like this:
response = client.videos().list({
'part': 'snippet,contentDetails,statistics',
'myRating': 'like'
}).execute()
A detailed example is also available at the YouTube Data API Developer guide under the Usage section. Just choose “list (my liked videos)” from the use cases options.

Related

How to get analytics (i.e. views, subscribers) on daily basis of a any random youtube channel without permission

I am working on a project in which I want to show the stats of the competitor's youtube channels.
I need to show views per day, subscribers per day, videos per day from the date when the competitor's channel is created to the current date.
Because I don't have any permission of competitor's channel so I can't use youtube analytics Api directly.
But I know this is possible because socialblade website is showings stats of channel (without permission because I checked with my own channel on socailblade and I didn't give any permission).
https://socialblade.com/youtube/channel/UCAiKrZDrrSJnLpDM-zEVyng
I tried with youtube analytics API but FORBIDDEN error is coming and that is obvious I can't access private data without permission
So is there any way to fetch stats of youtube channel without access permission?
So is there any way to fetch [private] stats of YouTube channel without access permission?
No you cant. You need still need to understand the difference between private and public data. Public data is data that can be accessed by anyone. Public videos on YouTube for example
Private data is data that is owned by a user. A good example of that would be the analytics for a channel on YouTube. You cant access this kind of information without the permission of the user who owns it. Google giving you access to private user data without the user having granted access would completely negate the term private.
socialblade and my guess
The socialblade website is probably doing their own internal analytics using public data available from the YouTube data api. I suggest you do the same. It looks to me like they are just scanning all videos and ranking them by subscriber count, then by votes probably.
Duplicate question
This is almost the same answer I gave you last week when you asked this worded slightly different Youtube.analytics.query api giving forbidden error Asking the same thing twice isn't really going to get you a better outcome.
You can use this to get a subscriber count in python.
channel_id = input("what channel do you want to find the subscribers for? (please enter channel id, not username) >> ")
channel_url = "https://www.youtube.com/channel/" + channel_id
read_channel_info = str(uopen(channel_url).read())
print("The user you are searching for has",find("[0-9|\.]+[M|K]? subscriber",read_channel_info)[0][:-11], "subscribers.")

Mailchimp api: retrieving poll results

Is there a way to get the members to a certain response of poll without the need to create segments?
I am sending mails and have a poll included (basically participating at an event).
Now I would like to easily collect the respondents for an event from various mails (announcement, invitation, reminder 1, reminder 2,..)
Currently I need to create segments for each response where I need to reference the campaigns individually. So whenever I send a campaign (email) I need to update all segments as there need to be a segment per question, which I would like to avaoid.
Hope thats clear enough.
I had a similar question and after a review of the mailchimp API docs, in particular the reports section I realized there was not a way to retrieve poll results.
After my review, I followed-up with mailchimp and they mentioned access to poll results via API is not available - detailed comments with image attached below:
MailChimp Response - Start
"To be completely honest and transparent, there currently wouldn't be a way of accessing the campaign poll result data directly through the report... With that being said, it would be possible to use the API to create segments based on poll response, then call those segments to view the number of responses for each option, as well as the specific subscribers who chose each individual option.
More info here: https://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/
MailChimp Response - End
As you can see, although accessing poll results via the API is not available, there is a work around using a method.
Good luck!

Best way to achieve Conversation view for mail folder using Outlook REST API

I would like to use the Outlook REST API to display the messages in a mail folder and group messages by conversations, like you have in any modern webmail.
For example with inbox, I would request using a first query such as <mailuri>/inbox/messages?$select=ConversationId (by default it is reverse chronological order)
It is not sufficient to group this request results by ConversationId because some emails may not be in inbox (think of sentmails) or they may be paginated and not returned in the first page.
Consequently, for each distinct ConversationId I need to perform another REST request, for retrieving participants or simply counting the emails in the conversation. I may use the new batch request to do this.
There are a lot of requests involved. Is there a better solution ?
As you've probably realized the REST API doesn't directly provide a way to work with conversations as an entity. This is something that we have on our roadmap to improve.
With the current state of the API what you're describing is basically the right approach. You could possibly defer the second request to "fill in" a conversation until the user selects it.
You can actually use this endpoint to cover both inbox and sentitems
https://outlook.office.com/api/v2.0/me/messages/?$select=ConversationId & $filter=ConversationId eq '${params.conversationId}'

YouTube Data API v3 - Get list of live streams ordered by concurrent viewers

I'm working with the YouTube Data API and trying to figure out the correct call to make to get the data I'm after.
I want to retrieve a list of the currently active live streams, ideally by category, ordered by number of concurrent viewers. So far, I've only been able to get the liveStreamingDetails (which includes the concurrentViewers property) for a specific video ID.
Does anyone know if it is possible to get the information I'm after with the current API? Any help would be greatly appreciated.
Thanks!

Youtube video search result sorting order does not match with youtube.com

Youtube data API v3:
Youtube data api v3 does not return video list in the same order as youtube.com when searching with a specific query like "old hindi songs"
Why??
There can be many reasons for this. But this doesn't mean that you're doing something wrong. It's supposed to be this way.
For example if you are logged in in youtube, youtube will order the results taking in account videos you watched or liked, while the data api does not have access to this info. Also it may filter the results based on your region, while the api will filter by region only if specifically told so.
Try running your browser in incognito, don't log in into youtube, and perform from there a youtube search. The results should 90% match those received from api v3 if of course your request to the api has the order parameter set to relevance.

Resources