Fetch the YouTube comments using YouTube Data API v3

Pass the following parameters:

Key = <Generated using Google API Console with personal Google Id>

Text Format = Plain Text / HTML

Part = Snippet and Replies –> To get both the Comments and Replies (as nested JSON)

Top Level Comment = True –> To get quality comments

Max Results = 100 –> Max Limit.  Limitation from Google

Video Id = <Need to be provided.  We can automate this for Production>

 

YouTube REST API:

https://www.googleapis.com/youtube/v3/commentThreads?key=<Generated using Google API Console with personal Google Id>&textFormat=plainText&part=snippet,replies&topLevelComment&maxResults=100&videoId=OL57w5nj6Y4

 

Result in JSON:

comments-REST-API.json

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s