How to delete commentThread object in YouTube with api? - youtube-api

In my youtube channel I want to be able to delete youtube comments. The youtube comments are called the "commentThread" resources in youtube docs. As shown in the below screenshot, there is not an option for delete operation in commentThread resource.
When it comes to the comment's replies which are called "comments" in docs, I can delete them as api is provided for it. I can also delete commentThread objects that are only mine. I can't delete commentThreads that other people wrote to my video. The point is, why can I not delete commentThread objects from api endpoint while I can do it via youtube website? Is there any api for it?
Thanks in advance.

Related

Is YouTube Data API v3 webhook available?

I'm trying to make a system where I fetch all YouTube comments
using YouTube v3 API and my agents will reply to those comments from the system and that's will be published into YouTube.
Now the problem is if I want to get all comments in a short time then every time I have to crawl all videos and comment's for checking a new comment. Which is very costly in API calls.
Now I'm searching for webhooks, which will notify or send me the new comment, expecting like what I get from Facebook Webhooks.
YouTube webhook for comment or like Not available yet. Only way to hit their server for find new comment. It's have a API which give all comment of a channel.
As you said there isn't any such YouTube webhook to get notified when a new comment is posted.
However I would recommend you to use CommentThreads: list with allThreadsRelatedToChannelId which has by default order time (most recent first). Likewise by just making a single YouTube Data API v3 request periodically you will get fastly and without spending a lot of your quota the latest comments on your YouTube channel (on your videos and also on you "Community" tab). If more than maxResults (maximum 50) comments are published during a period you can use nextPageToken to continue to browse these new comments.

YouTube API: follow or subscribe to Playlist

Given one YouTube playlist ID, I would like to save or subscribe to that playlist and to be added to my library via API.
playlist added from a channel to my library
Already checked the API documentation, wondering if I'm missing something.
Thanks

How to crawl YouTube Video comments?

since YouTube Data API v2 no longer exists, you need extra permission from the user to read video comments (like permission youtube.force-ssl). There isn't any possibility to read video comments with the permission "youtube.readonly".
With Data API v2 ist was possible to read youtube video comments like this:
https://gdata.youtube.com/feeds/api/videos/VIDEO_ID/comments
But how is it possible to get the youtube comments only with "youtube.readonly" permission? YouTube loads comments dynamically with ajax, so is it possible to crawl these comments?
Thanks a lot!
If you want to read top level comment by url, like you have said in your question
You can get it, but you need a youtube api key,(its free)
https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=NK94g7Qctuw&key={YOUR_API_KEY}
You do not have to get any access token, again if you want it to get from access token try to get refresh token like
$client->setAccessType('offline');
$client->setApprovalPrompt('force');
Add above two line code in youtube api sample, you will get a auto refresh token. Hope it helps you.

Youtube API V3 commentThreads.list method not returning "shared privately" comments

While requesting the list of comment threads for a Youtube video there are certain comments that do not appear on the results:
Comments inside private videos
Comments that were shared privately
I understand this could be a normal response when using a public API Key. But this is happening even if I'm using OAuth 2.0 with an access token belonging to the user and channel owner of the target video.
It's there any workaround for this?
Many thanks in advance for anyone that can shed some light on the matter

How can I bookmark a video from other site to youtube?

How can I bookmark a video from other site to youtube ?
You need to use the youtube API
Adding information via HTTP POST
The API returns the following response
codes for requests to add resources
such as ratings, comments, video
responses, complaints, favorite
videos, playlists, playlist entries,
subscriptions and contacts.
http://code.google.com/apis/youtube/2.0/reference.html

Resources