# Bluesky Posts Scraper - Author Feeds & Stats (`pellucid_bird/bluesky-posts-scraper`) Actor

Your go-to Bluesky scraper for public author-feed research. Export text, timestamps, links, media URLs and available engagement counts to JSON or CSV. Supply handles, DIDs or profile URLs; choose feed filters and optional reposts. No login required.

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

## Pricing

from $0.29 / 1,000 feed post saveds

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

Export public Bluesky posts from a list of handles, DIDs or profile URLs. Get post text, source timestamps, stable AT URIs, links, media URLs and available engagement counts in a dataset you can download as JSON, CSV or Excel.

### What you can use it for

- Build a content inventory for known brands, publishers or creators.
- Monitor public posts mentioning selected words across your own list of profiles.
- Compare dated snapshots of likes, replies, reposts and quotes using stable post URIs.

The Actor reads the official public Bluesky AppView API. No Bluesky login or app password is required.

### Example result

Abbreviated record collected on November 12, 2026. Text is shortened here; the dataset retains the full returned post text. Counts can change after collection.

```json
{
  "feedOwnerHandle": "bsky.app",
  "authorHandle": "bsky.app",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3n22yg6lg2k2f",
  "url": "https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur/post/3n22yg6lg2k2f",
  "text": "Rolling out now: a new notifications screen. …",
  "createdAt": "2026-11-11T22:19:56.200000000Z",
  "isReply": false,
  "isRepost": false
}
```

### Quick start

1. Paste this input into the Actor's input editor and start a run.
2. Open the dataset to inspect posts or export JSON, CSV or Excel.
3. Open the `OUTPUT` record for each author's coverage, filters and stopping reason.

```json
{
  "actors": ["bsky.app"],
  "maxItems": 50,
  "maxPostsPerAuthor": 50,
  "maxEstimatedCostUsd": 0.1
}
```

Use known public profiles. This Actor collects author feeds; it does not discover profiles or search all of Bluesky.

### Pricing

**$0.018 per run start + $0.29 per 1,000 saved feed-post rows. Apify platform resources are included.**

| Saved rows | Total Actor price |
| ---------: | ----------------: |
|          0 |          $0.01800 |
|          1 |          $0.01829 |
|         50 |          $0.03250 |
|        100 |          $0.04700 |
|      1,000 |          $0.30800 |
|      5,000 |          $1.46800 |

A result is one unique post within one resolved author's feed. When reposts are enabled, a post present in two different authors' feeds can produce two rows, each with its own feed owner. Handles and DIDs resolving to the same profile are collected once in a run.

Filtered posts, source errors and report records are not charged as result rows. The startup charge still applies when no posts are saved. There are no separate profile-lookup, media-link or proxy fees.

Set **Maximum cost per run** in Apify as well as `maxEstimatedCostUsd`. The Actor stops collection when its event allowance or conservative resource allowance is exhausted and reports partial coverage. For a 1,000-row collection, allow at least the $0.308 event price; the example below uses a $1 Actor-side limit. These limits are safeguards, not a promise of the platform's exact final invoice.

### Input options

| Field                 | Default              | Meaning                                                                                  |
| --------------------- | -------------------- | ---------------------------------------------------------------------------------------- |
| `actors`              | Required             | 1–20 handles, supported DIDs or `https://bsky.app/profile/...` URLs.                     |
| `maxItems`            | 200                  | Maximum saved rows across the run; 1–5,000.                                              |
| `maxPostsPerAuthor`   | 100                  | Maximum matching saved rows per resolved profile; 1–5,000.                               |
| `maxPagesPerAuthor`   | 50                   | Maximum source pages per profile; 1–100. Includes filtered pages.                        |
| `pageSize`            | 50                   | Requested source rows per page; 5–100. The source can return fewer.                      |
| `feedFilter`          | `posts_with_replies` | Official API filter; supported values listed below.                                      |
| `includeReposts`      | `false`              | Include posts the target profile reposted, with the original author preserved.           |
| `keywords`            | None                 | Case-insensitive substrings matched against post text; any one match is enough.          |
| `createdAfter`        | None                 | Inclusive original-post timestamp, with timezone.                                        |
| `createdBefore`       | None                 | Inclusive original-post timestamp, with timezone.                                        |
| `maxEstimatedCostUsd` | 0.10                 | Additional spending bound; zero prevents collection but not the platform startup charge. |
| `requestTimeoutSecs`  | 15                   | Timeout for one physical request; 5–30 seconds.                                          |
| `maxRetries`          | 1                    | Retries of transient network failures, HTTP 429 or server errors; 0–2.                   |
| `requestDelayMs`      | 250                  | Minimum spacing between request starts; 200–2,000 milliseconds.                          |

