# Bluesky Scraper Pro (AT Protocol) (`melchor_hermes/bluesky-scraper-pro`) Actor

Pull full author feeds, profiles, and engagement metrics from the open AT Protocol. No login, no proxies. Optional authenticated search mode. Clean JSON for brand monitoring & research.

- **URL**: https://apify.com/melchor\_hermes/bluesky-scraper-pro.md
- **Developed by:** [Juan Pablo Barrios Martin](https://apify.com/melchor_hermes) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bluesky Scraper Pro (AT Protocol)

Pull full author feeds, profiles, and engagement metrics (likes, reposts, replies) from the open AT Protocol — without login or proxies. Built for brand monitoring, influencer vetting, and content research on the fast-growing Bluesky network. Returns clean structured JSON with pagination and an optional search-auth mode.

### What it does

- **Author feed mode** — pull a user's posts with full engagement counts (likes, reposts, replies, quotes) with pagination.
- **Profile mode** — pull follower/followers counts, post counts and profile stats for any handle.
- **Search mode (optional)** — full-text search across Bluesky posts. Requires a dedicated Bluesky app-password (the public AppView blocks unauthenticated search); pass it via input and the actor authenticates automatically.

### Why this one

- **No login required** for feed and profile modes — works against the public AppView, zero proxies, minimal maintenance.
- **Engagement metrics included** — most public feed scrapers return text only; this one returns reply/repost/like/quote counts per post.
- **Search-auth fallback handled** — the platform's `searchPosts` endpoint rejects anonymous calls on the AppView even with a valid JWT; this actor routes search through the personal PDS automatically and degrades gracefully to the public AppView.
- **Batch-safe** — invalid handles are skipped with a warning instead of failing the whole run (pay-per-result: you only pay for delivered items).

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `mode` | string | yes | `profile` / `author-feed` / `search` |
| `handles` | array | yes | Bluesky handles (e.g. `bsky.app`, `someone.bsky.social`) |
| `limit` | integer | no | Max posts per handle (feed mode) |
| `search_query` | string | search mode | Full-text query |
| `bluesky_identifier` | string | search mode | Bluesky username (app-password owner) |
| `bluesky_app_password` | string | search mode | App-password — use a **dedicated one**, not your main account password |

### Output

The default dataset contains one item per post/profile:

- `author_handle`, `text`, `created_at`
- `like_count`, `repost_count`, `reply_count`, `quote_count`
- `uri` (AT Protocol URI for deep-linking)

Open the run's Output tab or hit `{{links.apiDefaultDatasetUrl}}/items` for the raw JSON.

### Pricing

Pay per result — you pay only for delivered items ($0.0005 per item, plus the run start). No subscription, no minimum.

### Notes

- Works against `public.api.bsky.app` (AppView) without credentials for feed/profile.
- For search mode, create an app-password at `bsky.app/settings/app-passwords` and use it just for this actor.

# Actor input Schema

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

Operation mode of the scraper

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

Bluesky handles (without @) to scrape profiles or author feeds

## `max_posts` (type: `integer`):

Maximum posts to fetch per author

## `max_pages` (type: `integer`):

Maximum pages of 30 posts to paginate per author

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

Search query string (only used in search mode)

## `bluesky_identifier` (type: `string`):

Bluesky handle for authenticated search mode

## `bluesky_password` (type: `string`):

Bluesky app password for authenticated search mode

## Actor input object example

```json
{
  "mode": "author_feed",
  "max_posts": 50,
  "max_pages": 1
}
```

# Actor output Schema

## `results` (type: `string`):

Bluesky posts or profiles collected by the run, stored in the default dataset.

# 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("melchor_hermes/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("melchor_hermes/bluesky-scraper-pro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call melchor_hermes/bluesky-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,melchor_hermes/bluesky-scraper-pro"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/x1MNwovU1bUNr4BaN/builds/XrZWIwKFSyZOcgH0D/openapi.json
