Skip to Content

Profile Community

A channel's community posts, 10 a page.

GET
/v1/youtube/profile/community

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The channel's handle, with or without @.

channelId?string

The channel's id, instead of handle.

url?string

The channel's link, instead of either.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.youtube.profileCommunity({ handle: "LinusTechTips" });
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": 1700,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://yt3.ggpht.com/zVAwOyb82eQ120Ds-IIjYtICWtlyGpqOBMTf3Q6zX7ea6Nm7d_4S3FqyerrYVeZNpQCltlXJWvZGAoU=s1080-c-fcrop64=1,00000000ffffffff-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      }    },    {      "id": "Ugkx-yl7UncP7NXnKWUhWxo_OvnIEUVp2jIa",      "url": "https://www.youtube.com/post/Ugkx-yl7UncP7NXnKWUhWxo_OvnIEUVp2jIa",      "text": "They've locked Jensen in the back",      "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": 41000,        "comments": 485,        "shares": null,        "saves": null,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://yt3.ggpht.com/n65gr-PC-LrGAcz5PHHcHyxHMs_qf7dr-TGRISu2DTHsUjICvfm6laod5si-cg-xkwBu7gV_HyauVWQ=s1079-c-fcrop64=1,001e0000ffe1ffff-rw-nd-v1",          "thumbnailUrl": null,          "width": null,          "height": null,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "community",        "title": null,        "durationSeconds": null,        "publishedText": "2 weeks ago",        "category": null,        "keywords": [],        "chapters": [],        "music": [],        "liveNow": false,        "unlisted": false,        "familySafe": null,        "membersOnly": false,        "channelSubscribers": null      }    }  ],  "pagination": {    "nextCursor": "4qmFsgKBARIYVUNYdXFTQmxIQUU2WHcteWVKQTBUdW53GkxFZ1Z3YjNOMGM2b0RLQW9rVVRKb1ExSkdVWHBXYXpWcVpXMTRVMVZxUWxkVlJrcElWbTVTYVdWclNrVlNWVVpDS0FyeUJnUUtBa29BmgIWYmFja3N0YWdlLWl0ZW0tc2VjdGlvbg%3D%3D",    "hasMore": true  }}