Supported `feedFilter` values: `posts_with_replies`, `posts_no_replies`, `posts_with_media`, `posts_and_author_threads`, and `posts_with_video`. These are the public API's feed modes. Pinned posts are not requested.

#### Collect posts and reposts from two profiles

```json
{
  "actors": ["bsky.app", "https://bsky.app/profile/apify.com"],
  "includeReposts": true,
  "maxItems": 1000,
  "maxPostsPerAuthor": 500,
  "maxEstimatedCostUsd": 1
}
```

#### Filter posts by text and source creation time

```json
{
  "actors": ["bsky.app"],
  "keywords": ["update", "notifications"],
  "createdAfter": "2026-11-01T00:00:00Z",
  "createdBefore": "2026-11-30T23:59:59.999999999Z",
  "maxPostsPerAuthor": 100,
  "maxPagesPerAuthor": 20,
  "maxEstimatedCostUsd": 0.1
}
```

Date filters apply to `createdAt` in the original post record. They do not filter by the time another profile reposted it. Old date ranges and restrictive keywords can require many pages with few matching rows; check `OUTPUT` for any limit reached.

### Output fields

| Fields                                                 | Meaning                                                                                                                                        |
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `key`, `uri`, `cid`, `postId`, `url`                   | Feed-post identity, AT URI, content identifier, record key and public link.                                                                    |
| `feedOwnerDid`, `feedOwnerHandle`                      | Profile whose feed was requested.                                                                                                              |
| `authorDid`, `authorHandle`, `authorDisplayName`       | Original post author, including when the row is a repost.                                                                                      |
| `text`, `createdAt`, `indexedAt`                       | Returned post text, source record creation time and AppView index time when available. Source precision is preserved up to nanoseconds in UTC. |
| `isReply`, `replyParentUri`, `replyRootUri`            | Reply status and source thread references. The conversation is not fetched.                                                                    |
| `isRepost`, `repostedByDid`, `repostedAt`              | Repost status, reposter DID and observed source repost time.                                                                                   |
| `likeCount`, `replyCount`, `repostCount`, `quoteCount` | Public integer counters when exposed; unavailable or invalid counters are `null`. Zero remains zero.                                           |
| `languages`, `links`, `hashtags`, `mentions`           | Language labels and structured rich-text facets. Mention entries are DIDs.                                                                     |
| `images`, `video`, `external`                          | Exposed image/video URLs and external-link preview metadata. Media files are not downloaded.                                                   |
| `quotedPostUri`                                        | Quoted post identity when exposed; quoted text is not fetched separately.                                                                      |
| `warnings`, `scrapedAt`                                | Field-level warnings and the UTC observation time.                                                                                             |

Empty arrays mean no corresponding structured items were returned. A missing count is not a measured zero. The same post's counters may change between runs.

`OUTPUT` contains one report per requested input, including duplicate-profile aliases, source failures, pages examined, rows excluded, invalid source records, and any pagination or spending limit. `nextCursor` is the API cursor after the fetched page; if a row limit stops partway through that page, it is not a lossless continuation point. Start a fresh run to collect a new snapshot.

### API and automation

