# Bluesky Scraper — Search Posts, Profiles & Feeds (`adrianreinag/bluesky-scraper`) Actor

Extract posts, profiles, and feeds from Bluesky social network. Search by keyword, scrape user profiles, and download complete author feeds. Uses the public AT Protocol API — no authentication required for public data.

- **URL**: https://apify.com/adrianreinag/bluesky-scraper.md
- **Developed by:** [Adrián Reina Gálvez](https://apify.com/adrianreinag) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 bluesky data 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.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.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/platform/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 — Posts, Profiles, Threads & Followers

[![Apify Store](https://img.shields.io/badge/Apify-Store-blue)](https://apify.com)
[![Node.js](https://img.shields.io/badge/Node.js-20+-green)](https://nodejs.org)
[![AT Protocol](https://img.shields.io/badge/AT%20Protocol-Public%20API-purple)](https://atproto.com)

The most complete Bluesky scraper on Apify Store. Extract posts, user profiles, full conversation threads, and follower/following lists from [Bluesky](https://bsky.app) — the decentralized social network with 30M+ users.

⚡ **No browser needed.** Pure API calls via the open AT Protocol.  
🔓 **No auth required** for profiles and feeds.  
💰 **From $0.002/result** — the best price on the store.

---

### 🚀 Quick Start

1. Choose a **mode** (profiles/feeds need NO auth)
2. Add Bluesky **handles** or a **search query**
3. Click **Run** — get clean JSON in seconds

**Default config works out of the box** — try it with the pre-filled handle.

---

### 🎯 Six Powerful Modes

| Mode | Auth | What You Get |
|------|------|-------------|
| 🔍 **Search Posts** | Required | Find posts by keyword, hashtag, or advanced query (`from:user`) |
| 👤 **Get Profiles** | None | Display name, bio, avatar, followers/following/post counts |
| 📝 **Get User Feed** | None | All posts from any public user with engagement metrics |
| 👥 **Get Followers** | Required | Complete follower list with profile data |
| 🚶 **Get Following** | Required | Complete following list with profile data |
| 🧵 **Get Thread** | Required | Full conversation tree — reconstructs entire threads |

---

### 📊 Output — Clean, Flat JSON

Every post comes normalized and ready for CSV export:

```json
{
  "uri": "at://did:plc:z72i.../app.bsky.feed.post/3mk6i...",
  "cid": "bafyreig...",
  "authorHandle": "bsky.app",
  "authorDid": "did:plc:z72i...",
  "authorDisplayName": "Bluesky",
  "authorAvatar": "https://cdn.bsky.app/img/avatar/...",
  "text": "We hear and appreciate your feedback...",
  "createdAt": "2026-04-23T17:06:32.796Z",
  "indexedAt": "2026-04-23T17:06:33.123Z",
  "likeCount": 4102,
  "replyCount": 426,
  "repostCount": 493,
  "quoteCount": 0,
  "langs": ["en"],
  "isReply": false,
  "hasMedia": false,
  "mediaCount": 0,
  "hashtags": [],
  "mentions": [],
  "links": [],
  "postUrl": "https://bsky.app/profile/bsky.app/post/3mk6ipt5iv22y",
  "type": "post"
}
````

**Thread mode** adds `threadDepth` (0 = root post, 1 = direct reply, etc.) so you can reconstruct the conversation tree.

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `mode` | string | ✅ | `getUserFeed` | Scrape mode |
| `searchQuery` | string | For search | — | Keyword/hashtag/query |
| `handles` | string\[] | For profiles/feed/follows | `["bsky.app"]` | Bluesky handles |
| `threadUri` | string | For thread | — | AT URI of any post in thread |
| `maxItems` | integer | No | 100 | Max results (1–10,000) |
| `sort` | string | No | `latest` | `latest` or `top` |
| `language` | string | No | — | ISO code filter (e.g. `en`, `es`) |
| `includeReplies` | boolean | No | `true` | Include reply posts |
| `blueskyHandle` | string | For auth modes | — | Your handle |
| `blueskyAppPassword` | string | For auth modes | — | App password (not main!) |

***

### 💰 Pricing

| Plan | Price |
|------|-------|
| Free tier | $5 free credit (try it!) |
| Pay-per-result | **$0.002/item** |

**Cost examples:**

- 100 posts: $0.20
- 1,000 posts: $2.00
- 10,000 posts: $20.00

> 💡 **33% cheaper** than competitors ($0.003/item). Platform usage included — no hidden compute fees.

***

### 🆚 Why This Scraper?

| Feature | Us | tugelbay | george | cryptosignals |
|---------|-----|----------|--------|---------------|
| Search posts | ✅ | ✅ | ✅ | ✅ |
| Get profiles | ✅ | ✅ | ✅ | ✅ |
| Get user feed | ✅ | ✅ | ✅ | ✅ |
| **Thread reconstruction** | ✅ | ❌ | ❌ | ❌ |
| **Followers export** | ✅ | ❌ | ❌ | ✅ |
| **Following export** | ✅ | ❌ | ❌ | ✅ |
| Auth optional | ✅ | ✅ | ❌ | ❌ |
| Language filter | ✅ | ✅ | ❌ | ❌ |
| **Price per item** | **$0.002** | $0.003 | $0.003 | ~$0.0012 |

***

### 🔧 Technical

- **Runtime:** Node.js 20+ (fast, lightweight)
- **API:** AT Protocol public endpoints (`public.api.bsky.app`)
- **Authentication:** App Password (Bluesky Settings → App Passwords)
- **Rate limiting:** Automatic 429 handling with retry-after
- **Memory:** 256 MB recommended
- **Timeout:** 1 hour default (adjustable)

***

### 📝 Use Cases

- **Brand Monitoring** — Track mentions across Bluesky
- **Competitive Intelligence** — Analyze competitor content and engagement
- **Influencer Discovery** — Find top voices with follower data
- **AI Training Data** — Build clean datasets for LLMs
- **Academic Research** — Study social media discourse
- **Lead Generation** — Find users by interest, extract profiles

***

Built with ❤️ using [Apify SDK for JavaScript](https://docs.apify.com/sdk/js) and the [AT Protocol](https://atproto.com).

# Actor input Schema

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

What do you want to extract?

## `searchQuery` (type: `string`):

Keyword, hashtag (#AI), or advanced query (from:user). Required for searchPosts mode.

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

One or more Bluesky handles (e.g. 'bsky.app', 'pfrazee.com'). Required for getProfiles, getUserFeed, getFollowers, getFollowing.

## `threadUri` (type: `string`):

AT Protocol URI of any post in the thread (e.g. 'at://did:plc:.../app.bsky.feed.post/...'). Required for getThread mode.

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

Maximum items to return. Higher values take longer.

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

How to sort search results. 'latest' = most recent first. 'top' = most engagement first.

## `language` (type: `string`):

ISO language code to filter posts (e.g. 'en', 'es', 'ja', 'de', 'fr'). Leave empty for all languages.

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

Include reply posts in user feeds. Turn OFF for original posts only.

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

Your Bluesky handle (e.g. 'user.bsky.social'). Only needed for searchPosts or getThread modes. Create an App Password in Bluesky Settings.

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

App Password from Bluesky Settings → App Passwords. NEVER use your main password. This is encrypted in transit.

## Actor input object example

```json
{
  "mode": "getUserFeed",
  "handles": [
    "bsky.app"
  ],
  "maxItems": 100,
  "sort": "latest",
  "includeReplies": true
}
```

# 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 = {
    "searchQuery": "",
    "handles": [
        "bsky.app"
    ],
    "threadUri": "",
    "language": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("adrianreinag/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 = {
    "searchQuery": "",
    "handles": ["bsky.app"],
    "threadUri": "",
    "language": "",
}

# Run the Actor and wait for it to finish
run = client.actor("adrianreinag/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 '{
  "searchQuery": "",
  "handles": [
    "bsky.app"
  ],
  "threadUri": "",
  "language": ""
}' |
apify call adrianreinag/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bluesky Scraper — Search Posts, Profiles & Feeds",
        "description": "Extract posts, profiles, and feeds from Bluesky social network. Search by keyword, scrape user profiles, and download complete author feeds. Uses the public AT Protocol API — no authentication required for public data.",
        "version": "1.0",
        "x-build-id": "RhXbVdP7HuHAdrVsw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/adrianreinag~bluesky-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-adrianreinag-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/adrianreinag~bluesky-scraper/runs": {
            "post": {
                "operationId": "runs-sync-adrianreinag-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/adrianreinag~bluesky-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-adrianreinag-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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scrape Mode",
                        "enum": [
                            "searchPosts",
                            "getProfiles",
                            "getUserFeed",
                            "getFollowers",
                            "getFollowing",
                            "getThread"
                        ],
                        "type": "string",
                        "description": "What do you want to extract?",
                        "default": "getUserFeed"
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Keyword, hashtag (#AI), or advanced query (from:user). Required for searchPosts mode."
                    },
                    "handles": {
                        "title": "Bluesky Handles",
                        "type": "array",
                        "description": "One or more Bluesky handles (e.g. 'bsky.app', 'pfrazee.com'). Required for getProfiles, getUserFeed, getFollowers, getFollowing.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "threadUri": {
                        "title": "Thread URI",
                        "type": "string",
                        "description": "AT Protocol URI of any post in the thread (e.g. 'at://did:plc:.../app.bsky.feed.post/...'). Required for getThread mode."
                    },
                    "maxItems": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum items to return. Higher values take longer.",
                        "default": 100
                    },
                    "sort": {
                        "title": "Sort Order",
                        "enum": [
                            "latest",
                            "top"
                        ],
                        "type": "string",
                        "description": "How to sort search results. 'latest' = most recent first. 'top' = most engagement first.",
                        "default": "latest"
                    },
                    "language": {
                        "title": "Language Filter",
                        "type": "string",
                        "description": "ISO language code to filter posts (e.g. 'en', 'es', 'ja', 'de', 'fr'). Leave empty for all languages."
                    },
                    "includeReplies": {
                        "title": "Include Replies",
                        "type": "boolean",
                        "description": "Include reply posts in user feeds. Turn OFF for original posts only.",
                        "default": true
                    },
                    "blueskyHandle": {
                        "title": "Your Bluesky Handle (for search/threads)",
                        "type": "string",
                        "description": "Your Bluesky handle (e.g. 'user.bsky.social'). Only needed for searchPosts or getThread modes. Create an App Password in Bluesky Settings."
                    },
                    "blueskyAppPassword": {
                        "title": "Your Bluesky App Password (for search/threads)",
                        "type": "string",
                        "description": "App Password from Bluesky Settings → App Passwords. NEVER use your main password. This is encrypted in transit."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
