# 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
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 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/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 — 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(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 '{
  "handles": [
    "bsky.app"
  ]
}' |
apify call justfeel/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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