# Bluesky Scraper - Profiles, Posts, Threads & Followers (`justfeel/bluesky-scraper`) Actor

Scrape Bluesky via the official public AT Protocol API: profiles with follower counts, author posts with engagement, full comment threads, and follower/following graphs. Clean JSON, no login, no browser, no proxies.

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

## Pricing

from $0.50 / 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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bluesky Scraper — Profiles, Posts, Threads & Followers

Scrape **Bluesky** public data as clean, structured JSON — built directly on the official **AT Protocol AppView API**, the same one the Bluesky app uses. No login, no browser, no proxies.

### Four modes in one actor

| Mode | Input | What you get |
|---|---|---|
| **Profiles** | `handles` | Followers, following, post counts, bio, avatar |
| **Author posts** | `handles` | Each handle's recent posts with engagement counts |
| **Full threads** | `postUrls` | Every reply in a post's thread, with depth |
| **Follower graph** | `handles` + `graph` | Follower / following profile lists |

### What you get per post

```json
{
    "type": "post",
    "uri": "at://did:plc:abc123/app.bsky.feed.post/3kabc",
    "url": "https://bsky.app/profile/bsky.app/post/3kabc",
    "text": "Introducing a new way to...",
    "created_at": "2026-07-18T16:40:12.000Z",
    "language": "en",
    "like_count": 4211,
    "repost_count": 380,
    "reply_count": 129,
    "quote_count": 44,
    "author_handle": "bsky.app",
    "author_display_name": "Bluesky",
    "author_did": "did:plc:z72i7hdynmk6r22z27h6tvur",
    "image_urls": [],
    "indexed_at": "2026-07-18T16:40:13.402Z"
}
```

Profile records carry `followers_count`, `follows_count`, `posts_count`, bio and avatar. Thread records add `thread_depth` so you can rebuild the conversation tree.

### Why this scraper

- ✅ **Official API, not HTML scraping** — the AT Protocol AppView is public by design; this never breaks on a UI redesign
- ✅ **Four modes in one run** — profiles + posts + threads + graph without chaining multiple actors
- ✅ **Full pagination** — cursors are followed until your cap, not stuck at the first page
- ✅ **Fast & cheap** — no browser, no proxies, no login

### Use cases

- **Influencer & competitor analysis**: profile stats plus follower graphs for any handle
- **Brand monitoring**: track what specific accounts post as Bluesky's user base grows
- **Journalism & research**: pull full conversation threads with engagement numbers
- **AI & NLP pipelines**: clean post text with engagement metadata for training or analysis

### Input example

```json
{
    "handles": ["bsky.app", "jay.bsky.team"],
    "includeProfiles": true,
    "includeAuthorPosts": true,
    "maxPostsPerHandle": 200,
    "graph": "followers",
    "maxGraphPerHandle": 500,
    "postUrls": ["https://bsky.app/profile/bsky.app/post/3kabc123"]
}
```

### FAQ

**Is this legal?** The actor reads Bluesky's public AT Protocol API — the same data anyone sees logged out. No login, no private data.

**What's a handle?** The username in a profile URL: `bsky.app/profile/name.bsky.social` → `name.bsky.social`. The `@` is optional.

**Post URL formats?** Both `https://bsky.app/profile/<handle>/post/<id>` and raw `at://` URIs work.

**Why no keyword search?** Bluesky's search endpoint is WAF-restricted to browser sessions and fails from any server, proxy or not — a "search" feature here would silently return nothing. This actor only ships modes that reliably work.

# Actor input Schema

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

Bluesky handles (e.g. bsky.app or name.bsky.social, with or without @). Find it in the profile URL: bsky.app/profile/<handle>.

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

Push a profile record (followers, posts count, bio) for each handle.

## `includeAuthorPosts` (type: `boolean`):

Scrape recent posts from each handle's feed with like/repost/reply counts.

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

Cap on posts collected per author feed.

## `graph` (type: `string`):

Optionally scrape each handle's followers and/or accounts they follow (as profile records).

## `maxGraphPerHandle` (type: `integer`):

Cap on followers/following records per handle.

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

bsky.app post URLs (or at:// URIs). The full reply thread is scraped for each, with thread depth.

## Actor input object example

```json
{
  "handles": [
    "bsky.app"
  ],
  "includeProfiles": true,
  "includeAuthorPosts": true,
  "maxPostsPerHandle": 100,
  "graph": "none",
  "maxGraphPerHandle": 200,
  "postUrls": []
}
```

# 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("justfeel/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 = { "handles": ["bsky.app"] }

# Run the Actor and wait for it to finish
run = client.actor("justfeel/bluesky-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 justfeel/bluesky-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=justfeel/bluesky-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZCuMMfMHxXPLuQZKR/builds/vnec0iIxlfVdBOu2x/openapi.json
