Community
One community post with its likes and images.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url*stringThe post's link (https://www.youtube.com/post/Ugkx…).
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A video, a Short, a live stream or a community post.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.youtube.community({ url: "https://www.youtube.com/post/UgkxKEltTHuMPh3O9wcRik3GPcX_lA3qrgpK" });Example Response
{ "data": { "id": "UgkxKEltTHuMPh3O9wcRik3GPcX_lA3qrgpK", "url": "https://www.youtube.com/post/UgkxKEltTHuMPh3O9wcRik3GPcX_lA3qrgpK", "text": null, "createdAt": null, "author": { "id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "username": "LinusTechTips", "displayName": "Linus Tech Tips", "avatarUrl": "https://yt3.googleusercontent.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s76-c-k-c0x00ffffff-no-rj-mo", "verified": false, "url": "https://www.youtube.com/@LinusTechTips" }, "stats": { "views": null, "likes": 72000, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "image", "url": "https://yt3.ggpht.com/zVAwOyb82eQ120Ds-IIjYtICWtlyGpqOBMTf3Q6zX7ea6Nm7d_4S3FqyerrYVeZNpQCltlXJWvZGAoU=s1080-rw-nd-v1", "thumbnailUrl": null, "width": null, "height": null, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "community", "title": null, "durationSeconds": null, "publishedText": "12 days ago", "category": null, "keywords": [], "chapters": [], "music": [], "liveNow": false, "unlisted": false, "familySafe": null, "membersOnly": false, "channelSubscribers": null } }}