# Bluesky Scraper: Posts, Search, Threads & New-Post Alerts (`alexmorain/bluesky-scraper`) Actor

Scrape Bluesky without an account: posts of any account, search far beyond one page, full threads with replies and profiles, back to a start date. Watch mode returns only new posts, with a webhook for alerts. From $0.30 per 1,000 posts.

- **URL**: https://apify.com/alexmorain/bluesky-scraper.md
- **Developed by:** [Alexis Morain](https://apify.com/alexmorain) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 posts

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

Learn more: https://docs.apify.com/actors/running/actors-in-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

### What does Bluesky Scraper do?

**Bluesky Scraper** collects public data from Bluesky and returns it as clean rows: the **posts of any account**, **search results far beyond one page**, **whole threads with their replies**, and **account profiles**. It reads Bluesky's public AT Protocol API, so you need **no Bluesky account, no app password and no API key**.

What sets it apart is depth. Bluesky's own search stops paginating after the first page of 100 posts, and most scrapers stop with it. This actor walks back through time on its own, one window after the next, so a search keeps going until your limits or the end of the results: **6,000 posts of a search in 38 seconds** on the default 256 MB, and **50,000 posts of one account in about 5 minutes**, measured on the Apify platform in November 2026, with no proxy and no refused request.

What it does not do: it does not read private data (direct messages, mutes, blocks, your own feeds), it does not download images or videos (you get the CDN links), and in this version it does not list followers, follows or likes.

### Why use Bluesky Scraper?

Bluesky is where journalists, researchers, scientists, publishers and a growing share of public conversation moved to. Reading it by hand does not scale, and the platform offers no export.

- **Media and brand monitoring**: search a brand, a product or a topic and keep every mention with its reach (likes, reposts, replies, quotes).
- **Social listening on a schedule**: turn on the watch mode, put the run on a schedule and receive only posts that were never delivered before, with a webhook when the run ends.
- **Competitor and publisher tracking**: read the full feed of any account, with or without replies and reposts.
- **Conversation analysis**: pull a viral post with all its replies, level by level, to study sentiment, arguments or spam.
- **Research and datasets**: build text datasets by keyword, language, domain linked, hashtag or period.
- **Prospecting**: find accounts by name or bio, then read their profile (bio, followers, posts count, verification).

On Apify you also get scheduling, an API, integrations (Make, Zapier, n8n, Slack, Google Sheets), run history and monitoring, with no server to maintain.

### What data can Bluesky Scraper extract?

One row per post (`type: "post"`) and, when asked, one row per account (`type: "profile"`). A source that cannot be read comes back as a free `type: "error"` row.

| Field | Type | Description |
|---|---|---|
| `uri`, `cid`, `url` | text | Permanent AT URI of the post, content id, and the bsky.app link |
| `text` | text | Post text |
| `createdAt`, `indexedAt` | text | Date written by the author's app, and date Bluesky indexed it (ISO 8601, UTC) |
| `langs` | list | Language codes declared by the author |
| `authorDid`, `authorHandle`, `authorDisplayName`, `authorAvatar`, `authorVerified` | text, boolean | The author, with the stable DID and the verification badge |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `bookmarkCount` | number | Engagement counters |
| `isReply`, `replyParentUri`, `replyRootUri` | boolean, text | Position in a conversation |
| `hashtags`, `mentions`, `links` | list | Hashtags without the `#`, mentioned DIDs, links written in the post |
| `embedType`, `images`, `video`, `external`, `quotedPostUri` | text, list, object | Attachments: images with alt text, video (HLS playlist and thumbnail), link card, quoted post |
| `labels` | list | Moderation labels on the post |
| `repostedBy`, `repostedAt` | text | Set when the row comes from a repost in an account feed |
| `threadDepth` | number | In a thread read: 0 = the post, 1 = direct replies, 2 = replies to replies, negative = parents |
| `source` | text | Which input produced the row: `author:<handle>`, `search:<query>`, `thread:<uri>`, `profileSearch:<query>` |
| `scrapedAt` | text | Date of the run |

Profile rows carry `did`, `handle`, `displayName`, `description`, `avatar`, `banner`, `followersCount`, `followsCount`, `postsCount`, `createdAt`, `verified` and `pinnedPostUri`. Rows from an account search do not carry the three counters (Bluesky does not return them there); add the handle to **Accounts** with **Add a profile row per account** to get them.

### How to scrape Bluesky

1. Open the Actor and fill any of the four inputs: **Accounts** (`nytimes.com`), **Post URLs** (a post link, for a thread), **Post searches** (`climate`, `"exact phrase"`, `#hashtag`) or **Account searches** (`journalist`). You can mix them in one run.
2. Set **Max posts per source** (100 by default, `0` reads everything the source has) and, if you want a window, **Only posts since** and **until**.
3. Optional filters for searches: language, links to a website, mentioning an account, hashtag.
4. Click **Start**. Each source is read page after page, up to four sources in parallel.
5. Download the dataset as JSON, CSV or Excel, or read it by API.

A quick first run: leave the prefilled input (`nytimes.com` and `climate`, 30 posts each) and click Start. It finishes in a few seconds.

### How much will it cost to scrape Bluesky?

You pay per result, plus a small start fee. No monthly rental.

| Event | Price |
|---|---|
| Actor start | $0.002 per GB of memory (256 MB runs pay one event) |
| Post | from $0.30 per 1,000 ($0.50 on the Free and Bronze tiers, $0.40 on Silver) |
| Profile | from $0.50 per 1,000 ($1.00 on the Free and Bronze tiers, $0.75 on Silver) |

Free rows are never charged: sources that could not be read, and posts already delivered by an earlier run in watch mode. Use **Max items in the whole run** and the Apify spending limit to cap a run; the actor stops cleanly when the limit is reached and keeps what it delivered. For example, 10,000 posts of a search cost about $5 at the entry price.

### Input

| Field | What it does |
|---|---|
| `handles` | Accounts to read: `nytimes.com`, `@nytimes.com`, a profile link or a `did:plc:` identifier |
| `postUrls` | Posts whose thread you want (`https://bsky.app/profile/<handle>/post/<id>` or `at://` URI) |
| `searchQueries` | Post searches, one per line. Needs real text (no lone `*`) |
| `profileQueries` | Account searches by name or bio |
| `maxPosts`, `maxProfiles`, `maxItems` | Limits per source, per account search and for the whole run (`0` = none) |
| `sinceDate`, `untilDate` | Window. Absolute (`2026-11-01`) or relative (`7 days`) |
| `searchSort` | `latest` (reads as deep as you ask) or `top` (Bluesky's relevance order, one page of up to 100) |
| `language`, `domain`, `mentions`, `hashtag` | Search filters |
| `includeReplies`, `includeReposts` | Keep replies (on by default) and reposts (off by default) of accounts |
| `includeProfiles` | One profile row for each account of `handles` |
| `replyDepth`, `includeParents` | Thread depth (6 by default) and parent posts above a reply |
| `monitorMode`, `registryKey` | `new` delivers each post once across runs |
| `webhookUrl` | Receives a JSON summary of the run by `POST` |

### Output

```json
{
  "type": "post",
  "uri": "at://did:plc:eclio37ymobqex2ncko63h4r/app.bsky.feed.post/3n2lgsxq2v62s",
  "url": "https://bsky.app/profile/nytimes.com/post/3n2lgsxq2v62s",
  "text": "Scientists say the pace of warming ...",
  "createdAt": "2026-11-18T10:15:00.000Z",
  "indexedAt": "2026-11-18T10:15:02.100Z",
  "langs": ["en"],
  "authorHandle": "nytimes.com",
  "authorDisplayName": "The New York Times",
  "authorVerified": true,
  "likeCount": 106,
  "repostCount": 13,
  "replyCount": 15,
  "quoteCount": 7,
  "isReply": false,
  "hashtags": [],
  "links": ["https://www.nytimes.com/..."],
  "embedType": "external",
  "external": { "uri": "https://www.nytimes.com/...", "title": "...", "description": "...", "thumb": "https://cdn.bsky.app/..." },
  "threadDepth": null,
  "source": "author:nytimes.com",
  "scrapedAt": "2026-11-18T12:00:00Z"
}
```

#### Run it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("alexmorain/bluesky-scraper").call(run_input={
    "searchQueries": ["climate"],
    "language": "en",
    "sinceDate": "7 days",
    "maxPosts": 5000,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["authorHandle"], post["likeCount"], post["text"][:80])
```

JavaScript:

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

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('alexmorain/bluesky-scraper').call({
    handles: ['nytimes.com', 'espn.com'],
    maxPosts: 0,
    includeProfiles: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~bluesky-scraper/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"postUrls": ["https://bsky.app/profile/nytimes.com/post/3n2lgsxq2v62s"], "replyDepth": 6}'
```

### Tips and advanced options

- **Monitoring**: set **Watch mode** to *New only*, schedule the run (every 15 minutes, hourly, daily) and add a webhook. The actor remembers, in a key-value store of your account, what it already delivered for each account and search. The first run reads the window you asked for and fixes the starting point; older history is never pulled in later. A run cut short by a limit leaves no hole: the next run fills it.
- **A window on a big source is cheap**: `sinceDate: "24 hours"` on a broad search stops as soon as it reaches older posts.
- **One query, many accounts**: put every account in **Accounts**, and the same post found by several sources is delivered once.
- **Conversation depth**: `replyDepth` 1 reads direct replies only; 1000 reads the whole tree. Blocked or deleted replies are skipped.
- **Filters are free**: reposts and replies you turn off are never charged.

### Limits you should know

- **Search counts are approximate.** Bluesky's own total (`hitsTotal`) is capped at 10,000 and over-reports slightly. On a closed window the actor delivered 707 posts where Bluesky announced 712, and the same window cut into four pieces gave the same 709, so the gap is on Bluesky's side. The run log shows both numbers for every search.
- **Account counts too**: for `nytimes.com` the profile says 45,527 posts and the feed holds 45,433 of the account's own posts (99.8%); the counter includes posts Bluesky no longer serves.
- **Searches need real text.** Bluesky refuses a lone `*` as soon as a date is involved, and deep reads need dates, so every search entry must contain words.
- **`top` order is one page.** Bluesky's relevance order cannot be walked past its first 100 results; only the latest-first order goes deep.
- **Watch mode lags a little.** Bluesky's search index receives posts up to a minute after they are written; to never lose one, a watch run reads up to two minutes ago (15 seconds for account feeds) and the next run picks up the rest.
- **Posts and profiles are public data only.** Deleted, suspended, deactivated or private-to-logged-out accounts come back as a free `not_found` row.

### FAQ, disclaimers and support

#### Is it legal to scrape Bluesky?

The actor reads only what Bluesky publishes openly through its public API, which anyone can call without logging in. You remain responsible for how you use the data: respect privacy law (GDPR and others), the terms of the platform, and the rights of the authors, and avoid collecting personal data you do not need.

#### Do I need a Bluesky account or an API key?

No. No account, no app password, no key.

#### Can it scrape all the posts of an account?

Yes. Set **Max posts per source** to `0` and it reads the feed to its first post (45,000 posts in about five minutes on 256 MB). Reposts and replies can be switched on or off.

#### Can it search past the first 100 results?

Yes, that is the point of the latest-first search: it reads window after window until your limits. Add `sinceDate` to stop at a date.

#### Can I get the replies to a post?

Yes: paste the post link in **Post URLs**. Each reply has a `threadDepth` and the `replyParentUri` it answers.

#### Can I get followers, likes or direct messages?

Not in this version. Direct messages are private and out of reach by design.

#### What happens if the run is interrupted or the platform moves it?

Rows already delivered are not delivered or charged again after a restart, and the watch registry only records what was actually delivered.

#### How do I get help or ask for a feature?

Use the **Issues** tab of this Actor. For programmatic access, see the **API** tab.

### Guide and use cases

Use cases for outbound and automation, the output fields, pricing and common questions are on the [Bluesky Scraper page](https://alexis.morain.fr/en/scrapers/bluesky-scraper/) of my site. The [Social media and content family page](https://alexis.morain.fr/en/scrapers/families/social-content/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

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

Bluesky accounts whose posts you want, one per line: <code>nytimes.com</code>, <code>@nytimes.com</code>, <code>https://bsky.app/profile/nytimes.com</code> or a <code>did:plc:...</code> identifier. The actor reads the account's whole feed, newest first, up to <b>Max posts per source</b>. An account that does not exist, was deleted or suspended comes back as a free row with <code>status</code> set to <code>not_found</code>.

## `postUrls` (type: `array`):

Posts whose conversation you want, one per line: <code>https://bsky.app/profile/nytimes.com/post/3n2lgsxq2v62s</code> or an <code>at://</code> URI. You get the post and its replies, each with a <code>threadDepth</code> (0 = the post, 1 = direct replies, 2 = replies to replies). See <b>Reply depth</b> and <b>Include parent posts</b>.

## `searchQueries` (type: `array`):

Search terms, one per line, as typed in the Bluesky search box: words, <code>"exact phrases"</code>, <code>#hashtag</code>. The search goes <b>far beyond one page</b>: Bluesky's own pagination stops after 100 results, this actor keeps walking back in time until your limits or the end of the results. Every entry needs real text (a lone <code>\*</code> is refused by Bluesky once a date is involved). Combine with the filters below.

## `profileQueries` (type: `array`):

Search accounts by name or bio, one term per line (<code>journalist</code>, <code>fintech founder</code>). Each account is one <b>profile</b> row. Account searches from Bluesky do not return follower counters; add the handles to <b>Accounts</b> with <b>Add a profile row per account</b> for those.

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

The most recent posts to deliver for each account, thread and search, newest first. <code>0</code> reads everything the source has (an account of 100,000 posts takes a few minutes, and you pay per post). Combine with the date window to bound a run.

## `maxProfiles` (type: `integer`):

How many accounts to deliver for each entry of <b>Account searches</b>. <code>0</code> reads every result Bluesky gives.

## `maxItems` (type: `integer`):

Total limit on posts plus profiles for the run, shared by all sources. <code>0</code> means no total limit. Reached, the run stops cleanly with what was delivered.

## `sinceDate` (type: `string`):

Keep posts from this date on: <code>2026-11-01</code>, <code>2026-11-01T08:00:00Z</code> or a relative time such as <code>7 days</code>. Reading stops as soon as it reaches older posts, so a recent window on a huge account or a broad search is fast and cheap.

## `untilDate` (type: `string`):

Keep posts up to this date. The actor jumps straight to that point, it does not read everything newer first. Cannot be combined with the watch mode.

## `searchSort` (type: `string`):

<b>Latest first</b> reads backwards in time without a limit. <b>Top</b> asks Bluesky for its most relevant posts: it returns one page of up to 100 posts and cannot go deeper. Not available with the watch mode.

## `language` (type: `string`):

Only posts declared in this language, as a code: <code>en</code>, <code>fr</code>, <code>pt</code>. Applies to the post searches only.

## `domain` (type: `string`):

Only posts that link to this website, for example <code>nytimes.com</code>. Applies to the post searches only.

## `mentions` (type: `string`):

Only posts that mention this account, for example <code>nytimes.com</code>. Applies to the post searches only.

## `hashtag` (type: `string`):

Only posts that carry this hashtag, with or without the <code>#</code>. Applies to the post searches only.

## `includeReplies` (type: `boolean`):

Keep the replies of the accounts and the searches. Turn off to get only top-level posts. Replies inside the threads you ask for are always kept.

## `includeReposts` (type: `boolean`):

Add the posts an account reposted to its own feed. Each one is a row with <code>repostedBy</code> and <code>repostedAt</code> set. Off by default: reposts are other people's posts.

## `includeProfiles` (type: `boolean`):

Adds one <b>profile</b> row for each account of <b>Accounts</b>: bio, followers, follows, posts count, verification, creation date. Billed as a profile.

## `replyDepth` (type: `integer`):

How many levels of replies to read below each post of <b>Post URLs</b>. <code>1</code> = direct replies only, <code>0</code> = the post alone.

## `includeParents` (type: `boolean`):

For <b>Post URLs</b> that are replies, also deliver the posts above (up to 80), with a negative <code>threadDepth</code>.

## `monitorMode` (type: `string`):

With <b>New only</b> the actor remembers what it has already read and delivered for each account and search in a named key-value store of your account, and only delivers posts that never went out before. Put the run on a schedule to follow accounts, hashtags or brands. The first run reads the window you asked for and fixes the starting point of the watch; older history is never pulled in later. A run cut short (post limit, spending limit) leaves no hole: the next run fills it.

## `registryKey` (type: `string`):

Optional name of this watch. Two schedules with different names keep separate memories; without a name, the memory is tied to the filters of the run (search order, language, domain, replies, reposts), so you can add accounts and searches to the lists at any time.

## `webhookUrl` (type: `string`):

Optional. A JSON summary of the run is sent here by <code>POST</code> when it ends: status, number of posts and profiles, and what each source returned. Works with Slack, Discord, Zapier, Make or n8n URLs.

## `maxConcurrency` (type: `integer`):

How many accounts, threads or searches are read at the same time. Each source is read page after page; raise it for many sources.

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

Optional. Bluesky's public API normally needs no proxy. Leave off unless a run reports refused requests.

## Actor input object example

```json
{
  "handles": [
    "nytimes.com"
  ],
  "searchQueries": [
    "climate"
  ],
  "maxPosts": 30,
  "maxProfiles": 100,
  "maxItems": 0,
  "searchSort": "latest",
  "includeReplies": true,
  "includeReposts": false,
  "includeProfiles": false,
  "replyDepth": 6,
  "includeParents": false,
  "monitorMode": "off",
  "maxConcurrency": 4
}
```

# Actor output Schema

## `posts` (type: `string`):

One row per post: text, author, counters, media, thread position

## `profiles` (type: `string`):

One row per account when profiles are requested

## `dataset` (type: `string`):

Every row with all fields

# 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": [
        "nytimes.com"
    ],
    "searchQueries": [
        "climate"
    ],
    "maxPosts": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/bluesky-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": ["nytimes.com"],
    "searchQueries": ["climate"],
    "maxPosts": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/bluesky-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": [
    "nytimes.com"
  ],
  "searchQueries": [
    "climate"
  ],
  "maxPosts": 30
}' |
apify call alexmorain/bluesky-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexmorain/bluesky-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/Zm7D105xBQkLf8Wmt/builds/iJyIdTsxGI1TK2a6i/openapi.json
