# Bluesky Scraper - Search Posts, Users, Profiles & Feeds (`seungtaek94/bluesky-search`) Actor

Search Bluesky posts and users, export any user's posts, profiles with follower counts, and full reply threads. Uses the official Bluesky API: no browser, no proxies. Likes, reposts, quotes, replies, links, images and video included.

- **URL**: https://apify.com/seungtaek94/bluesky-search.md
- **Developed by:** [seungtaek kim](https://apify.com/seungtaek94) (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 $1.00 / 1,000 result items

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 Scraper - Search Posts, Users, Profiles & Feeds

Get public data from **Bluesky** through the **official Bluesky (AT Protocol) API**: search posts by keyword, hashtag, language, date, author, mention or linked domain; export any user's posts; get profiles with follower counts; search users; and download a post with all its replies. No browser, no proxies, no cookies. Clean JSON, CSV or Excel output.

### What you can get

| Mode | Input | Output |
|---|---|---|
| **Search posts** | `query` + optional filters | Posts matching the query, newest or top first |
| **Posts of users** | `handles` | Each user's posts (optionally replies, media-only, reposts) |
| **User profiles** | `handles` | Bio, avatar, banner, followers, following, post count, join date, pinned post |
| **Search users** | `query` | Accounts matching a name, handle or bio keyword |
| **Post with replies** | `postUrls` | The post plus its nested replies, with depth |

Every post includes text, created time, author (DID, handle, display name, avatar, optional follower count), **like, repost, reply and quote counts**, languages, hashtags, links, mentions, images (full size + alt text), link cards, video, quoted post, and reply/thread references with bsky.app URLs.

### Use cases

- **Brand and keyword monitoring**: track mentions of your brand, product or competitors on Bluesky.
- **Social listening and research**: collect posts on a topic, hashtag or news domain for analysis or sentiment models.
- **Influencer and lead discovery**: search users by keyword and rank them by followers.
- **Account analytics**: export a creator's or company's posts with engagement metrics.
- **Conversation analysis**: download full reply threads.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `searchPosts` | `searchPosts`, `userPosts`, `profiles`, `searchUsers`, `postThread` |
| `query` | string | - | Search text for post / user search. Bluesky syntax works: `"exact phrase"`, `#tag`, `from:handle`. |
| `handles` | array | - | Handles, DIDs or profile URLs for `userPosts` / `profiles`. |
| `postUrls` | array | `[]` | Post URLs or at:// URIs for `postThread`. |
| `maxItems` | integer | `100` | Max results per search, per handle, or per thread. |
| `sort` | select | `latest` | Post search order: `latest` or `top`. |
| `since` / `until` | string | - | Date range for post search (`2026-01-31` or ISO timestamp). |
| `lang` | string | - | Post language, e.g. `en`. |
| `author` / `mentions` | string | - | Only posts by / mentioning this handle. |
| `domain` | string | - | Only posts linking to this domain. |
| `feedFilter` | select | `posts_no_replies` | For `userPosts`: no replies, with replies, self-threads, media only, video only. |
| `includeReposts` | boolean | `false` | For `userPosts`: include reposts (flagged `isRepost`). |
| `threadDepth` | integer | `6` | Reply depth for `postThread`. |
| `includeFollowerCounts` | boolean | `false` | Add `followersCount` to post authors and searched users (extra lookups, no extra charge). |
| `blueskyHandle` / `blueskyAppPassword` | string / secret | - | Optional login, only needed for deep post search (see below). |

Example:

```json
{
    "mode": "searchPosts",
    "query": "web scraping",
    "sort": "latest",
    "lang": "en",
    "since": "2026-11-01",
    "maxItems": 100
}
```

#### Do I need a Bluesky account?

**No, for most modes.** User posts, profiles, user search and reply threads all work without login.

**Post search** without login returns the **first page of results (up to ~100 posts)** for each run, because Bluesky only serves further pages to logged-in users. To collect more search results, add your own Bluesky handle and an **app password** (Bluesky: Settings > Privacy and security > App passwords). The app password is stored as an encrypted secret input, is only sent to Bluesky's own login endpoint (`bsky.social`), is never logged, and can be revoked at any time in your Bluesky settings. Do not use your main password.

### Output

Real examples from a local run. A post (search mode, `includeFollowerCounts` on):

```json
{
    "type": "post",
    "uri": "at://did:plc:hzw3tvbefc3gjmpwg5bloiqh/app.bsky.feed.post/3n2wmgqp3wp2j",
    "cid": "bafyreideblv2llfstc2iiqz3daxj77i7tdfwruyvl7b74pbbnxmyp5kozy",
    "url": "https://bsky.app/profile/datascienceplus.bsky.social/post/3n2wmgqp3wp2j",
    "text": "Web Scraping and Applied Clustering Global Happiness and Social Progress Index\n\n#rstats",
    "createdAt": "2026-11-22T22:00:02Z",
    "indexedAt": "2026-11-22T22:00:03.747Z",
    "author": {
        "did": "did:plc:hzw3tvbefc3gjmpwg5bloiqh",
        "handle": "datascienceplus.bsky.social",
        "displayName": "DataScience+",
        "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:hzw3tvbefc3gjmpwg5bloiqh/bafkreifjczqtpynyeprg6odqfberiq2goybfstodhcs2vd65pjzm6sp6pa",
        "followersCount": 95,
        "createdAt": "2026-07-20T17:22:20.768Z",
        "labels": []
    },
    "replyCount": 0,
    "repostCount": 0,
    "likeCount": 2,
    "quoteCount": 0,
    "bookmarkCount": 1,
    "langs": ["en"],
    "tags": ["rstats"],
    "links": ["https://datascienceplus.com/web-scraping-and-applied-clustering-global-happiness-and-social-progress-index/"],
    "mentions": [],
    "embed": {
        "type": "external",
        "images": [],
        "external": {
            "url": "https://datascienceplus.com/web-scraping-and-applied-clustering-global-happiness-and-social-progress-index/",
            "title": "Web Scraping and Applied Clustering Global Happiness and Social Progress Index",
            "description": "Increasing amount of data is available on the web. Web scraping is a technique developed to extract data from web pages automatically and transforming it into a data format for…",
            "thumb": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:hzw3tvbefc3gjmpwg5bloiqh/bafkreieprpb5uyskfxfqhrwe7ccyu4ipvayitowqzucx3c3bgxxzc3geai"
        },
        "video": null,
        "quotedPost": null
    },
    "isReply": false,
    "replyTo": null,
    "threadRoot": null,
    "labels": [],
    "searchQuery": "web scraping"
}
```

A profile:

```json
{
    "type": "profile",
    "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
    "handle": "bsky.app",
    "url": "https://bsky.app/profile/bsky.app",
    "displayName": "Bluesky",
    "description": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: support@bsky.app",
    "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",
    "banner": "https://cdn.bsky.app/img/banner/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreichzyovokfzmymz36p5jibbjrhsur6n7hjnzxrpbt5jaydp2szvna",
    "followersCount": 35803143,
    "followsCount": 44,
    "postsCount": 928,
    "createdAt": "2023-04-12T04:53:57.057Z",
    "indexedAt": "2026-11-04T15:41:10.973Z",
    "pinnedPost": {
        "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l",
        "url": "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"
    },
    "lists": 26,
    "feedgens": 7,
    "starterPacks": 23,
    "labels": [],
    "verified": false,
    "error": null,
    "input": "bsky.app"
}
```

Mode-specific fields: `searchQuery` (search modes), `sourceHandle`, `isRepost`, `repostedBy`, `isPinned` (user posts), `threadUri`, `threadDepth` (threads; 0 = the root post). The Output tab has a **Posts** table and a **Profiles** table.

### Pricing

Pay per event: **$0.001 per result item** (`item`), i.e. **$1 per 1,000 posts or profiles**, plus Apify's standard run-start fee ($0.00005). Handles that are not found are listed in the dataset with an `error` but **not charged**. Duplicate posts are removed before saving. Use `maxItems` and "Maximum cost per run" to control spending.

### FAQ and limits

**Which API does this use?** Bluesky's official public AppView API (`public.api.bsky.app`, and `api.bsky.app` for post search), the same API the Bluesky app uses. With login, requests go through your own account's server. This follows Bluesky's developer guidelines; the Actor only fetches what you ask for.

**Why did post search stop at ~100 results?** Without login, Bluesky returns only the first page of search results. Add a handle and app password to page deeper. The run's status message tells you when this happened.

**Are deleted or private posts included?** No. Bluesky has no private posts; deleted posts and posts from accounts that block logged-out viewers may be missing, exactly as on bsky.app.

**Rate limits?** The Actor backs off and retries automatically on HTTP 429 and server errors, using Bluesky's `ratelimit-reset` header.

**How far back can I go?** User feeds can be paged back to the account's first post. Post search depth is decided by Bluesky's search index.

# Actor input Schema

## `mode` (type: `string`):

searchPosts: posts matching a query. userPosts: posts from the handles below. profiles: profile details of the handles below. searchUsers: accounts matching a query. postThread: a post and its replies.

## `query` (type: `string`):

For 'Search posts' and 'Search users'. Supports Bluesky search syntax, e.g. "exact phrase", #hashtag, from:handle.

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

For 'Posts of users' and 'User profiles'. Handles (bsky.app, @jay.bsky.team), DIDs, or profile URLs (https://bsky.app/profile/bsky.app). A name without a dot gets .bsky.social appended.

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

For 'Post with replies'. Bluesky post URLs (https://bsky.app/profile/<handle>/post/<id>) or at:// URIs.

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

Maximum number of results for the search query, for each handle, or for each thread. You pay per item, so this also caps cost.

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

Latest = newest first. Top = most relevant / popular.

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

Only posts created on or after this date. Format 2026-01-31 or 2026-01-31T12:00:00Z.

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

Only posts created before this date. Format 2026-01-31 or 2026-01-31T12:00:00Z.

## `lang` (type: `string`):

Only posts in this language (2-letter code, e.g. en, ja, de, pt).

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

Only posts by this account.

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

Only posts that mention this account.

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

Only posts that link to this domain, e.g. nytimes.com.

## `feedFilter` (type: `string`):

Which posts to include from each user's profile feed.

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

Also include posts that the user reposted (marked with isRepost).

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

How many levels of nested replies to fetch for 'Post with replies'.

## `includeFollowerCounts` (type: `boolean`):

Look up full profiles of post authors and searched users to add followersCount, followsCount and postsCount. Uses extra API calls (25 profiles per call), no extra charge.

## `blueskyHandle` (type: `string`):

Optional. Needed only to get more than the first ~100 post search results, which Bluesky allows only for logged-in users. Profiles, user posts, user search and threads work without login.

## `blueskyAppPassword` (type: `string`):

Create one in Bluesky: Settings > Privacy and security > App passwords. Never use your main password. Stored encrypted and used only to call the Bluesky API.

## Actor input object example

```json
{
  "mode": "searchPosts",
  "query": "web scraping",
  "handles": [
    "bsky.app"
  ],
  "postUrls": [],
  "maxItems": 50,
  "sort": "latest",
  "feedFilter": "posts_no_replies",
  "includeReposts": false,
  "threadDepth": 6,
  "includeFollowerCounts": 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 = {
    "mode": "searchPosts",
    "query": "web scraping",
    "handles": [
        "bsky.app"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("seungtaek94/bluesky-search").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 = {
    "mode": "searchPosts",
    "query": "web scraping",
    "handles": ["bsky.app"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("seungtaek94/bluesky-search").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 '{
  "mode": "searchPosts",
  "query": "web scraping",
  "handles": [
    "bsky.app"
  ],
  "maxItems": 50
}' |
apify call seungtaek94/bluesky-search --silent --output-dataset

```

## MCP server setup

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

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/Lf96b4AYBZQl6RhIX/builds/EqkkO01mZPhrwgO4d/openapi.json
