GET /v1/youtube/community_post

YouTube community post API: text, likes and author by post URL

Returns one community post read from its public page: text, like count and the channel that posted it. Send url as a youtube.com/post URL or the bare Ug… post id.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/youtube/community_post?url=https%3A%2F%2Fwww.youtube.com%2Fpost%2FUgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/youtube/community_post",
    params={
        "url": "https://www.youtube.com/post/UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
url requiredquerystringA community post URL, https://www.youtube.com/post/Ug…, or the bare Ug… post id. Example https://www.youtube.com/post/UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ.
cached queryauto | cache_only | liveauto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts YouTube (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. Default auto.
get_raw querybooleanNot available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. Default false.

Example response

The example response of the API reference, with lists cut to their first 3 items and long text shortened.

json
{
  "data": {
    "id": "UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ",
    "shortcode": null,
    "taken_at": null,
    "kind": null,
    "product_type": "community_post",
    "caption": "Alright, it's that time: https://vote.mkbhd.com\n\nWelcome to the Blind Smartphone Camera Test 2023! 20 smartphones. 3 categories. Scientific winners revealed (I'll collect and reveal all the most interesting data soon. Your winners may surpr…",
    "hashtags": [],
    "mentions": [],
    "accessibility_caption": null,
    "likes": 12000,
    "comments": null,
    "views": null,
    "counts_hidden": null,
    "comments_disabled": null,
    "is_pinned": null,
    "is_paid_partnership": null,
    "owner": {
      "id": "UCBJycsmduvYEL83R_U4JriQ",
      "username": null,
      "full_name": "Marques Brownlee",
      "is_verified": null,
      "is_private": null,
      "avatar_url": null,
      "latest_story_at": null,
      "extra": {}
    },
    "coauthors": [],
    "sponsors": [],
    "tagged": [],
    "location": null,
    "audio": null,
    "thumbnail_url": null,
    "video_duration": null,
    "media": [],
    "media_urls": [],
    "extra": {
      "url": "https://www.youtube.com/post/UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ",
      "published_text": "2 years ago (edited)",
      "attachment_type": "backstageImage",
      "attachment": {
        "video_id": null,
        "title": null,
        "thumbnails": [
          {
            "url": "https://yt3.ggpht.com/zy6PEg0QzlzFe8xfDxpAbe1mGV0pXgc-xV1MvQ7rlf_EWjEj_YqN0Y2b7fiaOCdghICsMxy8tDGDaA=s288-rw-nd-v1",
            "width": 288,
            "height": 225
          },
          {
            "url": "https://yt3.ggpht.com/zy6PEg0QzlzFe8xfDxpAbe1mGV0pXgc-xV1MvQ7rlf_EWjEj_YqN0Y2b7fiaOCdghICsMxy8tDGDaA=s400-rw-nd-v1",
            "width": 400,
            "height": 313
          }
        ]
      }
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-12T13:43:29.715008+00:00",
    "cost": "$0.0005",
    "balance": "$9.9995",
    "request_id": "req_d1182055b864e818d8ff8a46a7e26001"
  }
}

How it works

One community post from its public page. Returns Post under data; the upstream document is an HTML page, so get_raw is not available.

A field YouTube does not carry is null, a list it does not carry is [], and YouTube-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the YouTube account or item does not exist (not_found). You are not charged.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

YouTube API guide