# Bluesky Posts (`avakode/bluesky-posts`) Actor

Public posts of Bluesky accounts and reply threads under posts, from the open Bluesky API.

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

## Pricing

from $0.34 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Get the public posts of Bluesky accounts, or the whole reply thread under a post, as clean rows with text, dates, counts and links. Data comes from Bluesky's official open read API; no login or API key is needed.

### What it does

- **Accounts:** give handles, DIDs or profile links; the tool returns each account's latest posts, newest first, with filters for age, reposts and replies.
- **Post links:** give links to single posts; the tool returns the post and the tree of replies below it, with the level (`depth`) and the address of the post each reply answers (`parent_url`).
- Reads only public data of the official `public.api.bsky.app` service, one request per second at most, with a few requests per 100 posts. It does not read follower or follow lists.

### Use cases

- Track what a brand, newsroom or public figure posts and how it performs (likes, reposts, replies, quotes).
- Collect the replies under a post for community feedback or sentiment analysis.
- Feed a monitoring dashboard with "only new since the last run" posts.

### Input

| Field | Type | Description |
|---|---|---|
| `accounts` | array | Handles (`bsky.app`), DIDs or profile links. |
| `postLinks` | array | Post links (`https://bsky.app/profile/<handle>/post/<id>`); returns the post and its replies. |
| `postedSince` | string | Only posts from this ISO date or date-time on (a plain date = start of that day, UTC); the later of this and `maxAgeDays` applies (accounts only). |
| `postedUntil` | string | Only posts up to this ISO date or date-time (a plain date includes the whole day, UTC). Accounts only. |
| `maxAgeDays` | integer | Only posts newer than this many days; 0 = no limit (accounts only). |
| `excludeReposts` | boolean | Skip posts the account only reposted. |
| `excludeReplies` | boolean | Skip replies to other posts. |
| `maxPostsPerAccount` | integer | Limit per account (default 100). |
| `maxReplyDepth` | integer | Levels of replies to read under a linked post (default 3). |
| `onlyNew` | boolean | Only posts not delivered by an earlier run with the same targets. |
| `maxResults` | integer | Total limit of records. |

Example:

```json
{ "accounts": ["bsky.app"], "postLinks": ["https://bsky.app/profile/bsky.app/post/3mzg7n66d2c2u"], "maxAgeDays": 30, "excludeReplies": true, "maxPostsPerAccount": 50 }
```

### Output

One record per post. Missing values are `null`, dates are ISO 8601 UTC, `url` is the post on bsky.app.

| Field | Description |
|---|---|
| `url` | Web address of the post. |
| `source_id` | AT Protocol address (at-uri) of the post. |
| `author_handle`, `author_display_name`, `author_did` | The author of the post (for a repost, the original author). |
| `text` | Post text. |
| `created_at` | When the post was written. |
| `like_count`, `repost_count`, `reply_count`, `quote_count` | Counts at the time of the run. |
| `language` | First language tag of the post. |
| `media_urls` | Image addresses and video playlist addresses. |
| `external_url`, `external_title` | Link card attached to the post. |
| `quoted_url` | The post this one quotes. |
| `is_repost`, `reposted_by`, `reposted_at` | Set when the account reposted someone else's post. |
| `is_reply`, `parent_url` | Set when the post answers another post. |
| `depth` | Level in a reply thread (0 = linked post); `null` for account posts. |
| `source` | The account or link from the input that produced the record. |

Example record (shortened):

```json
{ "url": "https://bsky.app/profile/bsky.app/post/3mzhhvhjfwk22", "author_handle": "bsky.app", "text": "We're seeing 200% of our usual data traffic...",
  "created_at": "2026-11-04T04:03:40.249Z", "like_count": 15568, "repost_count": 1242, "reply_count": 330, "quote_count": 401,
  "is_repost": false, "is_reply": false, "parent_url": null, "depth": null, "source": "bsky.app" }
```

### Pricing

Pay per result: you are charged for each record written to the dataset, plus a small start fee per run. Set `maxResults` to cap the cost.

### Errors

