Skip to main content

Path Parameters

post_id
string
required
The community post id (the lc=/Ug… value from a /post/{id} URL).

Response

post_id
string
The community post id.
post_url
string
Full URL to the post (nullable).
post_type
string
Post type: text, poll, image, video, or shared (nullable).
text
string
Post body text (nullable).
Links parsed from the post text.
channel_id
string
Author channel id (nullable).
channel_name
string
Author channel name (nullable).
channel_url
string
Author channel URL (nullable).
channel_thumbnail
string
Author avatar URL (nullable).
published_time_text
string
Relative publish time, e.g. 2 days ago (nullable).
published_utc
number
Unix publish timestamp (nullable).
like_count
integer
Number of likes (nullable).
like_count_text
string
Like count as displayed (nullable).
comment_count
integer
Number of comments (nullable).
poll_choices
array
Poll options (poll posts only).
poll_total_votes
integer
Total votes cast (poll posts only, nullable).
images
array
Attached images, with url, width, height.
attached_video
object
Attached video object, if any (nullable).
shared_post
object
The original post, for shared posts (nullable).
scraped_at
string
ISO 8601 timestamp when the post was scraped.
scraped_utc
number
Unix timestamp when the post was scraped.

Example Response

{
  "post_id": "UgkxAbCdEfGhIjKlMnOpQrStUvWxYz",
  "post_url": "https://www.youtube.com/post/UgkxAbCdEfGhIjKlMnOpQrStUvWxYz",
  "post_type": "poll",
  "text": "Which video should we make next?",
  "channel_id": "UCBR8-60-B28hp2BmDPdntcQ",
  "channel_name": "YouTube",
  "published_time_text": "2 days ago",
  "like_count": 18200,
  "comment_count": 940,
  "poll_choices": [
    { "text": "Behind the scenes", "percentage": 62.0, "votes": 31000 },
    { "text": "Q&A", "percentage": 38.0, "votes": 19000 }
  ],
  "poll_total_votes": 50000,
  "images": [],
  "scraped_at": "2026-06-21T12:00:00Z"
}

Post Comments

To page the comments on a community post, call:
curl "https://scrapebadger.com/v1/youtube/posts/UgkxAbCdEfGhIjKlMnOpQrStUvWxYz/comments" \
  -H "X-API-Key: YOUR_API_KEY"
This returns a CommentsResponse (the same comments + continuation shape as video comments).
A community-post request and a post-comments page each cost 5 credits. Failed requests are not charged.