YepAPI
YouTube API

Community Post

Get details for a YouTube community post.

POST/v1/youtube/post
$0.01/call

Usage

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

Request Body

ParameterTypeRequiredDescriptionDefault
idstringYesYouTube post ID

Response

{
  "ok": true,
  "data": {
    "postId": "UgkxMy8D54...",
    "channelTitle": "Creator",
    "channelId": "UCxyz...",
    "contentText": "What video should I make next?",
    "likeCount": 5432,
    "replyCount": 890,
    "publishedTimeText": "2 days ago",
    "thumbnail": [
      { "url": "https://yt3.ggpht.com/...", "width": 48, "height": 48 }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.postIdstringUnique community post identifier
data.channelTitlestringName of the channel that created the post
data.channelIdstringUnique identifier for the channel
data.contentTextstringText content of the community post
data.likeCountnumberNumber of likes on the post
data.replyCountnumberNumber of replies/comments on the post
data.publishedTimeTextstringRelative publish time (e.g. 2 days ago)
data.thumbnailobject[]Post image or attachment thumbnails

On this page