YepAPI
YouTube API

Channel Community

Get community posts from a YouTube channel.

POST/v1/youtube/channel-community
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/youtube/channel-community', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ id: 'UCAuUUnT6oDeKwE6v1NGQxug' }),
});
const { data } = await res.json();
console.log(data.data, data.continuation);
curl -X POST https://api.yepapi.com/v1/youtube/channel-community \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "UCAuUUnT6oDeKwE6v1NGQxug"}'

Request Body

ParameterTypeRequiredDescriptionDefault
idstringYesYouTube channel ID
tokenstringNoPagination token
geostringNoCountry code for geo-specific results
langstringNoLanguage code

Response

{
  "ok": true,
  "data": {
    "meta": {
      "channelId": "UCAuUUnT6oDeKwE6v1NGQxug"
    },
    "data": [
      {
        "postId": "UgkxMy8D54...",
        "authorText": "TED",
        "contentText": "What topic should we cover next?",
        "likeCount": 1234,
        "publishedTimeText": "3 days ago",
        "thumbnail": [
          { "url": "https://yt3.ggpht.com/...", "width": 48, "height": 48 }
        ]
      }
    ],
    "continuation": "4qmF..."
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.metaobjectChannel metadata
data.meta.channelIdstringUnique YouTube channel identifier
data.dataobject[]Array of community post objects
data.data[].postIdstringUnique community post identifier
data.data[].authorTextstringDisplay name of the post author
data.data[].contentTextstringText content of the community post
data.data[].likeCountnumberNumber of likes on the post
data.data[].publishedTimeTextstringRelative publish time (e.g. 3 days ago)
data.data[].thumbnailobject[]Post attachment or author avatar images
data.continuationstringToken to fetch the next page of results

On this page