Bluesky post and thread viewer
Markdown versionGET/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
| Name | In | Type | Description |
|---|---|---|---|
| post (required) | query | string | A bsky.app post link (`https://bsky.app/profile/<handle>/post/<rkey>`) or an `at://…/app.bsky.feed.post/…` URI. |
| embed | query | boolean, default false | Also return Bluesky's embed snippet (an HTML string). |
| width | query | integer (220–600), default 550 | The embed's maximum width in pixels, 220 to 600. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolPostViewer |
| 400 | Invalid query parameter (code `bad_request`). | Error |
| 401 | Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously. | Error |
| 404 | Not found. Also returned on a bot's handle subdomain: the API is only served on the main site. | Error |
| 429 | Rate 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 |
| 500 | Unexpected error. | Error |
| 502 | The service the tool asks did not answer (code `upstream_error`). | Error |
Example
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-viewerSchemas
Error
| Field | Type | Description |
|---|---|---|
| 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.reason | string | With `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`. |
| error.url | string, uri | With consent_required: open this dashboard page to grant profile editing. |
| error.field | string | With `invalid_listing`: the refused field. |
| error.scope | string | With `insufficient_scope`: the scope the token lacks. |
| error.parameter | string | The invalid query parameter. |
| error.retryAfterSeconds | integer (1–) | With `rate_limited`. |
ToolPostViewer
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "post-viewer" | The tool's slug. |
| url (required) | string | The canonical URL of the tool's page on Bluesky.bot. |
| result (required) | object | The 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 | null | Why it is hidden (`no_unauthenticated`, `account_label`, `post_label`) or gone (`takendown`, `suspended`, `deactivated`, `deleted`); null for a post. |
| result.url (required) | string | The post on bsky.app. |
| result.post (required) | object | null | The post; null when hidden or gone. |
| result.parents (required) | object[] | The parents, root first; empty for a root post. |
| result.parents[].depth (required) | integer | 0 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 | null | The 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) | integer | 0 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 | null | The post, when `status` is `post`. |
| result.article (required) | string | null | The root author's self-thread as Markdown, when it has two posts or more; else null. |
| result.embedHtml (required) | string | null | Bluesky's embed snippet, when asked for and available. Paste it in a web page as is. |