YepAPI

Command Palette

Search for a command to run...

POST/v1/youtube/post-comments

YouTube Post Comments API

YouTube post comments API — comments and replies on community posts with author info and likes. Audience insight and sentiment analysis from $0.01/call.

Fetch comments and replies on a YouTube community post. Sort by top or newest. Returns comment text, author info, like counts, and supports pagination.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/youtube/post-comments
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "data": [
      {
        "commentId": "...",
        "authorText": "...",
        "textDisplay": "...",
        "likeCount": 42
      }
    ],
    "continuation": "..."
  }
}

Features

Comments on community posts

Send a community post ID to /v1/youtube/post-comments to fetch the comment thread under that post, returned as a data array.

Sort by top or newest

Pass sort=top for the most-liked comments or sort=new for a chronological feed of the post's discussion.

Author info and like counts

Each comment carries commentId, authorText, textDisplay, and likeCount (e.g. 42), giving you who said what and how it landed.

Pagination with continuation tokens

Use the continuation token to page through every comment on a post with a large discussion thread.

Use cases

Audience Insights

Analyze comments on community posts to understand audience opinions and feedback.

Sentiment Analysis

Run sentiment analysis on post comments to gauge community reactions.

Engagement Tracking

Track comment volume and engagement on community posts over time.

Quick start

Copy this snippet and start making calls.

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

The YouTube Post Comments API — discussion under community posts

The YouTube Post Comments API returns the comment thread beneath a community post. Send a post ID and sort (top or newest) to /v1/youtube/post-comments and get a data array of comments — each with commentId, authorText, textDisplay, and likeCount — plus a continuation token for paging. It reads the conversation a community post sparks.

At $0.01 per call it extends sentiment and engagement analysis to the community tab, not just videos. Where the video Comments endpoint reads discussion under videos, this reads discussion under posts — the other half of a creator's public conversation.

What is a YouTube Post Comments API?

A YouTube Post Comments API returns the comments left on a community post, as structured JSON. You send a post ID and a sort order (top or newest) and receive a data array where each comment has a commentId, authorText, textDisplay, and likeCount, with a continuation token to page through the thread. Community posts — the text, image, and poll updates on a channel's community tab — generate their own discussions, separate from video comments. This endpoint reads those discussions, making it the community-tab counterpart to the video Comments endpoint: same comment shape, different source object.

Build your own community-sentiment tool

When a creator posts a poll or announcement, pull the post's comments and run sentiment analysis on textDisplay to gauge how the audience reacted — weight by likeCount to find the opinions the community endorsed. Track comment volume on a post over time to measure how a community update lands versus a regular video. Mine top comments under community posts for recurring questions and ideas, just as you would video comments. Pair with the Post endpoint to combine the post's own reply count and content with the actual comment text underneath for a complete view.

YouTube Post Comments API pricing — $0.01/call

Each page of post comments costs $0.01 and returns a batch plus a continuation token. There's no daily quota, so paginating an active post's full discussion is just a few cents. The official Data API has no community-post comments endpoint, so this is the only programmatic route to that conversation — a flat cent per page for discussion data the official API doesn't expose.

Post Comments vs. video Comments — one conversation surface

These two endpoints together cover a creator's entire public discussion. The video Comments endpoint reads comments under videos; Post Comments reads comments under community posts. Both return the same author/text/like shape with the same top-or-newest sort, so one sentiment pipeline can ingest both with no extra parsing. Running them in tandem gives a complete picture of audience reaction across a creator's videos and community updates alike, all on one YepAPI key.

Try the YouTube Post Comments API free

Sign up for $5 in free credit, no card required — 500 comment pages. Pull the discussion under a community post with top and newest sorting to test it before adding the community tab to your sentiment pipeline.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Fetch comments and replies on a YouTube community post. Sort by top or newest. Returns comment text, author info, like counts, and supports pagination.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/youtube/post-comments. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More youtube api endpoints