Skip to content

Commit 79e01b0

Browse files
feat(youtube): update the API
#### youtube:v3 The following keys were added: - resources.activities.methods.list.parameters.mine.deprecated - resources.commentThreads.methods.list.parameters.postId.description - resources.commentThreads.methods.list.parameters.postId.location - resources.commentThreads.methods.list.parameters.postId.type - schemas.CommentSnippet.properties.postId.description - schemas.CommentSnippet.properties.postId.type - schemas.CommentSnippetAuthorChannelId.properties.value.description - schemas.CommentThreadSnippet.properties.postId.description - schemas.CommentThreadSnippet.properties.postId.type The following keys were changed: - schemas.CommentSnippet.properties.channelId.description - schemas.CommentSnippet.properties.parentId.description - schemas.CommentSnippetAuthorChannelId.description - schemas.CommentThreadSnippet.properties.channelId.description - schemas.CommentThreadSnippet.properties.videoId.description
1 parent 2997287 commit 79e01b0

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

‎discovery/youtube-v3.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
"type": "integer"
186186
},
187187
"mine": {
188+
"deprecated": true,
188189
"location": "query",
189190
"type": "boolean"
190191
},
@@ -938,6 +939,11 @@
938939
"required": true,
939940
"type": "string"
940941
},
942+
"postId": {
943+
"description": "Returns the comment threads of the specified post.",
944+
"location": "query",
945+
"type": "string"
946+
},
941947
"searchTerms": {
942948
"description": "Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.",
943949
"location": "query",
@@ -4100,7 +4106,7 @@
41004106
}
41014107
}
41024108
},
4103-
"revision": "20250224",
4109+
"revision": "20250422",
41044110
"rootUrl": "https://youtube.googleapis.com/",
41054111
"schemas": {
41064112
"AbuseReport": {
@@ -5763,7 +5769,7 @@
57635769
"type": "boolean"
57645770
},
57655771
"channelId": {
5766-
"description": "The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.",
5772+
"description": "The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.",
57675773
"type": "string"
57685774
},
57695775
"likeCount": {
@@ -5788,7 +5794,11 @@
57885794
"type": "string"
57895795
},
57905796
"parentId": {
5791-
"description": "The unique id of the parent comment, only set for replies.",
5797+
"description": "The unique id of the top-level comment, only set for replies.",
5798+
"type": "string"
5799+
},
5800+
"postId": {
5801+
"description": "The ID of the post the comment refers to, if any.",
57925802
"type": "string"
57935803
},
57945804
"publishedAt": {
@@ -5831,10 +5841,11 @@
58315841
"type": "object"
58325842
},
58335843
"CommentSnippetAuthorChannelId": {
5834-
"description": "The id of the author's YouTube channel, if any.",
5844+
"description": "Contains the id of the author's YouTube channel, if any.",
58355845
"id": "CommentSnippetAuthorChannelId",
58365846
"properties": {
58375847
"value": {
5848+
"description": "The id of the author's YouTube channel.",
58385849
"type": "string"
58395850
}
58405851
},
@@ -5935,13 +5946,17 @@
59355946
"type": "boolean"
59365947
},
59375948
"channelId": {
5938-
"description": "The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.",
5949+
"description": "The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.",
59395950
"type": "string"
59405951
},
59415952
"isPublic": {
59425953
"description": "Whether the thread (and therefore all its comments) is visible to all YouTube users.",
59435954
"type": "boolean"
59445955
},
5956+
"postId": {
5957+
"description": "The ID of the post the comments refer to, if any.",
5958+
"type": "string"
5959+
},
59455960
"topLevelComment": {
59465961
"$ref": "Comment",
59475962
"description": "The top level comment of this thread."
@@ -5952,7 +5967,7 @@
59525967
"type": "integer"
59535968
},
59545969
"videoId": {
5955-
"description": "The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.",
5970+
"description": "The ID of the video the comments refer to, if any.",
59565971
"type": "string"
59575972
}
59585973
},

‎src/apis/youtube/v3.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ export namespace youtube_v3 {
12611261
*/
12621262
canRate?: boolean | null;
12631263
/**
1264-
* The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
1264+
* The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video or post comment it's the video/post's channel.
12651265
*/
12661266
channelId?: string | null;
12671267
/**
@@ -1273,9 +1273,13 @@ export namespace youtube_v3 {
12731273
*/
12741274
moderationStatus?: string | null;
12751275
/**
1276-
* The unique id of the parent comment, only set for replies.
1276+
* The unique id of the top-level comment, only set for replies.
12771277
*/
12781278
parentId?: string | null;
1279+
/**
1280+
* The ID of the post the comment refers to, if any.
1281+
*/
1282+
postId?: string | null;
12791283
/**
12801284
* The date and time when the comment was originally published.
12811285
*/
@@ -1302,9 +1306,12 @@ export namespace youtube_v3 {
13021306
viewerRating?: string | null;
13031307
}
13041308
/**
1305-
* The id of the author's YouTube channel, if any.
1309+
* Contains the id of the author's YouTube channel, if any.
13061310
*/
13071311
export interface Schema$CommentSnippetAuthorChannelId {
1312+
/**
1313+
* The id of the author's YouTube channel.
1314+
*/
13081315
value?: string | null;
13091316
}
13101317
/**
@@ -1381,13 +1388,17 @@ export namespace youtube_v3 {
13811388
*/
13821389
canReply?: boolean | null;
13831390
/**
1384-
* The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
1391+
* The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.
13851392
*/
13861393
channelId?: string | null;
13871394
/**
13881395
* Whether the thread (and therefore all its comments) is visible to all YouTube users.
13891396
*/
13901397
isPublic?: boolean | null;
1398+
/**
1399+
* The ID of the post the comments refer to, if any.
1400+
*/
1401+
postId?: string | null;
13911402
/**
13921403
* The top level comment of this thread.
13931404
*/
@@ -1397,7 +1408,7 @@ export namespace youtube_v3 {
13971408
*/
13981409
totalReplyCount?: number | null;
13991410
/**
1400-
* The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
1411+
* The ID of the video the comments refer to, if any.
14011412
*/
14021413
videoId?: string | null;
14031414
}
@@ -7212,6 +7223,10 @@ export namespace youtube_v3 {
72127223
* The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include.
72137224
*/
72147225
part?: string[];
7226+
/**
7227+
* Returns the comment threads of the specified post.
7228+
*/
7229+
postId?: string;
72157230
/**
72167231
* Limits the returned comment threads to those matching the specified key words. Not compatible with the 'id' filter.
72177232
*/

0 commit comments

Comments
 (0)