Post
One post with its likes, replies, reposts and quotes.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringIts bsky.app link.
id?stringIts AT-URI (the id its answers give it), instead of url.
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 post: text, images, a video, a link or a quote.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.bluesky.post({ url: "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l" });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" } }}