# Bluesky Scraper (`commanding_hotdog/bluesky-scraper`) Actor

Bluesky/bsky social media scraper — posts, profiles, followers, feeds, trending. 15 modes, 30+ fields, sentiment analysis, engagement metrics. Free AT Protocol API, no proxy. Social media monitoring & brand tracking.

- **URL**: https://apify.com/commanding\_hotdog/bluesky-scraper.md
- **Developed by:** [qingwa](https://apify.com/commanding_hotdog) (community)
- **Categories:** Social media, Marketing
- **Stats:** 2 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

A comprehensive data extraction tool for the Bluesky social platform.

### Features

- **15 operational modes**: post search, user profiles, followers, following, feeds, trending topics, thread replies, quote posts, likes, starter packs, and more
- **30+ output fields**: post text, engagement metrics, author info, sentiment analysis, viral scores
- **Built-in sentiment analysis** and interaction rate calculation
- **No proxy needed** — uses the free AT Protocol API
- **Batch processing** with pagination support

### Modes

| Mode | Description |
|------|-------------|
| `search_posts` | Search posts by keyword |
| `user_posts` | Get posts from a specific user |
| `user_profile` | Get user profile details |
| `followers` | Get user's followers |
| `following` | Get user's following list |
| `post_thread` | Get thread replies for a post |
| `custom_feed` | Get posts from a custom feed |
| `post_likes` | Get users who liked a post |
| `quote_posts` | Get quote posts |
| `trending_topics` | Get trending topics |
| `starter_pack` | Get starter pack data |

### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `mode` | string | Operation mode (default: `search_posts`) |
| `searchQuery` | string | Search keyword |
| `handle` | string | Bluesky handle (e.g. `alice.bsky.social`) |
| `postUrl` | string | Post URL or AT-URI |
| `maxResults` | integer | Max results (default: 100) |
| `language` | string | Language filter (e.g. `en`, `zh`) |
| `sortBy` | string | Sort: `latest`, `top`, `hot` |

### Example

```json
{
  "mode": "search_posts",
  "searchQuery": "artificial intelligence",
  "maxResults": 50,
  "language": "en"
}
````

### Output

Each result contains structured JSON with fields like:

```json
{
  "post_id": "3m...",
  "text": "Post content here",
  "created_at": "2026-01-15T10:30:00Z",
  "author_handle": "user.bsky.social",
  "author_display_name": "User Name",
  "likes": 42,
  "reposts": 15,
  "replies": 8,
  "engagement_rate": 0.065,
  "sentiment": "positive"
}
```

### No Authentication Required

This scraper uses Bluesky's public AT Protocol API — no API keys or authentication needed.

# Actor input Schema

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

选择要执行的数据提取功能

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

输入关键词、标签或短语（例如：python、#AI、web scraping）

## `handles` (type: `string`):

输入 Bluesky 用户名，多个用逗号分隔（例如：jay.bsky.team, pfrazee.com）

## `postUrls` (type: `string`):

输入帖子 URL 或 AT-URI，多个用逗号分隔

## `feedUri` (type: `string`):

输入自定义 Feed 的 AT-URI（例如：at://did:plc:xxx/app.bsky.feed.generator/xxx）

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

最多提取多少条结果

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

结果排序方式

## `dateSince` (type: `string`):

只包含此日期之后的帖子（格式：YYYY-MM-DD）

## `dateUntil` (type: `string`):

只包含此日期之前的帖子（格式：YYYY-MM-DD）

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

只返回指定语言的帖子

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

是否包含回复帖子

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

是否包含转发/转帖

## `mediaOnly` (type: `boolean`):

只返回包含图片/视频的帖子

## `minLikes` (type: `integer`):

只返回点赞数大于等于此值的帖子

## `minReposts` (type: `integer`):

只返回转发数大于等于此值的帖子

## `minReplies` (type: `integer`):

只返回回复数大于等于此值的帖子

## `calculateEngagement` (type: `boolean`):

计算每个帖子的互动率（点赞+转发+回复 / 作者关注者数）

## `analyzeSentiment` (type: `boolean`):

分析帖子情感倾向（正面/负面/中性）

## `extractTopics` (type: `boolean`):

自动提取帖子中的话题/主题

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

帖子线程展开的最大深度

## Actor input object example

```json
{
  "mode": "search_posts",
  "maxItems": 100,
  "searchSort": "latest",
  "language": "",
  "includeReplies": true,
  "includeReposts": true,
  "mediaOnly": false,
  "minLikes": 0,
  "minReposts": 0,
  "minReplies": 0,
  "calculateEngagement": true,
  "analyzeSentiment": false,
  "extractTopics": false,
  "threadDepth": 10
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("commanding_hotdog/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("commanding_hotdog/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 '{}' |
apify call commanding_hotdog/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bluesky Scraper",
        "description": "Bluesky/bsky social media scraper — posts, profiles, followers, feeds, trending. 15 modes, 30+ fields, sentiment analysis, engagement metrics. Free AT Protocol API, no proxy. Social media monitoring & brand tracking.",
        "version": "1.0",
        "x-build-id": "DKRO0Ku0YD0SZeSfl"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/commanding_hotdog~bluesky-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-commanding_hotdog-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/commanding_hotdog~bluesky-scraper/runs": {
            "post": {
                "operationId": "runs-sync-commanding_hotdog-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/commanding_hotdog~bluesky-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-commanding_hotdog-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": "📋 选择功能",
                        "enum": [
                            "search_posts",
                            "user_posts",
                            "user_profile",
                            "followers",
                            "following",
                            "post_thread",
                            "custom_feed",
                            "post_likes",
                            "quote_posts",
                            "trending_topics",
                            "starter_pack"
                        ],
                        "type": "string",
                        "description": "选择要执行的数据提取功能",
                        "default": "search_posts"
                    },
                    "searchQuery": {
                        "title": "🔍 搜索关键词",
                        "type": "string",
                        "description": "输入关键词、标签或短语（例如：python、#AI、web scraping）"
                    },
                    "handles": {
                        "title": "👤 用户 Handle",
                        "type": "string",
                        "description": "输入 Bluesky 用户名，多个用逗号分隔（例如：jay.bsky.team, pfrazee.com）"
                    },
                    "postUrls": {
                        "title": "🔗 帖子链接",
                        "type": "string",
                        "description": "输入帖子 URL 或 AT-URI，多个用逗号分隔"
                    },
                    "feedUri": {
                        "title": "📰 Feed URI",
                        "type": "string",
                        "description": "输入自定义 Feed 的 AT-URI（例如：at://did:plc:xxx/app.bsky.feed.generator/xxx）"
                    },
                    "maxItems": {
                        "title": "📊 最大结果数",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "最多提取多少条结果",
                        "default": 100
                    },
                    "searchSort": {
                        "title": "📈 排序方式",
                        "enum": [
                            "latest",
                            "top",
                            "hot"
                        ],
                        "type": "string",
                        "description": "结果排序方式",
                        "default": "latest"
                    },
                    "dateSince": {
                        "title": "📅 开始日期",
                        "type": "string",
                        "description": "只包含此日期之后的帖子（格式：YYYY-MM-DD）"
                    },
                    "dateUntil": {
                        "title": "📅 结束日期",
                        "type": "string",
                        "description": "只包含此日期之前的帖子（格式：YYYY-MM-DD）"
                    },
                    "language": {
                        "title": "🌐 语言过滤",
                        "enum": [
                            "",
                            "en",
                            "zh",
                            "ja",
                            "ko",
                            "es",
                            "fr",
                            "de",
                            "pt",
                            "ru",
                            "ar"
                        ],
                        "type": "string",
                        "description": "只返回指定语言的帖子",
                        "default": ""
                    },
                    "includeReplies": {
                        "title": "💬 包含回复",
                        "type": "boolean",
                        "description": "是否包含回复帖子",
                        "default": true
                    },
                    "includeReposts": {
                        "title": "🔄 包含转发",
                        "type": "boolean",
                        "description": "是否包含转发/转帖",
                        "default": true
                    },
                    "mediaOnly": {
                        "title": "🖼️ 仅含媒体",
                        "type": "boolean",
                        "description": "只返回包含图片/视频的帖子",
                        "default": false
                    },
                    "minLikes": {
                        "title": "❤️ 最小点赞数",
                        "minimum": 0,
                        "type": "integer",
                        "description": "只返回点赞数大于等于此值的帖子",
                        "default": 0
                    },
                    "minReposts": {
                        "title": "🔄 最小转发数",
                        "minimum": 0,
                        "type": "integer",
                        "description": "只返回转发数大于等于此值的帖子",
                        "default": 0
                    },
                    "minReplies": {
                        "title": "💬 最小回复数",
                        "minimum": 0,
                        "type": "integer",
                        "description": "只返回回复数大于等于此值的帖子",
                        "default": 0
                    },
                    "calculateEngagement": {
                        "title": "📊 计算互动率",
                        "type": "boolean",
                        "description": "计算每个帖子的互动率（点赞+转发+回复 / 作者关注者数）",
                        "default": true
                    },
                    "analyzeSentiment": {
                        "title": "🎭 情感分析",
                        "type": "boolean",
                        "description": "分析帖子情感倾向（正面/负面/中性）",
                        "default": false
                    },
                    "extractTopics": {
                        "title": "🏷️ 提取话题",
                        "type": "boolean",
                        "description": "自动提取帖子中的话题/主题",
                        "default": false
                    },
                    "threadDepth": {
                        "title": "🧵 线程深度",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "帖子线程展开的最大深度",
                        "default": 10
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
