# Bluesky Posts Scraper: Profiles, Search and Threads (`skillmerc/bluesky-posts-scraper`) Actor

Scrape public Bluesky posts by profile, keyword, hashtag or post URL, with thread replies. Likes, reposts, quotes, links and images. No login, via Bluesky's public API.

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

## Pricing

from $0.35 / 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

## Bluesky Posts Scraper: Profiles, Search and Threads

For marketers, researchers and developers who track Bluesky: get public Bluesky posts as clean JSON, CSV or Excel. Give it profiles, keywords, hashtags or post links, and it returns one row per post with the text, author, date, like, repost, reply and quote counts, languages, links and image URLs. Thread replies are optional. No Bluesky account, login or API key needed.

It reads Bluesky's own public API (the AppView at `public.api.bsky.app` and `api.bsky.app`), the same open endpoints the Bluesky app uses for logged-out reading. It does not open web pages and does not need a proxy. This actor is not made, endorsed or sponsored by Bluesky Social PBC.

### What you get

- **Profiles:** the latest posts of any handle, DID or profile link, newest first. Choose posts only, posts and replies, the author's own threads, or posts with media. Reposts optional.
- **Keyword search:** recent public posts matching a phrase, sorted by latest or top. Bluesky serves logged-out search one page deep, so each search or hashtag returns up to about 100 posts. Split a big topic into several searches. Bluesky's search operators work (`from:`, `mentions:`, `domain:`, `"exact phrase"`).
- **Hashtags:** posts tagged `#python`, `#buildinpublic` and so on.
- **Post URLs:** one or many posts by link, with their thread replies if you want them (in Bluesky's own reply order, up to 20 levels deep).
- **Date filter:** only posts since a date (`2026-11-01`) or a relative time (`7 days`).
- **One row per post,** de-duplicated across all your sources: a post found by two searches is delivered and charged once.

### Quick start

1. Add one or more profiles, keywords, hashtags or post links.
2. Set "Max posts per source" (default 50).
3. Run. Results appear in the Output tab. Export to JSON, CSV, Excel, or read them by API.

With every source empty, the actor returns the latest posts of the demo profile `bsky.app`.

#### Input examples

Latest 100 posts of two profiles, without replies:

```json
{
  "handles": ["bsky.app", "https://bsky.app/profile/atproto.com"],
  "maxItemsPerSource": 100
}
```

Keyword search and a hashtag, last 7 days, newest first:

```json
{
  "searchQueries": ["web scraping"],
  "hashtags": ["#python"],
  "searchSort": "latest",
  "sinceDate": "7 days",
  "maxItemsPerSource": 100
}
```

A post with its replies (two levels deep):

```json
{
  "postUrls": ["https://bsky.app/profile/bsky.app/post/3n2opitxdyc2j"],
  "includeThreadReplies": true,
  "threadDepth": 2,
  "maxItemsPerSource": 300
}
```

### Input options

| Field | Type | Default | What it does |
|---|---|---|---|
| `handles` | list | `[]` | Handles (`alice.bsky.social`, `@alice.bsky.social`), DIDs (`did:plc:...`) or profile links |
| `searchQueries` | list | `[]` | Phrases to search in all public posts |
| `hashtags` | list | `[]` | Hashtags with or without `#` |
| `postUrls` | list | `[]` | Post links (`https://bsky.app/profile/<handle>/post/<id>`) or `at://` URIs |
| `maxItemsPerSource` | integer | 50 | Posts per profile, search, hashtag or thread |
| `maxTotalItems` | integer | 0 (no limit) | Posts for the whole run |
| `sinceDate` | string | none | `2026-11-01`, an ISO time, or `7 days`, `24 hours`. Applies to profiles, searches and hashtags |
| `searchSort` | `latest` or `top` | `latest` | Order of search and hashtag results |
| `searchLanguage` | string | none | Two-letter language code for search and hashtag results (`en`, `de`, `ja` ...) |
| `authorFeedFilter` | select | `posts_no_replies` | `posts_no_replies`, `posts_with_replies`, `posts_and_author_threads`, `posts_with_media` |
| `includeReposts` | boolean | false | Also return posts a profile reposted |
| `includeThreadReplies` | boolean | false | For post URLs, also return the replies |
| `threadDepth` | integer | 6 | Reply levels to follow (1 = direct replies only) |

### Output example

A real row from a test run on 20 Nov 2026 (a reply in a thread; the video `alt` text is shortened here):

```json
{
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitysuc2j",
  "cid": "bafyreicukrrriqobyd7rnkyheos3afuubvwrqddmhvjjkxu4bpt6bz2jnq",
  "url": "https://bsky.app/profile/bsky.app/post/3n2opitysuc2j",
  "author_handle": "bsky.app",
  "author_display_name": "Bluesky",
  "author_did": "did:plc:z72i7hdynmk6r22z27h6tvur",
  "text": "We've also made it easier to share posts from Bluesky. When you tap the arrow icon on mobile, you'll now have the option of sharing directly to your other apps.",
  "created_at": "2026-11-19T18:33:36.814Z",
  "indexed_at": "2026-11-19T18:33:38.544Z",
  "reply_count": 35,
  "repost_count": 77,
  "like_count": 793,
  "quote_count": 12,
  "langs": ["en"],
  "hashtags": [],
  "mention_dids": [],
  "links": [],
  "images": [],
  "video": {
    "playlist": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiapzmyzxc72yow7zhko4fgykat7ppbcvnz4wv7okwcwnesbasy5um/playlist.m3u8",
    "thumbnail": "https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreiapzmyzxc72yow7zhko4fgykat7ppbcvnz4wv7okwcwnesbasy5um/thumbnail.jpg",
    "alt": "A video demonstrating the new share sheet. ..."
  },
  "external": null,
  "quoted_post_uri": null,
  "embedded_record_uri": null,
  "is_reply": true,
  "reply_parent_uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j",
  "reply_root_uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n2opitxdyc2j",
  "is_repost": false,
  "reposted_by": null,
  "reposted_at": null,
  "thread_depth": 1,
  "source_type": "thread_reply",
  "source": "https://bsky.app/profile/bsky.app/post/3n2opitxdyc2j",
  "scraped_at": "2026-11-20T10:05:53.024Z"
}
```

An image post carries `"images": [{ "url": "https://cdn.bsky.app/img/feed_fullsize/plain/...", "alt": "..." }]`.

#### Output fields

| Field | Meaning |
|---|---|
| `uri`, `cid` | The post's AT Protocol address and content id |
| `url` | Link to the post on bsky.app |
| `author_handle`, `author_display_name`, `author_did` | Who posted it, as shown publicly on the profile |
| `text` | Full post text |
| `created_at` | Time the author's app gave the post. `indexed_at`: time Bluesky first saw it |
| `reply_count`, `repost_count`, `like_count`, `quote_count` | Counts at the time of the run |
| `langs` | Languages the author set |
| `hashtags` | Tags in the text and the post's hidden tags |
| `mention_dids` | DIDs of mentioned accounts |
| `links` | Every link in the text and the link card, full URLs |
| `images` | Image URLs and alt text (URLs only; nothing is downloaded) |
| `video` | Video stream (`.m3u8`) and thumbnail URLs, alt text |
| `external` | Link card: URL, title, description, thumbnail |
| `quoted_post_uri` | The post this one quotes. `embedded_record_uri`: an embedded feed, list or starter pack |
| `is_reply`, `reply_parent_uri`, `reply_root_uri` | Reply context when the post is a reply |
| `is_repost`, `reposted_by`, `reposted_at` | Set when a profile reposted the post (only with `includeReposts`) |
| `thread_depth` | 0 for the post you gave, 1 for a direct reply, and so on. Empty outside threads |
| `source_type`, `source` | Which input found it: `author`, `search`, `hashtag`, `post` or `thread_reply`, and the value |
| `scraped_at` | Time of the run |

The run's key-value store also has an `OUTPUT` record: posts delivered, duplicates skipped, sources that failed and why, posts per source, and API requests made. Sources that fail (a handle that does not exist, a deleted post) go to the named dataset `failed-sources` and are never charged.

### Pricing

Pay per event: you pay only for posts delivered to your dataset.

| Apify plan | Price per 1,000 posts |
|---|---|
| Free | USD 0.50 |
| Bronze | USD 0.45 |
| Silver | USD 0.40 |
| Gold and above | USD 0.35 |

Plus USD 0.00005 per run start. Failed sources and duplicate posts are not charged. Set a maximum cost per run in the run options and the actor stops there.

### Speed and run size

One request returns up to 100 posts. The actor sends one request at a time, at least 0.25 s apart, so 1,000 posts from profiles take about 10 to 20 seconds. On HTTP 429 or a server error it waits (using Bluesky's rate-limit headers when present) and retries up to 5 times. The default 256 MB memory is enough; more memory does not make it faster.

### Integrations

#### API (cURL, results in the response)

```bash
curl -X POST "https://api.apify.com/v2/acts/skillmerc~bluesky-posts-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hashtags": ["python"], "maxItemsPerSource": 100}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("skillmerc/bluesky-posts-scraper").call(run_input={
    "searchQueries": ["open source"],
    "sinceDate": "3 days",
    "maxItemsPerSource": 100,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["url"], post["like_count"], post["text"][:80])
```

#### JavaScript

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('skillmerc/bluesky-posts-scraper').call({
    handles: ['bsky.app'],
    maxItemsPerSource: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]?.text);
```

#### n8n, Make and Zapier

- **n8n:** add the Apify node, choose "Run an Actor and get dataset", pick `skillmerc/bluesky-posts-scraper` and paste the input JSON. Each post becomes one n8n item.
- **Make:** use the Apify app's "Run an Actor" module with "Run synchronously" on, then "Get Dataset Items" on its `defaultDatasetId`.
- **Zapier:** use the Apify app's "Run Actor" action, then "Find Dataset Items".
- **Scheduled monitoring:** save your input as an Apify task, add a schedule (for example hourly, with `sinceDate` set to `2 hours`), and connect a webhook or one of the apps above to send new posts to Slack, a sheet or a database.

#### AI agents (MCP)

The actor works as a tool in Apify's MCP server: an agent can call it with handles, keywords or post links and read the posts back as JSON.

### Use cases

- Track mentions of a brand, product or keyword on Bluesky.
- Collect posts on a hashtag for research or a dataset.
- Export a profile's posts with their engagement numbers.
- Pull the full reply thread under a post to read reactions.

### Limits

- Public posts only. Posts from accounts that ask Bluesky to hide them from logged-out viewers are skipped, as the Bluesky app does. Blocked and deleted posts are not returned.
- Search results are Bluesky's own search. It may not return every matching post, and "top" order is Bluesky's ranking.
- Bluesky's search refuses a date filter on hashtag queries. For hashtags the actor applies the date filter itself to the posts it gets.
- Counts change after the run; they are a snapshot.
- No follower lists, no profile details beyond the author fields on each post, no email or phone data, and no media downloads (image and video URLs only).
- Logged-out search returns one page per search or hashtag, up to about 100 posts. Bluesky refuses the next page without a login, so the actor stops there and notes it in the `OUTPUT` warnings.
- Threads return the replies Bluesky serves, which can be fewer than the thread holds.

### FAQ

#### Do I need a Bluesky account or app password?

No. Everything comes from Bluesky's public, logged-out API.

#### Can I get posts from a custom feed or a list?

Not in this version. Profiles, search, hashtags and post links are supported.

#### Why did a handle return nothing?

Check the run's `OUTPUT` record (this run's failures) or the `failed-sources` dataset (failures from all your runs). Common reasons: the handle is misspelled, the account was deleted or suspended, or the account hides its posts from logged-out viewers. You are not charged for it.

#### Why do I get fewer posts than "Max posts per source"?

The profile has fewer posts, the date filter cut older ones, a search reached its one-page limit (about 100 posts), or Bluesky served fewer thread replies. Duplicates found by an earlier source are also skipped.

#### Is it legal?

The actor reads only public data through Bluesky's own public API, the same data anyone can see without logging in, and it does not log in, bypass any limit or collect private data. Posts still contain personal data (names, handles and what people write). You are responsible for how you use the data: if you store or process it, make sure you have a lawful basis under the laws that apply to you (for example GDPR or POPIA) and follow Bluesky's terms. If in doubt, ask a lawyer.

#### Something is wrong or missing. Where do I report it?

Open an issue on this actor's Issues tab with the run link. We answer within 14 days, usually much sooner.

# Actor input Schema

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

Bluesky handles (alice.bsky.social or @alice.bsky.social), DIDs (did:plc:...) or profile links (https://bsky.app/profile/alice.bsky.social). Takes each profile's posts, newest first.

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

Search all public Bluesky posts for each phrase. Bluesky's search syntax works too, for example "from:alice.bsky.social", ""exact phrase"" or "domain:example.com".

## `hashtags` (type: `array`):

Hashtags with or without #, for example python or #buildinpublic. Each is searched as its own source.

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

Post links (https://bsky.app/profile/<handle>/post/<id>) or at:// post URIs. Switch on 'Include thread replies' to also get the replies under each post.

## `maxItemsPerSource` (type: `integer`):

Stop each profile, search, hashtag or thread after this many posts. A search or hashtag returns at most about 100 (Bluesky's logged-out search is one page deep).

## `maxTotalItems` (type: `integer`):

Stop the whole run after this many posts. The run also stops at the maximum cost you set in the run options.

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

Only posts from this date or time on: 2026-11-01, 2026-11-01T08:00:00Z, or relative like "7 days" or "24 hours". Applies to profiles, searches and hashtags.

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

Order of search and hashtag results.

## `searchLanguage` (type: `string`):

Optional two-letter language code (en, de, ja, pt ...) to filter search and hashtag results by the language the author set.

## `authorFeedFilter` (type: `string`):

Which of a profile's posts to take.

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

Also return posts the profile reposted (marked is_repost, with reposted_by).

## `includeThreadReplies` (type: `boolean`):

For each post URL, also return the replies under it, in Bluesky's own reply order, up to 'Max posts per source'.

## `threadDepth` (type: `integer`):

How many levels of replies to follow under each post (1 = direct replies only).

## Actor input object example

```json
{
  "handles": [
    "bsky.app"
  ],
  "maxItemsPerSource": 50,
  "maxTotalItems": 0,
  "searchSort": "latest",
  "authorFeedFilter": "posts_no_replies",
  "includeReposts": false,
  "includeThreadReplies": false,
  "threadDepth": 6
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("skillmerc/bluesky-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"] }

# Run the Actor and wait for it to finish
run = client.actor("skillmerc/bluesky-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"
  ]
}' |
apify call skillmerc/bluesky-posts-scraper --silent --output-dataset

```

## MCP server setup

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