# bluesky.posts

A Bluesky account's posts, newest first: text, time, like, reply, repost and quote counts, hashtags, links, images and video.

Bluesky posts of an account, one of the Bluesky scrapers.

| | |
| --- | --- |
| Id | `bluesky.posts` |
| 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.posts/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 |
| --- | --- | --- | --- |
| `handle` | string | yes | The account's handle, e.g. bsky.app or @bsky.app, its DID, or its profile address (https://bsky.app/profile/bsky.app). Limit: at most 300 characters. |
| `max_posts` | integer | no | How many posts to return, newest first: 1 to 500. Limit: 1 to 500. Default: `30`. |
| `include` | "posts" \| "posts_and_replies" \| "media" | no | posts: the account's own posts and reposts. posts_and_replies: those and its replies to others. media: only its posts with images or video. Default: `"posts"`. |
| `include_reposts` | boolean | no | False leaves out the posts of others that the account reposted. Default: `true`. |
| `cursor` | string | no | Continue an earlier run: the next_cursor it reported. Limit: at least 1 characters, at most 500 characters. |

## 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.posts/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"handle":"bsky.app","max_posts":3}}'
```

## 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.posts",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "handle": "bsky.app",
    "max_posts": 3
  },
  "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/3n2m24be4e223",
      "cid": "bafyreidmek54k7omtngzcobp6dwrszrcmulo77uhgo2uttgmm5vwkwcdda",
      "url": "https://bsky.app/profile/bsky.app/post/3n2m24be4e223",
      "text": "Encrypted DMs from your Bluesky profile—now for Android and iOS!\n\nOur friends at Germ have built end-to-end encrypted messaging, including voice notes, on the same open protocol as Bluesky. Log in to Germ with your Bluesky account for fully … [truncated]",
      "created_at": "2026-11-18T17:05:26.596000Z",
      "indexed_at": "2026-11-18T17:05:30.047000Z",
      "languages": [
        "en"
      ],
      "author_did": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "author_handle": "bsky.app",
      "author_name": "Bluesky",
      "author_verified": false,
      "like_count": 1406,
      "reply_count": 91,
      "repost_count": 343,
      "quote_count": 86,
      "bookmark_count": 309,
      "hashtags": [],
      "mentions": [
        "germnetwork.com"
      ],
      "links": [],
      "media": [
        {
          "type": "image",
          "url": "https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreiau3zyexluy3ri4q4az2fiiagzsmn5x4drfv2pttv7z4bzxd7nopu",
          "thumbnail_url": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreiau3zyexluy3ri4q4az2fiiagzsmn5x4drfv2pttv7z4bzxd7nopu",
          "alt_text": "Graphic showing the Germ DM button at the top of a Bluesky profile.",
          "width": 2400,
          "height": 2400
        }
      ],
      "link_card": null,
      "quoted_post_uri": null,
      "quoted_post_url": null,
      "reply_to_uri": null,
      "thread_root_uri": null,
      "labels": [],
      "reposted_by_handle": null,
      "reposted_at": null,
      "fetched_at": "2026-11-19T18:07:39.151730Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `text`: 279 characters, the first 240 shown.

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.
