# 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bluesky Scraper - Profiles, Posts, Threads & Followers",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "vnec0iIxlfVdBOu2x"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/justfeel~bluesky-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-justfeel-bluesky-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/justfeel~bluesky-scraper/runs": {
            "post": {
                "operationId": "runs-sync-justfeel-bluesky-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/justfeel~bluesky-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-justfeel-bluesky-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "handles": {
                        "title": "Profile handles",
                        "type": "array",
                        "description": "Bluesky handles (e.g. bsky.app or name.bsky.social, with or without @). Find it in the profile URL: bsky.app/profile/<handle>.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeProfiles": {
                        "title": "Include profile records",
                        "type": "boolean",
                        "description": "Push a profile record (followers, posts count, bio) for each handle.",
                        "default": true
                    },
                    "includeAuthorPosts": {
                        "title": "Include each handle's posts",
                        "type": "boolean",
                        "description": "Scrape recent posts from each handle's feed with like/repost/reply counts.",
                        "default": true
                    },
                    "maxPostsPerHandle": {
                        "title": "Max posts per handle",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Cap on posts collected per author feed.",
                        "default": 100
                    },
                    "graph": {
                        "title": "Follower graph",
                        "enum": [
                            "none",
                            "followers",
                            "following",
                            "both"
                        ],
                        "type": "string",
                        "description": "Optionally scrape each handle's followers and/or accounts they follow (as profile records).",
                        "default": "none"
                    },
                    "maxGraphPerHandle": {
                        "title": "Max graph records per handle",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Cap on followers/following records per handle.",
                        "default": 200
                    },
                    "postUrls": {
                        "title": "Post URLs (full threads)",
                        "type": "array",
                        "description": "bsky.app post URLs (or at:// URIs). The full reply thread is scraped for each, with thread depth.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
