Skip to Content

Post Comments

A post's replies, and the replies to them.

GET
/v1/bluesky/post/comments

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

The post's bsky.app link.

id?string

The post's AT-URI (its id), instead of url.

sort?string

top (the most liked first, the default), newest or oldest.

Value in"top""newest""oldest"
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.bluesky.postComments({ url: "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l", sort: "top" });
Example Response
{  "data": [    {      "id": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6ovfftinx2m",      "postId": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l",      "parentId": null,      "text": "• Anyone can create and subscribe to feeds. There are 50k+ feeds here, like posts from mutuals, news, or cat photos!\n\nbsky.app/feeds\n\n• The Discover feed shows you posts that we think you'll like. Help us fine-tune it for you by using the \"Show more\" & \"Show less\" buttons in the three-dot menu.",      "createdAt": "2024-10-17T07:07:26.071Z",      "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"      },      "likes": 3245,      "replies": 61,      "ext": {        "url": "https://bsky.app/profile/bsky.app/post/3l6ovfftinx2m",        "cid": "bafyreid5gnc6nuo4jcnjkp52xu66otq3qioorrrowzlqrnc6l7pupii2eq",        "depth": 1,        "reposts": 283,        "quotes": 41,        "saves": 10,        "media": [],        "link": null,        "langs": [          "en"        ],        "moreReplies": 15,        "byAuthor": true,        "labels": []      }    },    {      "id": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6ovgyi7ah2t",      "postId": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l",      "parentId": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6ovfftinx2m",      "text": "• On Bluesky, you own your online identity. If you own a website, you can set that as your username. We highly recommend official organizations / brands to do this — it's one form of self-verification here!",      "createdAt": "2024-10-17T07:08:19.185Z",      "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"      },      "likes": 3058,      "replies": 52,      "ext": {        "url": "https://bsky.app/profile/bsky.app/post/3l6ovgyi7ah2t",        "cid": "bafyreifvkmpdgo4cbarvbt6he56cjchz5y2bpszsftrdackoobsba2lgiq",        "depth": 2,        "reposts": 323,        "quotes": 83,        "saves": 11,        "media": [],        "link": {          "url": "https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial",          "title": "How to set your domain as your handle - Bluesky",          "description": "Using a domain as your handle helps with account identity, verification, and portability. Here's how to set your domain as your handle.",          "thumbnailUrl": null        },        "langs": [          "en"        ],        "moreReplies": 52,        "byAuthor": true,        "labels": []      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}