- **Wrong input:** a handle, link or number that does not look right, or an account or post that does not exist. The run names the item in the log and skips it. If every target is skipped this way, the run still ends successfully with no records, and the status line names the target and the reason.
- **Site changed:** Bluesky returned a structure the tool does not know.
- **Access blocked / site unavailable:** Bluesky rate-limited or refused the request, or asked to come back later. The host is closed for the rest of the run, so the run stops at that target and does not try the others. If results were already written, the run ends normally and the status line names the reason and the number of posts; if there are none, the run fails with that message.
  In multi-target runs a bad account, a deleted post or an unexpected answer for one target is skipped with a warning; if nothing could be read, the run fails only when one of the skipped targets failed for a reason other than wrong input (for example Bluesky answered in an unknown format). With "only new", a page of an account that holds only posts delivered before ends that account, so quiet accounts cost one request.

### Limitations

- No keyword or hashtag search: Bluesky does not offer it to anonymous clients, and this tool does not log in. Use known accounts or post links.
- Only public data; blocked, deleted or private items are skipped. Counts are a snapshot.
- Reply trees are cut at `maxReplyDepth`, and very large threads may be trimmed by Bluesky itself.
- At most one batch may be written again if a write was still on its way when the run was stopped.
- If a run is killed while it writes a batch and is not resurrected, the next "only new" run may skip that batch.
- Two "only new" runs with the same targets cannot work at the same time: the second one stops with a message before it reads anything.

### Support

Open an issue from the tool's page in the Apify Store with the input you used and the log line that failed.

# Actor input Schema

## `accounts` (type: `array`):

Bluesky handles (bsky.app), DIDs (did:plc:...) or profile links (https://bsky.app/profile/bsky.app). The latest posts of each account are returned. A name that is not a handle, or an account that does not exist, is skipped.

## `postLinks` (type: `array`):

Links to single posts (https://bsky.app/profile/<handle>/post/<id>). The post and the tree of replies below it are returned, one record per reply. A link that is not a post link, or a post that does not exist, is skipped.

## `maxAgeDays` (type: `integer`):

Skip posts older than this many days. 0 means no age limit. Applies to accounts, not to post links.

## `postedSince` (type: `string`):

Only posts from this date on, for example 2026-11-01 or 2026-11-01T12:00:00Z. A plain date counts from the start of that day (UTC). Used together with the age limit, the later of the two applies. Applies to accounts, not to post links.

## `postedUntil` (type: `string`):

Only posts up to this date, for example 2026-11-30. A plain date includes that whole day (UTC). Applies to accounts, not to post links.

## `excludeReposts` (type: `boolean`):

Leave out posts the account only reposted from others.

## `excludeReplies` (type: `boolean`):

Leave out posts that are replies to other posts.

## `maxPostsPerAccount` (type: `integer`):

Stop after this many posts for each account.

## `maxReplyDepth` (type: `integer`):

How many levels of replies to read below a linked post (1 = direct replies only).

## `onlyNew` (type: `boolean`):

Return only posts not delivered by an earlier run with the same accounts and links.

## `maxResults` (type: `integer`):

Stop after this many records in total.

## Actor input object example

```json
{
  "accounts": [
    "bsky.app"
  ],
  "postLinks": [
    "https://bsky.app/profile/bsky.app/post/3mzg7n66d2c2u"
  ],
  "maxAgeDays": 30,
  "postedSince": "2026-11-01",
  "postedUntil": "2026-11-30",
  "excludeReposts": false,
  "excludeReplies": false,
  "maxPostsPerAccount": 100,
  "maxReplyDepth": 3,
  "onlyNew": false,
  "maxResults": 100
}
```

# Actor output Schema

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

All records written by the run (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 = {
    "accounts": [
        "bsky.app"
    ],
    "postLinks": [],
    "maxAgeDays": 0,
    "excludeReposts": false,
    "excludeReplies": false,
    "maxPostsPerAccount": 100,
    "maxReplyDepth": 3,
    "onlyNew": false,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("avakode/bluesky-posts").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 = {
    "accounts": ["bsky.app"],
    "postLinks": [],
    "maxAgeDays": 0,
    "excludeReposts": False,
    "excludeReplies": False,
    "maxPostsPerAccount": 100,
    "maxReplyDepth": 3,
    "onlyNew": False,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("avakode/bluesky-posts").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 '{
  "accounts": [
    "bsky.app"
  ],
  "postLinks": [],
  "maxAgeDays": 0,
  "excludeReposts": false,
  "excludeReplies": false,
  "maxPostsPerAccount": 100,
  "maxReplyDepth": 3,
  "onlyNew": false,
  "maxResults": 100
}' |
apify call avakode/bluesky-posts --silent --output-dataset

```

## MCP server setup

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

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/QOXW4wyygqVkgzuIC/builds/i9VIpEPWGodbjooIs/openapi.json
