# bluesky.thread

A Bluesky post and the replies under it: each with text, author, time and counts, and the post it answers.

Bluesky post and its replies, one of the Bluesky scrapers.

| | |
| --- | --- |
| Id | `bluesky.thread` |
| Version | 1 |
| Billed per | record — 1 unit for each record of a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/bluesky.thread/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The post's address, e.g. https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l, or its at:// URI. Limit: at most 2048 characters. |
| `max_replies` | integer | no | How many replies to return after the post: 1 to 200. Limit: 1 to 200. Default: `50`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `uri` | string | The post's at:// URI, its permanent id on the network. |
| `cid` | string or null | The content id of this version of the post. |
| `url` | string or null | The post's address on bsky.app. |
| `text` | string or null | The post's text as written; null for a post that is only media. |
| `created_at` | string (date-time) or null | When the author says the post was written, in UTC. |
| `indexed_at` | string (date-time) or null | When Bluesky first saw the post, in UTC. |
| `languages` | array of string | The languages the author marked the post with, e.g. en. |
| `author_did` | string or null | The permanent id (DID) of the account that posted it. |
| `author_handle` | string or null | That account's handle, e.g. bsky.app. |
| `author_name` | string or null | That account's display name. |
| `author_verified` | boolean or null | True when that account carries Bluesky's verification check; null when the answer does not say. |
| `like_count` | integer or null | Number of likes. |
| `reply_count` | integer or null | Number of replies. |
| `repost_count` | integer or null | Number of reposts. |
| `quote_count` | integer or null | Number of posts that quote this one. |
| `bookmark_count` | integer or null | Number of bookmarks; null where the answer does not state it. |
| `hashtags` | array of string | The hashtags the post marks, without the #, in order. |
| `mentions` | array of string | The handles the post mentions, as written in its text without the @, in order. |
| `links` | array of string | The full addresses of the links in the text, in order. |
| `media` | array of object | The post's images or its video, in order. |
| `media[].type` | "image" \| "video" | image or video. |
| `media[].url` | string | The image at full size, or the video's stream playlist (HLS, .m3u8). |
| `media[].thumbnail_url` | string or null | A smaller version of the image, or the video's still image. |
| `media[].alt_text` | string or null | The description the author gave it, when there is one. |
| `media[].width` | integer or null | Width in pixels, or the width part of the aspect ratio the post states. |
| `media[].height` | integer or null | Height in pixels, or the height part of the aspect ratio the post states. |
| `link_card` | object or null | The preview card of the link the post attaches, when it attaches one. |
| `link_card.url` | string | The address the card leads to. |
| `link_card.title` | string or null | The card's title. |
| `link_card.description` | string or null | The card's text. |
| `link_card.thumbnail_url` | string or null | The card's image. |
| `quoted_post_uri` | string or null | The at:// URI of the post this one quotes, when it quotes one. |
| `quoted_post_url` | string or null | That post's address on bsky.app. |
| `reply_to_uri` | string or null | The at:// URI of the post this one replies to; null when it is not a reply. |
| `thread_root_uri` | string or null | The at:// URI of the first post of the thread a reply belongs to. |
| `labels` | array of string | The content labels on the post, the author's own and Bluesky's moderation's, e.g. porn or graphic-media. |
| `reposted_by_handle` | string or null | In an account's posts: the handle of the account that reposted this post, when it is listed as a repost. |
| `reposted_at` | string (date-time) or null | When it was reposted, in UTC. |
| `fetched_at` | string (date-time) | When the answer was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/bluesky.thread/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://bsky.app/profile/bsky.app/post/3n2mkgfb4tk2d","max_replies":2}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "bluesky.thread",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://bsky.app/profile/bsky.app/post/3n2mkgfb4tk2d",
    "max_replies": 2
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": null,
  "units_per_record": 1,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2mkgfb4tk2d",
      "cid": "bafyreif2sisjvqvshmnisis34mt6irs5ptxf3anfbg4qoruzjm6k6a5oim",
      "url": "https://bsky.app/profile/bsky.app/post/3n2mkgfb4tk2d",
      "text": "Read all about @germnetwork.com in @wired.com:",
      "created_at": "2026-11-18T21:57:26.111000Z",
      "indexed_at": "2026-11-18T21:57:26.440000Z",
      "languages": [
        "en"
      ],
      "author_did": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "author_handle": "bsky.app",
      "author_name": "Bluesky",
      "author_verified": false,
      "like_count": 83,
      "reply_count": 5,
      "repost_count": 13,
      "quote_count": 0,
      "bookmark_count": 19,
      "hashtags": [],
      "mentions": [
        "germnetwork.com",
        "wired.com"
      ],
      "links": [],
      "media": [],
      "link_card": null,
      "quoted_post_uri": "at://did:plc:inz4fkbbp7ms3ixufw6xuvdi/app.bsky.feed.post/3n2lfzu4bbf24",
      "quoted_post_url": "https://bsky.app/profile/wired.com/post/3n2lfzu4bbf24",
      "reply_to_uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2m24be4e223",
      "thread_root_uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2m24be4e223",
      "labels": [],
      "reposted_by_handle": null,
      "reposted_at": null,
      "fetched_at": "2026-11-19T18:07:39.169156Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Bluesky scrapers](https://docs.enrichednow.com/results-and-statuses.md#bluesky) are in their own section there.
