# Bluesky Scraper Pro – Posts, Profiles, Analytics & AI Insights (`predictable_embargo/bluesky-scraper-pro`) Actor

High-performance Bluesky scraper powered by AT Protocol. Collect posts, profiles, followers, search results, and full threads with optional AI sentiment, topic extraction, summary, and viral potential scoring.

- **URL**: https://apify.com/predictable\_embargo/bluesky-scraper-pro.md
- **Developed by:** [sovereigngroupus-dev](https://apify.com/predictable_embargo) (community)
- **Categories:** AI, Automation, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.45 / 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 Pro Logo](assets/logo.svg)

## Bluesky Scraper Pro - Posts, Profiles, Analytics and AI Insights

### Short description (Apify Store)

High-performance Bluesky scraper powered by AT Protocol. Collect posts, profiles, followers, search results, and full threads with optional AI sentiment, topic extraction, summary, and viral potential scoring.

### Long description (Apify Store)

Bluesky Scraper Pro is an Apify actor designed for fast, structured extraction of public Bluesky data without browser automation. It uses AT Protocol endpoints for lower cost and higher speed, making it a practical choice for analysts, growth teams, and builders who need reliable social data pipelines.

The actor supports seven scraping modes in one workflow: profile posts, profile lookup, keyword search, post search, follower list, following list, and full thread extraction. Results are normalized into consistent JSON records and enriched with optional AI analysis using Groq and OpenAI. Each run also generates a Markdown output artifact (OUTPUT_MARKDOWN) for LLM workflows and reporting.

### Features

- Seven scrape modes in one actor
- Cursor-based pagination across supported endpoints
- Built-in 0.5 second request pacing for safer collection
- AI enrichment with provider fallback (Groq -> OpenAI or OpenAI -> Groq)
- Dataset output + Markdown output for LLM ingestion
- Pay-per-event pricing model ready for Store monetization

### Use cases

- Influencer research: evaluate account activity, content style, and engagement trends
- Brand monitoring: track mentions, narrative changes, and sentiment movement
- Trend spotting: discover recurring topics and emerging conversations
- Competitor analysis: compare account growth patterns and content strategy

### Input example

