Monika D
Monika D

Reputation: 103

YouTube API- retrieve all comments text on each video

I am using YouTube API to fetch user feed and all video details.

Eg : Number of likes,number of dislikes.etc. Number of comments on video is correct but while I am fetching all the comments data found nothing.

Thanks.

Upvotes: 1

Views: 2636

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56144

The correct URL to request is http://gdata.youtube.com/feeds/api/videos/VIDEO_ID/comments?v=2 (with any other parameters you want).

E.g. http://gdata.youtube.com/feeds/api/videos/fhWaJi1Hsfo/comments?v=2&alt=json&prettyprint=true returns the comments feed for video id fhWaJi1Hsfo, and I do see the content of the actual comments in that feed.

If you're not able to successfully reproduce that with a specific video id, could you let us know which video you're having trouble with?

Upvotes: 2

Related Questions