Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active November 12, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/a03bf3aa29abe85010f4575250ad9539 to your computer and use it in GitHub Desktop.
Save productioncoder/a03bf3aa29abe85010f4575250ad9539 to your computer and use it in GitHub Desktop.
Youtube in React: comment thread example response
{
"kind": "youtube#commentThreadListResponse",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/36FatcUeHsOA3Hkx0JZsRj8z7mM\"",
"nextPageToken": "some-token",
"pageInfo": {
"totalResults": 20,
"resultsPerPage": 20
},
"items": [
{
"kind": "youtube#commentThread",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/Deu50nKSKYGgxR_-ETP2cJABob8\"",
"id": "Ugwz9cfAuwYlI_tTzYp4AaABAg",
"snippet": {
"videoId": "J2X5mJ3HDYE",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/wkMTRYRh7LHS-I3naFCUfN4vWT8\"",
"id": "Ugwz9cfAuwYlI_tTzYp4AaABAg",
"snippet": {
"authorDisplayName": "Constantin Simeria",
"authorProfileImageUrl": "https://yt3.ggpht.com/-bEP1Tf16L_c/AAAAAAAAAAI/AAAAAAAAAAA/Xt3a8AtT6AY/s28-c-k-no-mo-rj-c0xffffff/photo.jpg",
"authorChannelUrl": "http://www.youtube.com/channel/UCjfkauS-Fd7j2GlXSAdi3bg",
"authorChannelId": {
"value": "UCjfkauS-Fd7j2GlXSAdi3bg"
},
"videoId": "J2X5mJ3HDYE",
"textDisplay": "This was alia’s old theme song",
"textOriginal": "This was alia’s old theme song",
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2018-11-12T19:05:43.000Z",
"updatedAt": "2018-11-12T19:05:43.000Z"
}
},
"canReply": true,
"totalReplyCount": 0,
"isPublic": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment