A
A
askogorev2014-12-21 21:24:09
YouTube
askogorev, 2014-12-21 21:24:09

How to request replies to comments in Youtube API?

For example, there is a video https://www.youtube.com/watch?v=5P4Ron3pc18
Here are his comments: gdata.youtube.com/feeds/api/videos/5P4Ron3pc18/comments
Yes Comment gdata.youtube.com/feeds/api /videos/5P4Ron3pc18/com...
and 1
i.e. the comment has answers. How to get them now?
Google api says, as I understand it, they should be at the url gdata.youtube.com/feeds/api/videos/5P4Ron3pc18/com...
but they are not there

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
askogorev, 2015-03-05
@askogorev

Unearthed.
To get answers, you need to use the Google+ API. To do this:
1. Take comments

http://gdata.youtube.com/feeds/api/videos/5P4Ron3pc18/comments

2. Each comment in XML has its own url and id:
<id>http://gdata.youtube.com/feeds/api/videos/5P4Ron3pc18/comments/z13wcryihp3kuputy23yc1xq3kujjxexk04</id>

3. Substitute comment id and google api key
https://www.googleapis.com/plus/v1/activities/z13wcryihp3kuputy23yc1xq3kujjxexk04/comments?key=[API_KEY]

4. Get replies to comments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question