# Bluesky Scraper — Posts, Profiles, Followers, Search (`antique_sundew/bluesky-scraper`) Actor

Scrape Bluesky posts, profiles, followers and custom feeds by keyword or handle. Fast HTTP API, no login required, clean JSON output.

- **URL**: https://apify.com/antique\_sundew/bluesky-scraper.md
- **Developed by:** [Alexandru Afanasiuc](https://apify.com/antique_sundew) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 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 — Export Posts, Profiles, Followers & Search Data

Fast, lightweight Apify actor to scrape posts, profiles, followers, custom feeds, and keyword search results from **Bluesky Social**.

### Features

- ⚡ **Fast & Lightweight**: Pure HTTP scraper — no headless browser required, runs with 128 MB memory.
- 🔍 **7 Extraction Modes**:
  1. `searchPosts`: Search Bluesky posts by any keyword/phrase with sorting (`latest` or `top`).
  2. `searchProfiles`: Search Bluesky user profiles by keyword (e.g. `journalist`, `developer`, `crypto`).
  3. `authorFeed`: Extract all posts published by specified user handle(s).
  4. `profiles`: Extract full profile metadata for user handle(s).
  5. `followers`: Scrape all followers for user handle(s).
  6. `follows`: Scrape all accounts followed by user handle(s).
  7. `feed`: Extract posts from any custom Bluesky feed URI (`at://...`).
- 📊 **Rich Post Data**: Includes text, creation date, language, hashtags, author details, like/repost/quote/reply counts, image URLs, external link previews, and quoted post metadata.
- 🔗 **Smart Input Parsing**: Accepts raw handles (`bsky.app`), `@handles`, or full profile URLs (`https://bsky.app/profile/nytimes.com`).

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `"searchPosts"` | Extraction mode: `searchPosts`, `searchProfiles`, `authorFeed`, `profiles`, `followers`, `follows`, `feed`. |
| `queries` | Array | `["artificial intelligence"]` | Search keywords for `searchPosts` or `searchProfiles` mode. |
| `handles` | Array | `["bsky.app"]` | User handles, DIDs, or profile URLs for profile/feed modes. |
| `maxItems` | Integer | `1000` | Maximum number of items (posts or profiles) to extract. |
| `sort` | String | `"latest"` | Sort order for post search (`latest` or `top`). |
| `includeReplies` | Boolean | `false` | Include replies when scraping user author feeds. |

### Sample Post Output

```json
{
  "type": "post",
  "uri": "at://did:plc:ubhqtt7mjiy63gdyng423vr3/app.bsky.feed.post/3msojdnv6gc2p",
  "cid": "bafyreigrmfmgnf6ibqivxevodop3llnlr4i224hebpb62vwhyn24ih26gu",
  "url": "https://bsky.app/profile/lnuosce.bsky.social/post/3msojdnv6gc2p",
  "text": "Bitcoin market updates and news...",
  "createdAt": "2026-08-09T21:21:47.205Z",
  "langs": ["en"],
  "hashtags": ["bitcoin", "crypto"],
  "author": {
    "did": "did:plc:ubhqtt7mjiy63gdyng423vr3",
    "handle": "lnuosce.bsky.social",
    "displayName": "LNuosce",
    "avatar": "https://cdn.bsky.app/img/avatar/..."
  },
  "replyCount": 12,
  "repostCount": 45,
  "likeCount": 120,
  "quoteCount": 3,
  "isReply": false,
  "embedType": "app.bsky.embed.external#view",
  "images": [],
  "externalLink": {
    "url": "https://forbes.com/...",
    "title": "Bitcoin Analysis",
    "description": "Latest market trends..."
  },
  "quotedPost": null,
  "scrapedAt": "2026-08-09T21:23:00.000Z"
}
```

### Legal & Compliance

This actor extracts only publicly accessible social media posts and profile information without requiring user login or accessing private personal data.

# Actor input Schema

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

Choose the data type: search posts by keyword, search profiles by keyword, get a user's posts, profiles, followers, follows, or a custom feed.

## `queries` (type: `array`):

Keywords or phrases to search posts or profiles for. E.g. 'artificial intelligence' or 'journalist'.

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

Bluesky handles, DIDs, or profile URLs (e.g. bsky.app or https://bsky.app/profile/nytimes.com).

## `feedUris` (type: `array`):

at:// URIs of custom feeds (mode: Posts from a custom feed).

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

Stop after this many results (posts or profiles) in total.

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

Sort order for post search.

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

Include replies when scraping a user's posts.

## Actor input object example

```json
{
  "mode": "searchPosts",
  "queries": [
    "artificial intelligence"
  ],
  "handles": [
    "bsky.app"
  ],
  "maxItems": 1000,
  "sort": "latest",
  "includeReplies": false
}
```

# 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 = {
    "queries": [
        "artificial intelligence"
    ],
    "handles": [
        "bsky.app"
    ]
};

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

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

```

## MCP server setup

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

```

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/XI5r5TbRsQKGXF0Cx/builds/yJAFuralMTVwcGBL0/openapi.json
