I am trying to collect the community feed data from a channel for analytics.
I couldn't find a way using the YouTube Data API v3. Is there a way to extract such data?
The data I would like to extract is in the community feed. For instance, it's a community feed from Dr. Bharatendra Rai channel. I would like to collect all his feed.
{
"id": "UgwAKK9XbGapMEH_rNB4AaABCQ",
"date": "1 year ago",
"contentText": [
{
"text": "Here's to all ten thousand of you \ud83c\udf89\nThis is so much more than a phone \u2013 to Fairphone, to an entire industry, and to our community. It\u2019s a physical expression of everything we believe in and have worked for since we started in 2010. \nWe've got lots of interesting, challenging, exciting content in the works and will do our best to give all of you the video's you're looking for on this channel. \n\nCheers for tuning in! Now let's go add a couple more zero's to that sub count ;)"
}
],
"likes": 39,
"comments": 4,
"videoId": null,
"image": {
"thumbnails": [
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s288-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 288,
"height": 288
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s400-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 400,
"height": 400
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s512-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 512,
"height": 512
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s600-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 600,
"height": 600
}
]
},
"poll": null,
"edited": false
}
带有图片的文字(
{
"id": "UgxjystGgDuX45mgJLp4AaABCQ",
"date": "1 year ago",
"contentText": [
{
"text": "Super exclusive "
},
{
"text": "#SNEAKPEEK",
"url": "https:\/\/www.youtube.com\/hashtag\/sneakpeek"
},
{
"text": ": Here's our co-founder and product lead Miquel Ballester in what used to be our recording studio (we're mid-office-move). Notice the professional cardboard-movingbox-tripod :)\n\nAnyways, Miquel is talking to one of our favorite Youtubers for an upcoming project, that we couldn't be more excited about. \n\nBest guess in the comments wins a personal AMA with Miquel \ud83d\udca1\ud83d\udc47"
}
],
"likes": 31,
"comments": 19,
"videoId": null,
"image": {
"thumbnails": [
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s288-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 288,
"height": 288
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s400-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 400,
"height": 400
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s512-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 512,
"height": 512
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s640-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 640,
"height": 640
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s800-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 800,
"height": 800
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s1024-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 1024,
"height": 1024
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s1600-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 1600,
"height": 1600
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s2048-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 2048,
"height": 2048
},
{
"url": "https:\/\/yt3.ggpht.com\/QJeFrnIXTmSqYdH7kr3xGx5S-4DoTFZrvL7XaOlZFnCXk173MviBp7Vaw1SxR_m3n6_ezYqA37W_yg=s2900-c-fcrop64=1,00001cdaffffe5d3-nd-v1",
"width": 2900,
"height": 2900
}
]
},
"poll": null,
"edited": false
}
{
"id": "UgkxFeexIJyCyz157nuukfI25v_xqFW4_VUi",
"date": "4 months ago",
"contentText": [
{
"text": "YouTube has a new Creator Liaison, "
},
{
"text": "Rene Ritchie",
"url": "https:\/\/www.youtube.com\/channel\/UCLBHPoY3NugnZYURxln3fKQ"
},
{
"text": "! He\u2019s worked in product marketing and tech media, posted his first video in 2008 and, for the last two years, has been a full-time YouTuber growing his own channel. Now, he\u2019s here to advocate for creators inside YouTube, to help YouTube better understand and empathize with creators, and to help creators better understand YouTube and everything it has to offer. If you have Platform-level Creator feedback, reach out to Rene at @YouTubeLiaison on Twitter. If you have questions and individual support issues, reach out to @TeamYouTube on Twitter. Welcome, Rene!!"
}
],
"likes": 2,
"comments": 510,
"videoId": null,
"image": null,
"poll": null,
"edited": false
}
Note that my API doesn't enable retrieving poll answers as it requires to be connected with a YouTube account. Furthermore currently retrieving comments for a given community post isn't supported too by my API.
Note that the pagination of my API works as the one of YouTube Data API v3.
{
"id": "UgwAKK9XbGapMEH_rNB4AaABCQ",
"date": "1 year ago",
"contentText": [
{
"text": "Here's to all ten thousand of you \ud83c\udf89\nThis is so much more than a phone \u2013 to Fairphone, to an entire industry, and to our community. It\u2019s a physical expression of everything we believe in and have worked for since we started in 2010. \nWe've got lots of interesting, challenging, exciting content in the works and will do our best to give all of you the video's you're looking for on this channel. \n\nCheers for tuning in! Now let's go add a couple more zero's to that sub count ;)"
}
],
"likes": 39,
"comments": 4,
"videoId": null,
"image": {
"thumbnails": [
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s288-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 288,
"height": 288
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s400-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 400,
"height": 400
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s512-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 512,
"height": 512
},
{
"url": "https:\/\/yt3.ggpht.com\/6h9etF2mni8uU6rILsz5K3CGFdzepbPQfivxy0wBwtyheeIXanhMkRvAB4PNnJsQ9VUyXSlNvX_I=s600-c-fcrop64=1,151f0000d51effff-nd-v1",
"width": 600,
"height": 600
}
]
},
"poll": null,
"edited": false
}
{
"id": "UgkxFeexIJyCyz157nuukfI25v_xqFW4_VUi",
"date": "4 months ago",
"contentText": [
{
"text": "YouTube has a new Creator Liaison, "
},
{
"text": "Rene Ritchie",
"url": "https:\/\/www.youtube.com\/channel\/UCLBHPoY3NugnZYURxln3fKQ"
},
{
"text": "! He\u2019s worked in product marketing and tech media, posted his first video in 2008 and, for the last two years, has been a full-time YouTuber growing his own channel. Now, he\u2019s here to advocate for creators inside YouTube, to help YouTube better understand and empathize with creators, and to help creators better understand YouTube and everything it has to offer. If you have Platform-level Creator feedback, reach out to Rene at @YouTubeLiaison on Twitter. If you have questions and individual support issues, reach out to @TeamYouTube on Twitter. Welcome, Rene!!"
}
],
"likes": 2,
"comments": 510,
"videoId": null,
"image": null,
"poll": null,
"edited": false
}
发布评论
评论(1)
再一次 youtube数据API v3 没有提供基本功能。
我建议您使用我的 youtube操作api ,确实是通过请求 https://yt.lemnoslife.com/channels?part=Community&; amp; amp; amp; ad = channel_id ,视频,没有答案的民意调查,喜欢计数,评论计数,日期等)。
请注意,我的API无法启用调查答案,因为它需要与YouTube帐户连接。此外,目前我的API也不支持为给定的社区帖子检索评论。
请注意,我的api的分页我的API作品是YouTube数据之一API V3。
频道ID
YouTube 确切地,您将获得包含
ugwsoam2bglajm444444444444aaaaaabcq
One more time YouTube Data API v3 doesn't provide a basic feature.
I would suggest you to use my open-source YouTube operational API, indeed by requesting https://yt.lemnoslife.com/channels?part=community&id=CHANNEL_ID you would get a JSON with the channel community posts (texts, images, videos, polls without answers, likes count, comments count, date etc) you are looking for in
item['community']
.Note that my API doesn't enable retrieving poll answers as it requires to be connected with a YouTube account. Furthermore currently retrieving comments for a given community post isn't supported too by my API.
Note that the pagination of my API works as the one of YouTube Data API v3.
Example of result with the YouTube channel id
UCQxJsAlqmBPAbR_0syDi9mg
:More precisely you would obtain for a post containing:
UgkxZ8SQN2CQpX022xUKBJNYCvY3VtGYMrt3
): see above exampleUgwAKK9XbGapMEH_rNB4AaABCQ
):UgxjystGgDuX45mgJLp4AaABCQ
):UgwSoAm2bGLaJM44UTZ4AaABCQ
):UgkxFeexIJyCyz157nuukfI25v_xqFW4_VUi
):