# Bluesky Scraper – Posts, Profiles, Followers & Search API (`gazidev/bluesky-scraper`) Actor

Scrape Bluesky via the official AT Protocol API: user posts (date range, replies/reposts), profiles, followers/following, threads & replies, likers, quotes, keyword search and custom feeds. Likes, reposts, images, links, hashtags. No login needed. $0.80 per 1,000 posts.

- **URL**: https://apify.com/gazidev/bluesky-scraper.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 post scrapeds

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 – Posts, Profiles, Followers & Search API

Scrape **Bluesky** posts, profiles, followers, following lists, threads, likers, reposters, quote posts, keyword search results and custom feeds using **Bluesky's official AT Protocol API**. It needs no browser and no proxies, and most modes need no account.

- **11 modes.** User posts with date filters, profiles, followers/following, threads and replies, quotes, likers, reposters, post and user search, custom feeds and lists.
- **Official API, no login for most modes.** Reads go through Bluesky's public AppView. Rate limits and opt-out labels are respected, and an optional App Password unlocks deep search.
- **$0.80 per 1,000 posts.** Profiles cost $1.00 per 1,000 and followers $0.50 per 1,000, with a $0.0001 start fee.

### Quick start

This is the prefilled input: the 5 newest posts from 2 accounts (10 posts), in seconds, for less than $0.01.

```json
{ "mode": "authorPosts", "handles": ["bsky.app", "jay.bsky.team"], "maxPostsPerHandle": 5 }
```

#### Sample output

| authorHandle | text (excerpt) | createdAt | likeCount | repostCount | replyCount |
|---|---|---|---|---|---|
| bsky.app | Not to brag, but ... we snagged a couple of passes to today’s Apple event. | 2026-09-09 | 2,313 | 148 | 116 |
| brennan.computer | really the main fight seems to be people who see AI as the right one foisted upon them… | 2026-09-15 | 256 | 37 | 11 |

#### Price comparison (Apify Store, September 2026)

| Actor | Price per 1,000 posts | Monthly users |
|---|---|---|
| **Bluesky Scraper (this Actor)** | **$0.80** (+ $0.0001 per run) | new |
| fatihtahta/All-In-One-Bluesky-Scraper | $1.49 | 52 |

