# Bluesky Account Posts Scraper (`xtracto/bluesky-account-posts-scraper`) Actor

Scrape latest posts (and optionally replies, media, threads) from any public Bluesky account. HTTP-only, no login required.

- **URL**: https://apify.com/xtracto/bluesky-account-posts-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bluesky Account Posts Scraper

Bulk-scrape the public post timeline of any Bluesky account — text, media, engagement counts (likes, reposts, replies, quotes, bookmarks), reply chains, and quoted posts — in a clean structured JSON output.

### Why use this actor

- **No account / no login required** — just give it a Bluesky handle (e.g. `bsky.app`) or a DID.
- **No API key needed** — returns the same data the Bluesky web app shows.
- **Rich detail** — full post text, media (images, video, external link cards), facets (mentions, links, tags), quoted posts, reply context, repost reasons, and live engagement counts.
- **Smart feed filters** — toggle between full timeline, replies-only-stripped, media-only, or include the account's own reply threads, without any post-processing.
- **Bulk input** — pass a list of handles in one run; each post becomes one dataset row tagged with its source handle.
- **Per-account isolation + automatic retries** — a failure on one handle does not abort the whole run; transient errors retry with backoff, and accounts that genuinely don't exist surface as `_error: "not_found"`.
- **Stable JSON output** suitable for pipelines, spreadsheets, and databases — every row carries `_input`, `_source`, `_scrapedAt` envelope fields so you can join results back to your input list.

### How it works

1. You provide a list of Bluesky handles (e.g. `bsky.app`, `jay.bsky.team`) or DIDs.
2. The actor walks each account's timeline page by page until it hits your `maxPosts` limit or the timeline runs out.
3. Each post is returned with the full author block, the original post record, any embedded media or quoted posts, and the latest engagement counts.
4. Results stream into your dataset, ready to download as JSON, CSV, or Excel.

You do not need to manage scrapers, browsers, or rotating IPs — all handled internally.

### Input

```json
{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxPosts": 100,
  "filter": "posts_with_replies",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["DATACENTER"]
  }
}
```

| Field | Type | Description |
|---|---|---|
| `handles` | array | One or more Bluesky handles (e.g. `bsky.app`) or DIDs (`did:plc:...`). Both formats accepted in the same list. |
| `maxPosts` | integer | Maximum posts to fetch per account. Use `0` for unlimited (until the timeline is exhausted). Default: `100`. |
| `filter` | string | `posts_with_replies` (default, full timeline), `posts_no_replies`, `posts_with_media` (media-only), or `posts_and_author_threads`. |
| `proxyConfiguration` | object | Apify Proxy settings. Datacenter group is the cheapest option and works for Bluesky. |

### Output

Input: `bsky.app`, `maxPosts: 3`, `filter: posts_with_replies`.

```json
{
  "post": {
    "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mlvllqtnmk2g",
    "cid": "bafyreidkkomfz72otqfbyj4y2zjetrn456hko6pxzj3yhozyoxfx3s6eyy",
    "author": {
      "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "handle": "bsky.app",
      "displayName": "Bluesky",
      "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",
      "createdAt": "2023-04-12T04:53:57.057Z",
      "verification": {
        "verifiedStatus": "none",
        "trustedVerifierStatus": "valid"
      }
    },
    "record": {
      "$type": "app.bsky.feed.post",
      "createdAt": "2026-05-15T14:54:22.994Z",
      "langs": ["en"],
      "text": "THE INTERNET FOR $600: This social media app now boasts at least 200 \"Jeopardy!\" contestants and champions (including one host).",
      "embed": {
        "$type": "app.bsky.embed.record",
        "record": {
          "cid": "bafyreida3vtrwyjlngev73bmkjmxzi2ccstksiuvirkjhf55larupdvkaa",
          "uri": "at://did:plc:qrllvid7s54k4hnwtqxwetrf/app.bsky.feed.post/3kzwdmzvnf223"
        }
      }
    },
    "embed": {
      "$type": "app.bsky.embed.record#view",
      "record": {
        "author": { "handle": "joshuajfriedman.com", "displayName": "Joshua J. Friedman" },
        "value": {
          "text": "Bluesky users include about 50 Jeopardy! champions who put that info in their bio! And 10 who use a photo with the host as their profile pic",
          "createdAt": "2024-08-17T15:04:54.443Z"
        },
        "likeCount": 1229,
        "replyCount": 95,
        "repostCount": 99,
        "quoteCount": 73
      }
    },
    "replyCount": 71,
    "repostCount": 141,
    "likeCount": 1920,
    "quoteCount": 28,
    "bookmarkCount": 39,
    "indexedAt": "2026-05-15T14:54:23.265Z",
    "labels": [],
    "threadgate": {
      "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.threadgate/3mlvllqtnmk2g",
      "record": {
        "hiddenReplies": [
          "at://did:plc:3r2ydi2f75r2hct527i637l5/app.bsky.feed.post/3mlvlot3nzc2i",
          "at://did:plc:3r2ydi2f75r2hct527i637l5/app.bsky.feed.post/3mlvlpj7ldk2i",
          "... 3 more"
        ]
      }
    }
  },
  "_input": "bsky.app",
  "_source": "S1-xrpc",
  "_scrapedAt": "2026-05-18T10:35:07.434196+00:00"
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The handle or DID exactly as you supplied it. Use this to join results back to your input list. |
| `_source` | string | Internal tag for the path used to fetch the record. `S1-xrpc` is the primary path; values starting with `S2-` would indicate a fallback was used. |
| `_scrapedAt` | string | ISO-8601 UTC timestamp when the record was scraped. |
| `post.uri` | string | `at://` URI of the post — globally unique, stable. |
| `post.cid` | string | Content hash of the post record. |
| `post.author` | object | Author block: `did`, `handle`, `displayName`, `avatar`, `createdAt`, plus verification status. |
| `post.record` | object | The raw post record: `text`, `createdAt`, `langs`, `facets` (mentions/links/tags), and any `embed` the author attached. |
| `post.embed` | object | Hydrated embed view — images/video URLs, external link cards, or the full quoted post when the author quoted someone. |
| `post.replyCount` | integer | Number of replies on this post at scrape time. |
| `post.repostCount` | integer | Number of reposts. |
| `post.likeCount` | integer | Number of likes. |
| `post.quoteCount` | integer | Number of times this post has been quoted. |
| `post.bookmarkCount` | integer | Number of bookmarks. |
| `post.indexedAt` | string | When the Bluesky relay first indexed this post. |
| `post.labels` | array | Moderation labels attached to the post (e.g. content warnings). Usually empty. |
| `post.threadgate` | object | Present only when the author restricted replies — lists hidden reply URIs and reply-permission rules. |
| `reply` | object | Present only when the post is itself a reply — contains `root` and `parent` post references. |
| `reason` | object | Present only when the timeline item is a repost — contains `by` (who reposted) and `indexedAt`. |