Start a run through the Apify API:

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/pellucid_bird~bluesky-posts-scraper/runs' \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"actors":["bsky.app"],"maxItems":50,"maxEstimatedCostUsd":0.1}'
```

The response contains the run ID and default dataset ID. After the run finishes, read the dataset through the API or download it in the Console. Save your input as an Apify task for scheduled snapshots. Compare exported records by `key` or `uri` in your own workflow; the Actor does not calculate historical growth automatically.

Apify MCP clients can inspect this Actor's input and price through `fetch-actor-details` and run it with `call-actor` using `pellucid_bird/bluesky-posts-scraper`.

### Coverage and limits

- Only profiles and posts available through the unauthenticated public AppView are accessible. Private data, DMs, follower lists and authenticated-only content are outside this Actor's scope.
- The source can omit deleted, moderated or historical records. `SOURCE_EXHAUSTED` means the API supplied no further cursor; it is not a guarantee of a complete historical archive.
- Source order follows the author feed. Reposts can refer to much older posts, and `createdAt` is source-provided data.
- Counters are snapshots of what the API exposed. Media links can expire or become unavailable.
- Each run is bounded to 5,000 saved rows, 20 input profiles, 300 physical requests and five minutes. Large responses, output size or the cost guard can stop collection earlier. Limits are reported explicitly.
- HTTP 429 and server errors get bounded retries. A server retry delay above 30 seconds stops that author, and remaining profiles can continue within the run's budget.
- Repeated cursors and malformed source rows are reported explicitly. Review `OUTPUT` when a run reports partial coverage.

### Support

Include the Apify run ID, input and the relevant `OUTPUT.authors` entry when reporting a problem. Do not send credentials. This Actor is an independent integration with the [documented public Bluesky API](https://docs.bsky.app/docs/advanced-guides/api-directory); data remains subject to the source's availability and applicable rights.

# Actor input Schema

## `actors` (type: `array`):

1–20 public handles, did:plc or did:web identifiers, or https://bsky.app/profile/... URLs. Aliases resolving to the same DID are collected once.

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

Maximum saved feed-post rows across all authors. The same post in two different author feeds is a separate row when reposts are enabled.

## `maxPostsPerAuthor` (type: `integer`):

Maximum matching posts saved for one resolved author DID.

## `maxPagesPerAuthor` (type: `integer`):

Bounds the number of feed pages, including pages excluded by your filters. A reached page limit is reported as partial coverage.

## `pageSize` (type: `integer`):

Records requested per public API page. The source may return fewer records and may omit historical posts.

## `feedFilter` (type: `string`):

Filter supplied to the official author-feed API. Pinned posts are not requested. Replies and reposts follow the selected source filter.

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

Include posts this profile reposted. Each row identifies both the feed owner and original author, with repost time when exposed. Disabled by default.

## `keywords` (type: `array`):

Optional case-insensitive substrings; a post must match at least one. Applies to post text only. Excluded rows are not saved or charged as results.

## `createdAfter` (type: `string`):

Optional inclusive original-post timestamp, including a timezone, e.g. 2026-01-01T00:00:00Z. This is not the repost timestamp.

## `createdBefore` (type: `string`):

Optional inclusive original-post timestamp with timezone. Old date windows may require many pages and can stop at resource or page limits.

## `requestTimeoutSecs` (type: `integer`):

One timer covers DNS, TLS and response reading. Each physical retry consumes its own allowance.

## `maxRetries` (type: `integer`):

Retries only transient network failures, HTTP 429 and server errors. Retry-After over 30 seconds stops that author; resource limits may stop retries sooner.

## `requestDelayMs` (type: `integer`):

Minimum spacing between public API request starts; retries also respect the server delay.

## `maxEstimatedCostUsd` (type: `number`):

Additional Actor-side spending bound. Also set Apify Maximum cost per run. Pricing is $0.018 per run start plus $0.00029 per saved feed-post row, with platform resources included. Zero prevents source collection; the startup charge still applies.

## Actor input object example

```json
{
  "actors": [
    "bsky.app"
  ],
  "maxItems": 200,
  "maxPostsPerAuthor": 100,
  "maxPagesPerAuthor": 50,
  "pageSize": 50,
  "feedFilter": "posts_with_replies",
  "includeReposts": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "requestDelayMs": 250,
  "maxEstimatedCostUsd": 0.1
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

## `report` (type: `string`):

No description

# 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 = {
    "actors": [
        "bsky.app"
    ],
    "maxItems": 200,
    "maxPostsPerAuthor": 100,
    "maxPagesPerAuthor": 50,
    "pageSize": 50,
    "feedFilter": "posts_with_replies",
    "includeReposts": false,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "requestDelayMs": 250,
    "maxEstimatedCostUsd": 0.1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/bluesky-posts-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 = {
    "actors": ["bsky.app"],
    "maxItems": 200,
    "maxPostsPerAuthor": 100,
    "maxPagesPerAuthor": 50,
    "pageSize": 50,
    "feedFilter": "posts_with_replies",
    "includeReposts": False,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "requestDelayMs": 250,
    "maxEstimatedCostUsd": 0.1,
}

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/bluesky-posts-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 '{
  "actors": [
    "bsky.app"
  ],
  "maxItems": 200,
  "maxPostsPerAuthor": 100,
  "maxPagesPerAuthor": 50,
  "pageSize": 50,
  "feedFilter": "posts_with_replies",
  "includeReposts": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "requestDelayMs": 250,
  "maxEstimatedCostUsd": 0.1
}' |
apify call pellucid_bird/bluesky-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pellucid_bird/bluesky-posts-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/sZy9xwr3jcQBUDWf7/builds/psNSaH8CVvTr2Xfww/openapi.json