**Related Actors:** [Substack Scraper](https://apify.com/gazidev/substack-scraper) for newsletters and [Google News Scraper](https://apify.com/gazidev/google-news-scraper) for headlines, which together cover social and media monitoring.

### What can this Bluesky scraper do?

| Mode | Input | Output |
|---|---|---|
| **Posts of users** (author feed) | handles / profile URLs | posts, with date range, replies, reposts and media-only filters |
| **User profiles** | handles / DIDs / URLs | bio, follower / following / post counts, avatar, banner, join date, verification |
| **Followers** / **Following** | handles | every account in the list (handle, name, bio, avatar, DID) |
| **Post threads & replies** | post URLs | the post, its parents and the nested reply tree, each with `threadDepth` |
| **Quote posts** | post URLs | posts quoting the given post |
| **Likers** / **Reposters** | post URLs | accounts that liked (with `likedAt`) or reposted a post |
| **Search posts** | keywords, `#hashtags`, `from:`, `domain:` | matching posts, latest or top, with language and date filters |
| **Search users** | keywords | full profiles of matching accounts |
| **Custom feeds & lists** | feed / list URLs | posts from any public custom feed (e.g. *What's Hot*) or curated list |

Each post includes the **AT URI, CID, bsky.app URL, author (handle, DID, display name, avatar), full text, created date, like / repost / reply / quote / bookmark counts, languages, hashtags, mentions, links, images (URL + alt text), video, external link cards, quoted post, and reply parent / root**.

### Use cases

- **Social listening & brand monitoring**: track keywords, hashtags and competitors on Bluesky.
- **Research & academia**: collect public posts and reply threads for discourse, NLP and network analysis.
- **Influencer discovery**: profiles with follower counts, and who follows whom.
- **Journalism**: archive an account's posts over a date range, and see who amplified a post (reposts, quotes).
- **AI / LLM pipelines**: feed clean, structured Bluesky data into RAG, sentiment or trend models.
- **Community management**: export your own followers, likers of your posts, or a custom feed.

### More input examples

No login is needed for any of these:

```json
{ "mode": "authorPosts", "handles": ["https://bsky.app/profile/nytimes.com"], "dateFrom": "2026-09-01", "dateTo": "2026-09-15", "includeReplies": false, "includeReposts": true, "maxPostsPerHandle": 0 }
```

```json
{ "mode": "followers", "handles": ["pfrazee.com"], "maxResultsPerInput": 5000 }
```

```json
{ "mode": "postThreads", "postUrls": ["https://bsky.app/profile/jay.bsky.team/post/3mvjnvtfw4s2c"], "threadDepth": 10 }
```

```json
{ "mode": "searchPosts", "searchQueries": ["#atproto", "from:bsky.app"], "searchSort": "latest", "searchLang": "en" }
```

```json
{ "mode": "customFeed", "feedUrls": ["https://bsky.app/profile/bsky.app/feed/whats-hot"], "maxResultsPerInput": 200 }
```

### Output example

```json
{
  "type": "post",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mv3shqdfuc2e",
  "cid": "bafyreicctz5gxccl6ql35ae7a6wdk3zl2ry6o5ioltme52yezp7s6l42ji",
  "url": "https://bsky.app/profile/bsky.app/post/3mv3shqdfuc2e",
  "authorHandle": "bsky.app",
  "authorDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
  "authorDisplayName": "Bluesky",
  "text": "Not to brag, but ... we snagged a couple of passes to today's Apple event. ...",
  "createdAt": "2026-09-09T15:00:07.513Z",
  "replyCount": 116, "repostCount": 148, "likeCount": 2313, "quoteCount": 40,
  "langs": ["en"],
  "hashtags": null, "mentions": null, "links": null,
  "isReply": false, "replyParentUri": null, "replyRootUri": null,
  "isRepost": false,
  "embedType": "images",
  "images": [{ "url": "https://cdn.bsky.app/img/feed_fullsize/plain/...", "alt": "An enormous pile of red apples and green apples...", "width": 4000, "height": 3000 }],
  "externalLink": null,
  "quotedPost": null
}
```

A profile record:

```json
{
  "type": "profile",
  "did": "did:plc:oky5czdrnfjpqslsw2a5iclo",
  "handle": "jay.bsky.team",
  "displayName": "Jay 🦋",
  "description": "Founder & Chief Innovation Officer @ Bluesky ...",
  "followersCount": 594609, "followsCount": 3985, "postsCount": 4168,
  "createdAt": "2022-11-17T06:31:40.296Z",
  "avatar": "https://cdn.bsky.app/img/avatar/plain/...",
  "verified": true,
  "url": "https://bsky.app/profile/jay.bsky.team"
}
```

See `SAMPLE_OUTPUT.json` for complete records (post, quote, thread reply, profile, follower). The **Output** tab has ready views for Posts, Media & links, Profiles, and Followers / likers. A run summary (counts, errors, notes) is saved to the `OUTPUT` key-value record.

### Pricing (pay per result)

| Event | Price | Per 1,000 |
|---|---|---|
| Post | $0.0008 | **$0.80** |
| Profile | $0.001 | **$1.00** |
| Follower / following / liker / reposter | $0.0005 | **$0.50** |
| Actor start | $0.0001 | once per run |

You only pay for records saved. Errors, unknown accounts and filtered posts are free. Set a **maximum cost per run** and the Actor stops cleanly when it reaches it.

How it compares (Apify Store, September 2026): other Bluesky actors are used by ~44–50 monthly users each, and one lists a 78% run success rate. This Actor uses only the official API (no HTML scraping that breaks), covers 11 modes including likers, reposters, quotes, lists and custom feeds, and has a near-zero start fee.

### Do I need a Bluesky account?

**No, for almost everything.** Profiles, author posts, threads, followers, following, likers, reposters, quotes, user search, public custom feeds and lists all use Bluesky's public API without login.

**Post search** works anonymously too, but Bluesky returns only the **first page (up to about 100 posts) per query** to logged-out clients. For deeper search results, and for personalized feeds such as "Popular with Friends", add your **Bluesky handle** and an **App Password** in the optional login section:

1. In Bluesky, open **Settings → Privacy and security → App passwords → Add App Password**.
2. Paste your handle (e.g. `you.bsky.social`) and the generated password (`xxxx-xxxx-xxxx-xxxx`).

The password field is marked secret (stored encrypted by Apify). It is used only to create a session (`com.atproto.server.createSession`), and the Actor only reads data; it never posts, likes or follows. You can revoke the App Password at any time. Never use your main password.

### Privacy, terms and rate limits

- Only **public data returned by the official AT Protocol API** is collected. No emails or phone numbers, no private data, no DMs.
- Accounts that asked apps not to show their content to logged-out visitors (`!no-unauthenticated` label) are **skipped by default** (`respectOptOut`).
- The Actor follows the [Bluesky Developer Guidelines](https://docs.bsky.app/docs/support/developer-guidelines). It is read-only, never creates interactions or spam, and identifies itself with a descriptive User-Agent that includes a contact address.
- Reads use the **cached public AppView** (`public.api.bsky.app`), as Bluesky recommends. Concurrency is capped, and the Actor backs off automatically on HTTP 429/5xx, honouring `Retry-After` / `RateLimit-Reset` headers.
- You are responsible for using the data lawfully (e.g. GDPR) and for honouring deletion requests in anything you store long-term.

### Use with AI agents (Apify MCP)

This Actor works as a tool for Claude, ChatGPT, Cursor and other MCP clients through the [Apify MCP server](https://mcp.apify.com). Add it to your MCP config and ask, for example: *"Get the last 100 posts from @nytimes.com on Bluesky and summarize the main topics"* or *"Who are the most-followed accounts that liked this Bluesky post?"*. The flat, documented output fields are easy for LLMs to reason over. You can also call it from the Apify API, Python or JS clients, Make, n8n or Zapier.

### FAQ

**How many posts can I get from one account?** All of them. Set `maxPostsPerHandle` to `0`. Use `dateFrom` / `dateTo` to limit the window, and paging stops automatically once posts are older than `dateFrom`.

**Does it include replies and reposts?** Only if you enable `includeReplies` / `includeReposts`. Reposts are marked with `isRepost` and `repostedByHandle`.

**Can I scrape comments / replies of a post?** Yes. Use the *Post threads & replies* mode with the post URL. Each reply has `threadDepth` and `replyParentUri`.

**Why did some accounts not appear?** They may have been deleted or suspended, or they opted out of logged-out visibility. See the `OUTPUT` record for per-input errors and counts of skipped items.

**Which input formats are accepted?** Handles (`jay.bsky.team`, `@bsky.app`), DIDs (`did:plc:…`), bsky.app profile, post, feed and list URLs, and `at://` URIs.

**Is this legal?** The Actor uses Bluesky's official public API and collects only data Bluesky makes publicly available. Check your local laws and Bluesky's Terms for your use case.

**Something is broken?** Open an issue on the Actor's Issues tab with the run ID.

# Actor input Schema

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

Choose the data you want. Each mode reads one input list: <b>handles</b> (author posts, profiles, followers, following), <b>post URLs</b> (threads, quotes, likers, reposters), <b>search queries</b> (post / user search) or <b>feed URLs</b> (custom feeds and lists).

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

Used by the author posts, profiles, followers and following modes. Accepts <code>jay.bsky.team</code>, <code>@bsky.app</code>, a DID (<code>did:plc:…</code>) or a profile URL (<code>https://bsky.app/profile/bsky.app</code>). A bare name like <code>alice</code> is treated as <code>alice.bsky.social</code>.

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

Used by the thread, quotes, likers and reposters modes. Accepts <code>https://bsky.app/profile/\<handle>/post/\<id></code> or an <code>at://</code> URI.

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

Used by the search modes. Post search supports Bluesky's search syntax, e.g. <code>#atproto</code>, <code>"exact phrase"</code>, <code>from:bsky.app</code>, <code>domain:nytimes.com</code>, <code>lang:de</code>. <b>Note:</b> without login, Bluesky returns only the first page (up to ~100 posts) per query; add an App Password below for deeper results.

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

Used by the custom feed mode. Feed URL (<code>https://bsky.app/profile/bsky.app/feed/whats-hot</code>), list URL (<code>https://bsky.app/profile/\<handle>/lists/\<id></code>) or <code>at://</code> URI. Personalized feeds (e.g. "Following", "Popular with friends") need a login.

## `maxPostsPerHandle` (type: `integer`):

Author posts mode: newest posts first. 0 = no limit (all posts within the date range).

## `maxResultsPerInput` (type: `integer`):

Maximum items per handle / post / query / feed in every other mode (followers, likers, thread posts, search results, feed posts…). 0 = no limit.

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

Only posts on/after this date (author posts, search, feeds). <code>YYYY-MM-DD</code> or relative, e.g. <code>7 days</code>, <code>3 months</code>. For reposts, the repost time is used.

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

Only posts on/before this date (<code>YYYY-MM-DD</code>, inclusive).

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

Author posts mode: also return the user's replies to other posts.

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

Author posts / feed modes: also return posts the user reposted (marked <code>isRepost</code> with <code>repostedByHandle</code>).

## `onlyMedia` (type: `boolean`):

Author posts mode: only posts with images or video.

## `includeProfile` (type: `boolean`):

Author posts mode: also save one profile record (followers, following, post counts) per user. Charged as a profile.

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

Thread mode: how many levels of nested replies to fetch.

## `includeThreadParents` (type: `boolean`):

Thread mode: if the URL points to a reply, also return the posts above it (negative <code>threadDepth</code>).

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

Post search order.

## `searchLang` (type: `string`):

Post search: only posts in this language (ISO code, e.g. <code>en</code>, <code>ja</code>, <code>pt</code>).

## `respectOptOut` (type: `boolean`):

Bluesky users can ask apps not to show their content to logged-out people (label <code>!no-unauthenticated</code>). Keeping this on respects that choice and is recommended.

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

Optional. Only needed for deep post search (more than the first page) and personalized feeds. Everything else works without login.

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

App Password in the form <code>xxxx-xxxx-xxxx-xxxx</code>. You can revoke it at any time in Bluesky settings.

## `pdsHost` (type: `string`):

Leave as is for Bluesky-hosted accounts. Self-hosted PDS users can enter their server URL.

## Actor input object example

```json
{
  "mode": "authorPosts",
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxPostsPerHandle": 5,
  "maxResultsPerInput": 100,
  "includeReplies": false,
  "includeReposts": false,
  "onlyMedia": false,
  "includeProfile": false,
  "threadDepth": 6,
  "includeThreadParents": true,
  "searchSort": "latest",
  "respectOptOut": true,
  "pdsHost": "https://bsky.social"
}
```

# Actor output Schema

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

No description

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

No description

## `users` (type: `string`):

No description

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

No description

## `summary` (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": "authorPosts",
    "handles": [
        "bsky.app",
        "jay.bsky.team"
    ],
    "maxPostsPerHandle": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/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 = {
    "mode": "authorPosts",
    "handles": [
        "bsky.app",
        "jay.bsky.team",
    ],
    "maxPostsPerHandle": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/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 '{
  "mode": "authorPosts",
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxPostsPerHandle": 5
}' |
apify call gazidev/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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