```json
{
  "mode": "profile_posts",
  "handles": ["atproto.com", "bsky.app"],
  "query": "",
  "postUri": "",
  "maxResults": 100,
  "includeReplies": true,
  "enableAI": true,
  "aiProvider": "groq",
  "aiApiKey": "",
  "proxyConfiguration": {}
}
````

### Output example

```json
{
  "did": "did:plc:example123",
  "handle": "atproto.com",
  "text": "This is an example post body from Bluesky.",
  "createdAt": "2026-04-29T12:01:00.000Z",
  "likeCount": 45,
  "repostCount": 11,
  "replyCount": 7,
  "sentiment": "positive",
  "key_topics": ["atproto", "developer-tools", "social-media"],
  "summary": "Short summary generated from post content and engagement context.",
  "viral_potential_score": 78,
  "markdown_version": "#### 1. @atproto.com\\n\\nText: This is an example post body from Bluesky.",
  "mode": "profile_posts",
  "uri": "at://did:plc:example123/app.bsky.feed.post/abc123",
  "cid": "bafyreih...",
  "displayName": "AT Protocol",
  "avatar": "https://...",
  "indexedAt": "2026-04-29T12:01:02.000Z",
  "labels": [],
  "lang": ["en"],
  "isReply": false,
  "isRepost": false,
  "sourceValue": "atproto.com",
  "sentiment_score": 0.66
}
```

### Pricing

This actor is configured for Pay-per-event pricing:

- Event: scrapeCompleted
- Price: $1.49 per 1,000 results

The actor attempts to emit usage charges in 1,000-result blocks.

### Installation and usage

```bash
apify run
```

For cloud deployment:

```bash
apify push
```

### FAQ

#### Does this actor require browser automation?

No. It uses AT Protocol HTTP endpoints, which are faster and cheaper for this use case.

#### Can I run without AI enrichment?

Yes. Set enableAI to false to skip enrichment and collect raw structured data only.

#### Which AI provider is used first?

The order is controlled by aiProvider. The actor automatically tries the other provider as fallback when possible.

#### Why does the Actor fail with "requires at least one handle"?

Some modes (profile\_posts, follower\_list, etc.) require you to fill in the "handles" field. Always use the generated input form in the Apify Console and fill the required fields for your chosen mode.

#### Why do keyword\_search and post\_search sometimes return no results?

Bluesky's public search API (app.bsky.feed.searchPosts) has restrictions on unauthenticated requests and pagination. These modes return empty results gracefully with a warning. Profile and thread modes work fully without any login.

#### Is the output suitable for LLM workflows?

Yes. The actor saves JSON records to dataset and a Markdown artifact to OUTPUT\_MARKDOWN for direct LLM ingestion.

#### Is this ready for Apify Store publishing?

Yes. The actor includes Store-friendly metadata, input schema, pricing configuration, and production-oriented output structure.

# Actor input Schema

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

Choose what to collect

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

Example: \['atproto.com', 'bsky.app'] or a full DID. Required for profile\_posts, profile\_lookup, follower\_list, and following\_list.

## `query` (type: `string`):

Used by keyword\_search and post\_search

## `postUri` (type: `string`):

Example: at://did:plc:xxx/app.bsky.feed.post/xxx

## `maxResults` (type: `integer`):

Maximum number of posts or profiles to return for the run

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

When disabled, reply posts are filtered out in profile\_posts mode

## `enableAI` (type: `boolean`):

Adds sentiment, key topics, summary, and viral potential score

## `aiProvider` (type: `string`):

Provider used first for sentiment, topics, and summary

## `aiApiKey` (type: `string`):

Optional API key for Groq or OpenAI

## `proxyConfiguration` (type: `object`):

Apify handles this automatically

## Actor input object example

```json
{
  "mode": "profile_posts",
  "maxResults": 100,
  "includeReplies": true,
  "enableAI": true,
  "aiProvider": "groq"
}
```

# 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("predictable_embargo/bluesky-scraper-pro").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("predictable_embargo/bluesky-scraper-pro").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 predictable_embargo/bluesky-scraper-pro --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bluesky Scraper Pro – Posts, Profiles, Analytics & AI Insights",
        "description": "High-performance Bluesky scraper powered by AT Protocol. Collect posts, profiles, followers, search results, and full threads with optional AI sentiment, topic extraction, summary, and viral potential scoring.",
        "version": "1.0",
        "x-build-id": "07AFYCbTBqW7oARYY"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/predictable_embargo~bluesky-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-predictable_embargo-bluesky-scraper-pro",
                "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/predictable_embargo~bluesky-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-predictable_embargo-bluesky-scraper-pro",
                "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/predictable_embargo~bluesky-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-predictable_embargo-bluesky-scraper-pro",
                "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": [
                            "profile_posts",
                            "profile_lookup",
                            "keyword_search",
                            "follower_list",
                            "following_list",
                            "full_thread",
                            "post_search"
                        ],
                        "type": "string",
                        "description": "Choose what to collect",
                        "default": "profile_posts"
                    },
                    "handles": {
                        "title": "Bluesky Handles or DIDs",
                        "type": "array",
                        "description": "Example: ['atproto.com', 'bsky.app'] or a full DID. Required for profile_posts, profile_lookup, follower_list, and following_list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "query": {
                        "title": "Search Query / Keyword",
                        "type": "string",
                        "description": "Used by keyword_search and post_search"
                    },
                    "postUri": {
                        "title": "Post URI (for full_thread)",
                        "type": "string",
                        "description": "Example: at://did:plc:xxx/app.bsky.feed.post/xxx"
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of posts or profiles to return for the run",
                        "default": 100
                    },
                    "includeReplies": {
                        "title": "Include Replies",
                        "type": "boolean",
                        "description": "When disabled, reply posts are filtered out in profile_posts mode",
                        "default": true
                    },
                    "enableAI": {
                        "title": "Enable AI Post-Processing",
                        "type": "boolean",
                        "description": "Adds sentiment, key topics, summary, and viral potential score",
                        "default": true
                    },
                    "aiProvider": {
                        "title": "AI Provider",
                        "enum": [
                            "groq",
                            "openai"
                        ],
                        "type": "string",
                        "description": "Provider used first for sentiment, topics, and summary",
                        "default": "groq"
                    },
                    "aiApiKey": {
                        "title": "AI API Key (optional - leave empty if you want to use your integrated key setup)",
                        "type": "string",
                        "description": "Optional API key for Groq or OpenAI"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Settings",
                        "type": "object",
                        "description": "Apify handles this automatically"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
