# Bluesky Scraper – Profiles, Posts, Followers & Search (`hichemdev/bluesky-scraper`) Actor

Scrape Bluesky (AT Protocol) at scale - profiles, posts, followers and following, plus keyword or user search. No login, no cookies, no proxy required. Reliable structured data for social listening, influencer discovery, and research.

- **URL**: https://apify.com/hichemdev/bluesky-scraper.md
- **Developed by:** [Hichem Ben Moussa](https://apify.com/hichemdev) (community)
- **Categories:** Social media, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bluesky Scraper – Profiles, Posts, Followers & Search 🦋

**Extract public data from Bluesky** (the fast-growing AT Protocol social network) — profiles, posts, followers/following, and keyword or user search. **No login, no cookies, no proxy.** Built on Bluesky's official public API, so it's fast, reliable, and won't get blocked.

Great for **social listening**, **influencer discovery**, **audience research**, and building **datasets on an open social network**.

### 🔎 Modes

| Mode | Input | Returns |
|---|---|---|
| `profile` | handles | Display name, bio, follower/following/post counts, avatar, join date |
| `posts` | handles | A user's posts with text, timestamps, like/repost/reply counts |
| `search-posts` | searchQuery | Public posts matching a keyword |
| `search-users` | searchQuery | Users matching a keyword |
| `followers` | handles | Accounts that follow a user |
| `following` | handles | Accounts a user follows |

### 🎯 Use cases

- **Social listening & brand monitoring** — track mentions of your brand, product, or competitors on Bluesky.
- **Influencer & creator discovery** — find accounts by keyword and rank them by follower count and engagement.
- **Migration tracking** — monitor the movement of audiences from X/Twitter to Bluesky.
- **Market & academic research** — build clean datasets from an open, API-friendly network.
- **Lead generation** — surface active accounts in a niche and their public bios/links.

### 📥 Input

- `mode` — one of the modes above.
- `handles` — list of Bluesky handles (e.g. `bsky.app`), for profile/posts/followers/following.
- `searchQuery` — keyword(s) for the search modes.
- `maxItems` — cap per handle / query (default 100).

### 📤 Output (post example)

```json
{
  "uri": "at://did:plc:.../app.bsky.feed.post/3k...",
  "url": "https://bsky.app/profile/bsky.app/post/3k...",
  "authorHandle": "bsky.app",
  "authorName": "Bluesky",
  "text": "Welcome to Bluesky!",
  "createdAt": "2026-07-10T12:00:00.000Z",
  "likeCount": 1240,
  "repostCount": 210,
  "replyCount": 88,
  "quoteCount": 12
}
```

### 🔌 Integrations & scheduling

- **Schedule** the actor to track new posts or follower growth over time.
- Export to **CSV, Excel, JSON, or Google Sheets**, or pull via the Apify API.
- Feed results into your CRM, data warehouse, or an AI/LLM pipeline.

### ❓ FAQ

**Do I need a Bluesky account or app password?** No. It uses the official public AppView API (`public.api.bsky.app`) for public data — no login required.

**Will it get blocked?** It uses the sanctioned public API and backs off automatically on rate limits, so it's very reliable.

**How is it priced?** Pay per result — you're charged per profile, post, or user returned. No subscription.

### 🗺️ Roadmap

- Keyword monitoring with alerts (new posts since last run)
- Thread / reply-tree extraction
- Engagement analytics per account

# Actor input Schema

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

Choose the type of data to extract.

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

Bluesky handles for profile / posts / followers / following modes, e.g. "bsky.app" or "jay.bsky.team". Do not include the @.

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

Keyword(s) for search-posts / search-users modes.

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

Upper limit of results to return per handle or search query.

## Actor input object example

```json
{
  "mode": "posts",
  "handles": [
    "bsky.app"
  ],
  "maxItems": 100
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "handles": [
        "bsky.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hichemdev/bluesky-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "handles": ["bsky.app"] }

# Run the Actor and wait for it to finish
run = client.actor("hichemdev/bluesky-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "handles": [
    "bsky.app"
  ]
}' |
apify call hichemdev/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/okwxKiHxnlTEVAmRz/builds/CROZbvjX5Po1WJKkn/openapi.json