#### Error envelope

Handles that don't exist or fail to fetch return a structured error instead of crashing the run:

```json
{
  "_input": "this-handle-does-not-exist.bsky.social",
  "_source": "S1-xrpc",
  "_error": "not_found",
  "_errorDetail": "InvalidRequest: Profile not found",
  "_scrapedAt": "2026-05-18T10:35:09.012345+00:00"
}
```

Filter on `_error` to triage failed rows.

### Pricing

This actor is billed per result: **$1.50 per 1,000 posts**. Each post in your dataset = 1 result. Error rows (not-found, invalid-request) are not billed.

### Other Sosmed Actors

| Platform | Actor | Best for |
|---|---|---|
| Bluesky | [Bluesky Account Scraper](https://apify.com/xtracto/bluesky-account-scraper) | Profile data + follower counts for a handle |
| Bluesky | [Bluesky Post Detail Scraper](https://apify.com/xtracto/bluesky-post-detail-scraper) | Full thread for a single post URI |
| X / Twitter | [X Account Tweets Scraper](https://apify.com/xtracto/x-account-tweets-scraper) | Bulk tweets from any handle |
| Threads | [Threads Account Threads Scraper](https://apify.com/xtracto/threads-account-threads-scraper) | Bulk threads from any Threads handle |
| Instagram | [Instagram Account Posts Scraper](https://apify.com/xtracto/instagram-account-posts-scraper) | All posts/reels from any IG account |
| Telegram | [Telegram Channel Posts Scraper](https://apify.com/xtracto/telegram-channel-posts-scraper) | Public channel post archive |
| Mastodon | [Mastodon Account Scraper](https://apify.com/xtracto/mastodon-account-scraper) | Profile + recent toots |

Browse the full catalog at [apify.com/xtracto](https://apify.com/xtracto).

### Notes

- `maxPosts: 0` means **unlimited** — the actor will paginate until the timeline ends. Be mindful of dataset cost for huge accounts.
- Engagement counts (`likeCount`, `repostCount`, etc.) are live at scrape time — Bluesky does not expose historical counts.
- Pinned posts may appear once at the top of the feed regardless of chronological order.
- Suspended or deactivated accounts return an empty feed; private/blocked accounts return an `_error` envelope.
- Use the `posts_with_media` filter when you only want posts that contain images or video — this is cheaper than fetching everything and filtering client-side.
- The `post.author.did` is the most reliable identifier — handles can change but DIDs do not.

# Actor input Schema

## `handles` (type: `array`):

One or more Bluesky handles (e.g. `bsky.app`) or DIDs (e.g. `did:plc:z72i7hdynmk6r22z27h6tvur`) whose post timeline you want to scrape. Both formats are accepted in the same list.

## `maxPosts` (type: `integer`):

Maximum number of posts to fetch per account. Set to `0` for unlimited (fetch until the account's timeline is exhausted). Defaults to 100.

## `filter` (type: `string`):

Which posts to include in the result. `posts_with_replies` returns the full timeline (default). `posts_no_replies` skips replies. `posts_with_media` returns only posts that contain images or video. `posts_and_author_threads` returns posts plus the account's own reply threads.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Datacenter proxies work for Bluesky and are the cheapest option.

## Actor input object example

```json
{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxPosts": 100,
  "filter": "posts_with_replies",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `post` (type: `string`):

Post as reported by the source.

## `reply` (type: `string`):

Reply as reported by the source.

## `reason` (type: `string`):

Reason as reported by the source.

## `_input` (type: `string`):

The input value this row was produced from.

## `_scrapedAt` (type: `string`):

UTC timestamp of the scrape, ISO 8601.

## `_source` (type: `string`):

Which extraction strategy produced the row.

## `_error` (type: `string`):

Set only on diagnostic rows - why that target produced no data.

## `_errorDetail` (type: `string`):

Extra context for the error.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "handles": [
        "bsky.app",
        "jay.bsky.team"
    ],
    "filter": "posts_with_replies",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/bluesky-account-posts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "handles": [
        "bsky.app",
        "jay.bsky.team",
    ],
    "filter": "posts_with_replies",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/bluesky-account-posts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "filter": "posts_with_replies",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xtracto/bluesky-account-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/bluesky-account-posts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FnwwaypTFLFruMJzZ/builds/3G7hxAoedToZTDa3W/openapi.json
