Skip to Content

Post

One post with its likes, replies, reposts and quotes.

GET
/v1/bluesky/post

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

Its bsky.app link.

id?string

Its AT-URI (the id its answers give it), instead of url.

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

One item, as every single-item endpoint answers: { "data": … }.

data*

A post: text, images, a video, a link or a quote.

Example Request
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"    }  }}