Skip to Content

Batch Posts

Up to 50 videos at once, by their ids.

GET
/v1/youtube/batch/posts

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

ids*string

Up to 50 video ids, comma-separated.

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.batchPosts({ ids: "qiLUvCt3k6g,dXo5AvXG8Ds,Ip5EiqbuBpE" });
Example Response
{  "data": [    {      "author": {        "avatarUrl": "https://yt3.ggpht.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s176-c-k-c0x00ffffff-no-rj",        "displayName": "Linus Tech Tips",        "id": "UCXuqSBlHAE6Xw-yeJA0Tunw",        "url": "https://www.youtube.com/@LinusTechTips",        "username": "LinusTechTips",        "verified": true      },      "createdAt": "2026-11-23T22:38:19.000Z",      "ext": {        "category": "Science & Technology",        "channelSubscribers": "16.9M subscribers",        "chapters": [],        "durationSeconds": 4182,        "familySafe": true,        "keywords": [],        "kind": "video",        "liveNow": false,        "membersOnly": true,        "music": [],        "publishedText": null,        "title": "Linus is 3 hours late for WAN - Why is WAN Late Episode 28",        "unlisted": false      },      "hashtags": [],      "id": "qiLUvCt3k6g",      "media": [        {          "durationSeconds": 4182,          "height": null,          "kind": "video",          "thumbnailUrl": "https://i.ytimg.com/vi/qiLUvCt3k6g/maxresdefault.jpg",          "url": null,          "width": null        }      ],      "mentions": [],      "stats": {        "comments": null,        "engagementRate": null,        "likes": 8,        "saves": null,        "shares": null,        "views": null      },      "text": "Thank you for your support! Check out Floatplane for more benefits at a lower price at https://lmg.gg/ytmemberships\n\n► GET MERCH: https://lttstore.com\n► LTX: https://lmg.gg/ltx23\n► SPONSORS, AFFILIATES, AND PARTNERS: https://lmg.gg/partners\n► OUR WAN PODCAST GEAR: https://lmg.gg/wanset\n\nFOLLOW US \n---------------------------------------------------  \nTwitter: https://twitter.com/linustech\nFacebook…",      "url": "https://www.youtube.com/watch?v=qiLUvCt3k6g"    },    {      "author": {        "avatarUrl": "https://yt3.ggpht.com/gnvYLhXy8FAlPXZ2RTrkrgj-5kyt0vdE2FUGVOiKGdEZIa-wN5A-7nwZBlWJLzUMmoh1NWAU=s176-c-k-c0x00ffffff-no-rj",        "displayName": "Linus Tech Tips",        "id": "UCXuqSBlHAE6Xw-yeJA0Tunw",        "url": "https://www.youtube.com/@LinusTechTips",        "username": "LinusTechTips",        "verified": true      },      "createdAt": "2026-11-23T22:39:48.000Z",      "ext": {        "category": "Science & Technology",        "channelSubscribers": "16.9M subscribers",        "chapters": [],        "durationSeconds": 2111,        "familySafe": true,        "keywords": [],        "kind": "video",        "liveNow": false,        "membersOnly": true,        "music": [],        "publishedText": null,        "title": "Extras - AMD Upgrade Luke",        "unlisted": false      },      "hashtags": [],      "id": "dXo5AvXG8Ds",      "media": [        {          "durationSeconds": 2111,          "height": null,          "kind": "video",          "thumbnailUrl": "https://i.ytimg.com/vi/dXo5AvXG8Ds/maxresdefault.jpg",          "url": null,          "width": null        }      ],      "mentions": [],      "stats": {        "comments": null,        "engagementRate": null,        "likes": 14,        "saves": null,        "shares": null,        "views": null      },      "text": "Thank you for your support! Check out Floatplane for more benefits at a lower price at https://lmg.gg/ytmemberships\n\n► GET MERCH: https://lttstore.com\n► LTX: https://lmg.gg/ltx23\n► SPONSORS, AFFILIATES, AND PARTNERS: https://lmg.gg/partners\n► OUR WAN PODCAST GEAR: https://lmg.gg/wanset\n\nFOLLOW US \n---------------------------------------------------  \nTwitter: https://twitter.com/linustech\nFacebook…",      "url": "https://www.youtube.com/watch?v=dXo5AvXG8Ds"    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}