Bluesky post and thread viewer

Markdown version

GET/tools/post-viewer

Reads a public Bluesky post without an account: its text, counts and labels, its parents up to the root and its first 50 replies, its author's self-thread as Markdown, and optionally Bluesky's official embed snippet. Authors who share only with signed-in users are respected. Costs 3 calls.

Parameters

NameInTypeDescription
post (required)querystringA bsky.app post link (`https://bsky.app/profile/<handle>/post/<rkey>`) or an `at://…/app.bsky.feed.post/…` URI.
embedqueryboolean, default falseAlso return Bluesky's embed snippet (an HTML string).
widthqueryinteger (220–600), default 550The embed's maximum width in pixels, 220 to 600.

Responses

StatusDescriptionBody
200The tool's answer, with the canonical URL of its page.ToolPostViewer
400Invalid query parameter (code `bad_request`).Error
401Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously.Error
404Not found. Also returned on a bot's handle subdomain: the API is only served on the main site.Error
429Rate limited: `toolsApi` (60 a minute) and `toolsApiDaily` (2,000 a day) per IP, or 10 times both per account with a creator's token. A tool that fans out costs more than one call.Error
500Unexpected error.Error
502The service the tool asks did not answer (code `upstream_error`).Error

Example

bash
curl \
  -G \
  --data-urlencode "post=bsky.app/profile/bsky.app/post/3n22yg6lg2k2f" \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  https://bluesky.bot/api/v1/tools/post-viewer

Schemas

Error

FieldTypeDescription
error (required)object
error.code (required)string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required"
error.message (required)string
error.reasonstringWith `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`.
error.urlstring, uriWith consent_required: open this dashboard page to grant profile editing.
error.fieldstringWith `invalid_listing`: the refused field.
error.scopestringWith `insufficient_scope`: the scope the token lacks.
error.parameterstringThe invalid query parameter.
error.retryAfterSecondsinteger (1–)With `rate_limited`.

ToolPostViewer

FieldTypeDescription
tool (required)string = "post-viewer"The tool's slug.
url (required)stringThe canonical URL of the tool's page on Bluesky.bot.
result (required)objectThe tool's answer.
result.status (required)string: "post", "hidden", "gone"`post`; `hidden`: the author shares only with signed-in users, or a moderation label hides it (nothing else is returned); `gone`: the author's account is taken down, suspended, deactivated or deleted.
result.reason (required)string | nullWhy it is hidden (`no_unauthenticated`, `account_label`, `post_label`) or gone (`takendown`, `suspended`, `deactivated`, `deleted`); null for a post.
result.url (required)stringThe post on bsky.app.
result.post (required)object | nullThe post; null when hidden or gone.
result.parents (required)object[]The parents, root first; empty for a root post.
result.parents[].depth (required)integer0 for the root among the parents, 1 for a direct reply.
result.parents[].status (required)string: "post", "hidden", "not_found", "blocked"`post`; `hidden`: its author shares only with signed-in users or a moderation label hides it; `not_found`: deleted; `blocked`.
result.parents[].post (required)object | nullThe post, when `status` is `post`.
result.replies (required)object[]The replies in reading order (depth first), at most 50 and 6 levels deep.
result.replies[].depth (required)integer0 for the root among the parents, 1 for a direct reply.
result.replies[].status (required)string: "post", "hidden", "not_found", "blocked"`post`; `hidden`: its author shares only with signed-in users or a moderation label hides it; `not_found`: deleted; `blocked`.
result.replies[].post (required)object | nullThe post, when `status` is `post`.
result.article (required)string | nullThe root author's self-thread as Markdown, when it has two posts or more; else null.
result.embedHtml (required)string | nullBluesky's embed snippet, when asked for and available. Paste it in a web page as is.