Skip to Content

Batch Posts

Up to 25 posts at once, by their ids or links.

GET
/v1/bluesky/batch/posts

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

ids*string

Up to 25 posts, comma-separated: their AT-URIs (their ids) or bsky.app links.

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.bluesky.batchPosts({ ids: "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l,at://did:plc:dalbbospvxinrzc7a5clbnyj/app.bsky.feed.post/3n2xthjwiac22,at://did:plc:e6n7jxtu2qrhwvp3j6ib6sq6/app.bsky.feed.post/3n2u4lvqty227" });
Example Response
{  "data": [    {      "id": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l",      "url": "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l",      "text": "👋  Bluesky is an open social network that gives creators independence from platforms, developers the freedom to build, and users a choice in their experience. We're so excited to have you here! \n\nWe share Bluesky updates & news from this account. A quick orientation thread: 🧵✨",      "createdAt": "2024-10-17T07:06:51.491Z",      "author": {        "id": "did:plc:z72i7hdynmk6r22z27h6tvur",        "username": "bsky.app",        "displayName": "Bluesky",        "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",        "verified": false,        "url": "https://bsky.app/profile/bsky.app"      },      "stats": {        "views": null,        "likes": 63842,        "comments": 8779,        "shares": 9585,        "saves": 290,        "engagementRate": null      },      "media": [],      "hashtags": [],      "mentions": [],      "ext": {        "cid": "bafyreicnt42y6vo6pfpvyro234ac4o6ijug6adwwrh7awflgrqlt4zibxq",        "rkey": "3l6oveex3ii2l",        "quotes": 729,        "langs": [          "en"        ],        "replyTo": null,        "repost": null,        "pinned": false,        "quoted": null,        "link": null,        "altTexts": [],        "repliesRestricted": true,        "labels": [],        "indexedAt": "2024-10-17T07:06:51.491Z"      }    },    {      "id": "at://did:plc:dalbbospvxinrzc7a5clbnyj/app.bsky.feed.post/3n2xthjwiac22",      "url": "https://bsky.app/profile/odpomery.bsky.social/post/3n2xthjwiac22",      "text": "Night and day illustrations I did for @bsky.app earlier this year!",      "createdAt": "2026-11-23T09:38:25.356Z",      "author": {        "id": "did:plc:dalbbospvxinrzc7a5clbnyj",        "username": "odpomery.bsky.social",        "displayName": "Owen D. Pomery",        "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:dalbbospvxinrzc7a5clbnyj/bafkreigbxpqxwqgngqy35jgpzh7pguqtklvfbffjr523hubgpcqgobnc5e",        "verified": false,        "url": "https://bsky.app/profile/odpomery.bsky.social"      },      "stats": {        "views": null,        "likes": 1536,        "comments": 21,        "shares": 93,        "saves": 42,        "engagementRate": null      },      "media": [        {          "kind": "video",          "url": "https://video.bsky.app/watch/did%3Aplc%3Adalbbospvxinrzc7a5clbnyj/bafkreidgg5yet4cavzeyh3hdljkh5ttfum7o27rqjvhyqpf7gslt55irsu/playlist.m3u8",          "thumbnailUrl": "https://video.bsky.app/watch/did%3Aplc%3Adalbbospvxinrzc7a5clbnyj/bafkreidgg5yet4cavzeyh3hdljkh5ttfum7o27rqjvhyqpf7gslt55irsu/thumbnail.jpg",          "width": 800,          "height": 1302,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [        "bsky.app"      ],      "ext": {        "cid": "bafyreicahfeh6pb3htyefflu7fcjjle7pqetqypmx2ko3ymvr6hbo2fi3e",        "rkey": "3n2xthjwiac22",        "quotes": 4,        "langs": [          "en"        ],        "replyTo": null,        "repost": null,        "pinned": false,        "quoted": null,        "link": null,        "altTexts": [],        "repliesRestricted": false,        "labels": [],        "indexedAt": "2026-11-23T09:38:28.548Z"      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}