# Bluesky Scraper: Posts, Profiles, Search & Threads (`davidcastro/bluesky-scraper`) Actor

Scrape Bluesky posts by keyword, hashtag, author or date, full profile timelines, reply threads and people search. Get text, likes, reposts, replies, quotes, links, images, follower counts and emails in bios. No login. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/davidcastro/bluesky-scraper.md
- **Developed by:** [David Castro](https://apify.com/davidcastro) (community)
- **Categories:** Social media, Marketing, 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 $15.00 / 1,000 results

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 Scraper: Posts, Profiles, Search & Threads

Collect public Bluesky data without an account. Search posts by keyword with filters for date, language, hashtag, author, mentions and linked website. Pull complete profile timelines, every reply in a thread, follower lists, and people search results with full profiles. Each post comes with its text, engagement counts, links, images, video, quoted post and author. Each profile comes with its bio, follower and post counts, verification, and the websites and email addresses written in the bio.

### What you get

**Posts**

| Field | Example |
|---|---|
| `text` | "To support their data centers, tech firms are driving construction of..." |
| `url`, `uri`, `postId` | post link, AT URI, record key |
| `createdAt` | 2026-11-12T03:38:52.399Z |
| `authorHandle`, `authorDisplayName`, `authorDid` | mjhaugen.bsky.social, Matthew Haugen, did:plc:... |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount` | 8, 6, 0, 0 |
| `hashtags`, `links`, `mentionedDids` | \[], \["https://www.washingtonpost.com/technology/..."], \[] |
| `images`, `imageAlts`, `videoUrl` | full-size image links, alt text, video stream |
| `externalUrl`, `externalTitle` | link card |
| `quotedPostUrl`, `quotedPostText` | the quoted post, when there is one |
| `isReply`, `replyToUri`, `threadRootUri`, `threadDepth` | reply position |
| `languages`, `labels` | \["en"], \[] |

**Profiles**

| Field | Example |
|---|---|
| `handle`, `displayName`, `did` | bsky.app, Bluesky, did:plc:z72i7hdynmk6r22z27h6tvur |
| `description` | the bio |
| `followersCount`, `followsCount`, `postsCount` | 35626539, 3, 920 |
| `emailsInBio`, `linksInBio` | \["support@bsky.app"], \["bsky.app"] |
| `isVerified`, `customDomainHandle` | verification, own-domain handle |
| `accountCreatedAt`, `avatar`, `banner` | account details |
| `listsCount`, `feedsCount`, `starterPacksCount` | what the account has published |

### Inputs

- **Search posts:** keywords or "exact phrases", sorted by latest or top. Filter by date range, language, hashtags, author, mentioned account, linked domain, minimum likes, and replies on or off. Each search returns up to 100 posts; add more queries or split the date range to collect more.
- **Profiles:** handles, @names or profile links. Returns the profile row and its timeline: posts only, posts and replies, media, videos, or the author's threads. Reposts are optional.
- **Post threads:** post links. Returns the post and every reply below it.
- **Search people:** words found in names, handles or bios, with a minimum follower filter.
- **Followers of:** handles or profile links. Returns every account that follows each one, with handle, name, bio and the links and emails in the bio.

### Example input

```json
{
    "searchQueries": ["climate tech"],
    "sort": "latest",
    "language": "en",
    "since": "2026-11-01",
    "handles": ["nytimes.com"],
    "userSearchQueries": ["data journalist"],
    "maxPostsPerSource": 100
}
```

### Example output

```json
{
    "type": "post",
    "url": "https://bsky.app/profile/mjhaugen.bsky.social/post/3n23kaibtg22x",
    "text": "\"To support their data centers, tech firms are driving construction of a new generation of supersized, gas-fired power plants...\"",
    "createdAt": "2026-11-12T03:38:52.399Z",
    "languages": ["en"],
    "authorHandle": "mjhaugen.bsky.social",
    "authorDisplayName": "Matthew Haugen",
    "likeCount": 8,
    "repostCount": 6,
    "replyCount": 0,
    "quoteCount": 0,
    "links": ["https://www.washingtonpost.com/technology/2026/10/19/big-tech-vowed-lead-climate-now-its-driving-fossil-fuel-boom/"],
    "source": "search",
    "sourceInput": "climate tech"
}
```

### Use cases

- Brand and topic monitoring: track mentions of a company, product or hashtag every day.
- Research and journalism: collect conversations on a topic with dates and engagement.
- Influencer and lead discovery: find accounts by bio keywords, then sort by followers and read the websites and emails they publish.
- Competitor tracking: follow the timelines of competing brands.
- Thread analysis: export every reply to a viral post.

### Pricing

You pay per post or profile delivered. Searches that match nothing, failed inputs and error rows are never charged. The run stops when it reaches your maximum results or your spend limit. Free Apify plans get up to 10 results per run.

### FAQ

**Do I need a Bluesky account?**
No. Only public posts and profiles are returned.

**Why do some fields differ between posts and profiles?**
Each row has a `type`. Post fields are empty on profile rows and the other way around. Use the Overview view or filter by `type`.

**Can I get followers lists?**
Yes. Add handles to "Followers of". Follower rows include the bio but not follower counts; run those handles through "Profiles" for the counts.

**How many posts does one search return?**
Up to 100 per query and filter set. Profile timelines, threads, people search and followers have no such limit.

# Actor input Schema

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

Keywords or phrases, with quotes for exact phrases. Each query returns up to 100 posts. Use several queries or date ranges to collect more.

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

Handles such as bsky.app or nytimes.com, @name, or profile links. Returns the profile and its posts.

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

Bluesky post links. Returns the post and all replies in its thread.

## `userSearchQueries` (type: `array`):

Words to find accounts by name, handle or bio, for example "data journalist". Returns full profiles.

## `followersOf` (type: `array`):

Handles or profile links. Returns the accounts that follow each one, with handle, name, bio and links in the bio.

## `maxPostsPerSource` (type: `integer`):

Limit for each search query, profile timeline, thread, people search or followers list. Post searches return up to 100 posts each.

## `maxResults` (type: `integer`):

Total posts and profiles to deliver in this run. Free Apify plans are limited to 10 per run.

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

Latest posts first, or the most engaged posts first.

## `since` (type: `string`):

Only posts created on or after this date. Also applies to profile timelines.

## `until` (type: `string`):

Only posts created before this date.

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

Two-letter language code for search results, for example en, es, pt or ja.

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

Only search results with all of these hashtags, without the # sign.

## `author` (type: `string`):

Only search results from this handle.

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

Only search results that mention this handle.

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

Only search results that link to this website, for example nytimes.com.

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

Skip posts with fewer likes.

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

Keep only top-level posts in search results and timelines.

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

For each profile in Profiles, add one row with its bio, counters, links and emails in the bio.

## `postsFromProfiles` (type: `boolean`):

Collect posts from each profile's timeline.

## `profileFeed` (type: `string`):

Which posts to take from each profile.

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

Also return posts the profile reposted from others.

## `minFollowers` (type: `integer`):

Skip accounts with fewer followers in people search.

## Actor input object example

```json
{
  "searchQueries": [
    "climate tech"
  ],
  "handles": [],
  "postUrls": [],
  "userSearchQueries": [],
  "followersOf": [],
  "maxPostsPerSource": 50,
  "maxResults": 50,
  "sort": "latest",
  "since": "",
  "until": "",
  "language": "",
  "hashtags": [],
  "author": "",
  "mentions": "",
  "domain": "",
  "excludeReplies": false,
  "includeProfiles": true,
  "postsFromProfiles": true,
  "profileFeed": "posts",
  "includeReposts": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Main fields for posts and profiles.

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

Every field.

# 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 = {
    "searchQueries": [
        "climate tech"
    ],
    "handles": [],
    "postUrls": [],
    "userSearchQueries": [],
    "followersOf": [],
    "maxPostsPerSource": 50,
    "maxResults": 50,
    "since": "",
    "until": "",
    "language": "",
    "hashtags": [],
    "author": "",
    "mentions": "",
    "domain": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("davidcastro/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 = {
    "searchQueries": ["climate tech"],
    "handles": [],
    "postUrls": [],
    "userSearchQueries": [],
    "followersOf": [],
    "maxPostsPerSource": 50,
    "maxResults": 50,
    "since": "",
    "until": "",
    "language": "",
    "hashtags": [],
    "author": "",
    "mentions": "",
    "domain": "",
}

# Run the Actor and wait for it to finish
run = client.actor("davidcastro/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 '{
  "searchQueries": [
    "climate tech"
  ],
  "handles": [],
  "postUrls": [],
  "userSearchQueries": [],
  "followersOf": [],
  "maxPostsPerSource": 50,
  "maxResults": 50,
  "since": "",
  "until": "",
  "language": "",
  "hashtags": [],
  "author": "",
  "mentions": "",
  "domain": ""
}' |
apify call davidcastro/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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