# Bluesky Posts & Profiles Scraper (`lomo-dev/bluesky-posts-profiles`) Actor

Scrape Bluesky posts and profiles via the official AT Protocol API: keyword search, hashtags and author timelines with text, engagement counts and links, plus profile follower, following and post counts. No login needed for basic runs.

- **URL**: https://apify.com/lomo-dev/bluesky-posts-profiles.md
- **Developed by:** [Lomo Dev](https://apify.com/lomo-dev) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 posts

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 Posts & Profiles Scraper

**Scrape Bluesky posts and profiles** using the official AT Protocol API.

Search by keywords, hashtags or handles. Retrieve posts, replies, reposts, follower counts and full profile data. Optional login enables deeper search pagination.

[![Actor](https://apify.com/actor-badge?actor=lomo-dev/bluesky-posts-profiles)](https://console.apify.com/actors/PJRV3hAJvHGNqlwyp)

***

### 🚀 What you get

- Full-text **search** (Lucene-style queries supported)
- **Hashtag** feeds
- **Author feeds** (posts, replies, optional reposts)
- **Profile data**: followers, follows, posts count
- Date range filters (`since` / `until`)
- Sort by latest or top
- Optional Bluesky login for >100 posts per query

***

### 📥 Input

| Field | Default | Description |
|-------|---------|-------------|
| `searchQueries` | – | Full-text search terms |
| `hashtags` | – | Hashtags (with or without #) |
| `handles` | – | Handles, DIDs or bsky.app profile URLs |
| `maxItems` | 50 | Max posts per source |
| `since` / `until` | – | ISO date/datetime filters |
| `sort` | `latest` | latest / top |
| `lang` | – | 2-letter language code |
| `includeProfiles` | true | Output profile items for handles |
| `includeReplies` | true | Include replies in author feeds |
| `includeReposts` | false | Include reposts |
| `bskyIdentifier` + `bskyAppPassword` | – | Optional login for deeper pagination |

***

### 📤 Output

- **Post items**: text, author, createdAt, likes, replies, reposts, URI, etc.
- **Profile items**: handle, displayName, description, followersCount, followsCount, postsCount

***

### Example input

```json
{
  "searchQueries": ["apify"],
  "handles": ["bsky.app", "jay.bsky.team"],
  "maxItems": 10,
  "sort": "latest",
  "includeProfiles": true,
  "includeReplies": true,
  "includeReposts": false
}
```

### Example output

Sample rows from a real owner run (public Bluesky data):

```json
[
  {
    "type": "post",
    "source": "search",
    "sourceValue": "web scraping",
    "uri": "at://did:plc:bgjlvx3nynqkk2wgnpgukl5p/app.bsky.feed.post/3mxu7jeckqt2z",
    "cid": "bafyreidf5nzgvd5akh6ukf3endnrna4xepx5ielbxdxwk7jx2cvzfv25na",
    "url": "https://bsky.app/profile/lexfeathers.ca/post/3mxu7jeckqt2z",
    "text": "We should call LLM scraping \"web-fracking\" because I think that illustrates the damage these things do to web infrastructure.",
    "authorHandle": "lexfeathers.ca",
    "authorDisplayName": "Hex Feathers \ud83c\udf42",
    "authorDid": "did:plc:bgjlvx3nynqkk2wgnpgukl5p",
    "createdAt": "2026-10-14T18:47:56.402Z",
    "indexedAt": "2026-10-14T18:47:58.554Z",
    "likeCount": 21,
    "repostCount": 2,
    "replyCount": 2,
    "quoteCount": 0,
    "langs": [
      "en"
    ],
    "links": [],
    "hashtags": [],
    "embedType": null,
    "embed": null,
    "isReply": false,
    "replyParentUri": null,
    "isRepost": false,
    "scrapedAt": "2026-10-17T20:34:13.497Z"
  },
  {
    "type": "profile",
    "source": "author",
    "sourceValue": "@jay.bsky.team",
    "did": "did:plc:oky5czdrnfjpqslsw2a5iclo",
    "handle": "jay.bsky.team",
    "displayName": "Jay \ud83e\udd8b",
    "description": "Founder & Chief Innovation Officer @ Bluesky\n\nWorking on @attie.ai\n\n\ud83c\udf31 \ud83e\udeb4 \ud83c\udf33",
    "followersCount": 594477,
    "followsCount": 3994,
    "postsCount": 4185,
    "createdAt": "2022-11-17T06:31:40.296Z",
    "indexedAt": "2026-03-29T21:16:33.460Z",
    "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:oky5czdrnfjpqslsw2a5iclo/bafkreihxtnc37g7jqdcgidtkknwuswtjiijcdnc6cx4imc4oq33cnsc5da",
    "url": "https://bsky.app/profile/jay.bsky.team",
    "scrapedAt": "2026-10-17T20:34:13.953Z"
  }
]
```

### Pricing (Pay-per-event)

Live Store pricing (USD):

| Event | What it bills | Price |
|-------|---------------|-------|
| `apify-actor-start` | Once per run per GB of memory (min 1) | $0.0001 |
| `post` | Each post row written | $0.0006 |
| `profile` | Each profile row written | $0.0018 |

Example: 1 start + 20 posts + 1 profile ≈ **$0.0139** at 512 MB.

### ⚙️ Memory limits

- Min: **256 MB**
- Max: **1024 MB**

***

### Notes

- Uses the official AT Protocol (no unofficial scraping).
- Login with an app password is optional but recommended for larger result sets.
- Respect Bluesky’s rate limits and terms of service.

# Actor input Schema

## `searchQueries` (type: `array`):

Full-text post search terms (Lucene-style syntax supported by Bluesky, e.g. "apify from:apify.com").

## `hashtags` (type: `array`):

Hashtags without or with #, e.g. opensource.

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

Bluesky handles, DIDs or bsky.app profile URLs. Returns the profile (follower counts) and the author's posts.

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

Maximum posts per search query / hashtag / handle. Without login, search returns at most 100 posts per query (Bluesky blocks unauthenticated search pagination).

## `since` (type: `string`):

ISO date or datetime, e.g. 2026-01-01 or 2026-01-01T00:00:00Z.

## `until` (type: `string`):

ISO date or datetime.

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

Order of search / hashtag results.

## `lang` (type: `string`):

Optional 2-letter language code for search results, e.g. en.

## `includeProfiles` (type: `boolean`):

Output one profile item (followers, follows, posts counts) per handle.

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

If off, only top-level posts are returned for handles.

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

If on, posts the author reposted are also returned (marked isRepost).

## `bskyIdentifier` (type: `string`):

Your handle or email. Only needed for deep search pagination (>100 posts per query).

## `bskyAppPassword` (type: `string`):

Create one at bsky.app → Settings → Privacy and security → App passwords. Never use your main password.

## `bskyService` (type: `string`):

Your account's PDS host. Leave default for bsky.social accounts.

## Actor input object example

```json
{
  "searchQueries": [
    "apify"
  ],
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxItems": 10,
  "sort": "latest",
  "includeProfiles": true,
  "includeReplies": true,
  "includeReposts": false,
  "bskyService": "https://bsky.social"
}
```

# Actor output Schema

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

Post and profile rows 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 = {
    "searchQueries": [
        "apify"
    ],
    "handles": [
        "bsky.app",
        "jay.bsky.team"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lomo-dev/bluesky-posts-profiles").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 = {
    "searchQueries": ["apify"],
    "handles": [
        "bsky.app",
        "jay.bsky.team",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lomo-dev/bluesky-posts-profiles").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 '{
  "searchQueries": [
    "apify"
  ],
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "maxItems": 10
}' |
apify call lomo-dev/bluesky-posts-profiles --silent --output-dataset

```

## MCP server setup

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

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/PJRV3hAJvHGNqlwyp/builds/cZjkgVpq460KoRc5r/openapi.json
