# Bluesky Posts Scraper — Search, Accounts, Feeds & Replies (`jaybird/bluesky-posts-scraper`) Actor

Scrape Bluesky posts without a login: keyword and hashtag search with full history, any account's posts, custom feeds, lists and full reply threads. Get text, author, likes, reposts, replies, quotes, images, video, links, hashtags and language. No start fee.

- **URL**: https://apify.com/jaybird/bluesky-posts-scraper.md
- **Developed by:** [Jaybird Technologies](https://apify.com/jaybird) (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

$0.80 / 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.

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 — search, hashtags, accounts, feeds and replies

Scrape public posts from [Bluesky](https://bsky.app) without a login, app password or API key. One Actor covers **keyword and hashtag search** (newest-first through the full history, not just the first 100 results), **any account's posts**, **custom feeds and lists**, and **every reply under a post**. You pay only for posts saved to the dataset, with **no start fee**.

### What you get for each post

- Post URL, AT URI and CID, full text, created and indexed time (ISO)
- Author: DID, handle, display name, avatar, profile URL, account creation date, verification and labels
- Engagement: likes, reposts, replies, quotes and bookmarks
- Languages, hashtags, mentioned accounts (DIDs) and links from the text
- Images (full size + thumbnail + alt text), video (HLS playlist + thumbnail), link card (URL, title, description)
- Quoted post (text, author, counts) for quote posts
- Post type (`post`, `reply`, `quote`, `repost`), reply parent and root URIs, reply depth in threads, who reposted it (for account feeds)
- Which input it came from and when it was scraped

### Input examples

Everything mentioning a topic in English from the last 7 days:

```json
{ "searchTerms": ["openai", "#chatgpt"], "languages": ["en"], "dateFrom": "7 days", "maxItems": 1000, "maxItemsPerSource": 500 }
```

Latest posts from several accounts, without reposts:

```json
{ "handles": ["nytimes.com", "@theverge.com", "https://bsky.app/profile/bsky.app"], "excludeReposts": true, "maxItemsPerSource": 200 }
```

All replies (comments) and quote posts for a post:

```json
{ "postUrls": ["https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"], "includeQuotes": true, "maxItemsPerSource": 2000, "maxItems": 2000 }
```

A custom feed:

```json
{ "feedUrls": ["https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/feed/whats-hot"], "maxItems": 300 }
```

You can also paste any bsky.app profile, post, feed, list, hashtag or search URL into **startUrls**. Search terms support Bluesky operators: `from:handle`, `mentions:handle`, `domain:example.com`, `lang:en` and quoted phrases.

### Pricing

Pay per event: **$0.0008 per post saved**. No start fee, no monthly rent. 1,000 posts cost $0.80. Duplicates (the same post found by two inputs) and posts removed by your filters are not charged. Set "Max posts in total" or a maximum cost per run to cap spending.

### Notes and limits

- Data comes from Bluesky's public AppView API, the same one the bsky.app website uses when you're logged out. Only public posts are returned, and posts hidden by Bluesky's moderation are not included.
- **Latest** search walks back through time, so large topics can return thousands of posts. **Top** search returns up to 100 of the most popular matches per term.
- Bluesky limits very large reply trees: for posts with thousands of replies, the API returns the most relevant few hundred to about a thousand.
- Language filter: posts carry the language their author's app set; posts with no language tag are kept. With a single language, search also asks Bluesky to filter server-side.
- Date filters use the post's own timestamp. Account feeds and searches stop as soon as they pass `dateFrom`, so you don't pay for old posts.
- Requests that fail or are rate-limited are retried automatically (with Apify Proxy as a fallback).

### Related

- [Telegram Channel Scraper](https://apify.com/jaybird/telegram-channel-scraper) — public Telegram channel posts with views and reactions.
- [Substack Scraper](https://apify.com/jaybird/substack-scraper) — Substack newsletter posts.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords, phrases or hashtags, one per line, e.g. openai, "climate change", #rustlang. Bluesky search operators work too: from:handle, mentions:handle, domain:nytimes.com, lang:en. With Latest sorting, results go back through the full history (not just the first 100).

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

Handles, DIDs or profile URLs whose posts to scrape, e.g. nytimes.com, @jay.bsky.team, https://bsky.app/profile/bsky.app. Includes the account's reposts (flagged).

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

Bluesky post URLs. Scrapes the post and its whole reply tree with depth and parent, e.g. https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l.

## `feedUrls` (type: `array`):

Custom feeds (https://bsky.app/profile/<owner>/feed/<name>) or lists (https://bsky.app/profile/<owner>/lists/<id>).

## `startUrls` (type: `array`):

Paste any mix of bsky.app profile, post, feed, list, hashtag (bsky.app/hashtag/ai) or search (bsky.app/search?q=...) URLs; each is detected automatically.

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

Hard cap across all inputs. You are only charged for saved posts.

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

Cap for each search term, account, post, feed or list. 0 = only the total cap applies.

## `sort` (type: `string`):

Latest returns posts newest-first through the full history. Top returns up to 100 of the most popular matches per term.

## `searchAuthor` (type: `string`):

Limit search results to one author handle, e.g. nytimes.com.

## `dateFrom` (type: `string`):

YYYY-MM-DD, an ISO timestamp, or relative like "7 days" or "24 hours". Searches and account feeds stop early once they pass this date.

## `dateTo` (type: `string`):

YYYY-MM-DD (inclusive) or ISO timestamp.

## `languages` (type: `array`):

Keep only posts tagged with these language codes, e.g. en, de, ja, pt. Posts with no language tag (common for news and bot accounts) are kept.

## `minLikes` (type: `integer`):

0 = no filter.

## `minReposts` (type: `integer`):

0 = no filter.

## `onlyWithMedia` (type: `boolean`):

Keep only posts that have images or a video.

## `excludeReplies` (type: `boolean`):

Skip posts that are replies. Replies under the Post URLs you add are always kept.

## `excludeReposts` (type: `boolean`):

Skip reposts of other people's posts in account and feed results.

## `includeAuthorReplies` (type: `boolean`):

For Accounts: also scrape replies the account wrote to other people.

## `includeRootPost` (type: `boolean`):

For Post URLs: save the post itself as well as its replies.

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

How many levels of nested replies to fetch for Post URLs (max 1000).

## `includeQuotes` (type: `boolean`):

For Post URLs: also save posts that quote the post.

## `deduplicate` (type: `boolean`):

Save each post once even if several inputs return it (duplicates are not charged).

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

Not needed: the public Bluesky API is used directly and Apify Proxy is only used automatically as a fallback if requests fail.

## Actor input object example

```json
{
  "searchTerms": [
    "#ai"
  ],
  "maxItems": 200,
  "maxItemsPerSource": 100,
  "sort": "latest",
  "minLikes": 0,
  "minReposts": 0,
  "onlyWithMedia": false,
  "excludeReplies": false,
  "excludeReposts": false,
  "includeAuthorReplies": false,
  "includeRootPost": true,
  "threadDepth": 100,
  "includeQuotes": false,
  "deduplicate": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "searchTerms": [
        "#ai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jaybird/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 = { "searchTerms": ["#ai"] }

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

```

## MCP server setup

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