# Bluesky Monitor (`vizellie/bluesky-monitor`) Actor

Public posts from Bluesky accounts you name, or from a keyword search. One row per post, with the text, time and link. No follower lists, likes or direct messages.

- **URL**: https://apify.com/vizellie/bluesky-monitor.md
- **Developed by:** [Vi Zellie](https://apify.com/vizellie) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 saved 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 Monitor

Public posts from Bluesky accounts you name, or from a keyword. One row per post.

This Actor calls Bluesky's official public HTTP API (the AT Protocol AppView). It does not open bsky.app pages and it does not scrape them. It does not return follower lists, like lists, direct messages, email addresses or profile biographies.

### Who it is for

Agencies watching a public company or public-service account, or a keyword, and wanting the posts in a dataset they can schedule.

### What you get

- One row per post: handle, display name when the feed includes it, text, `createdAt`, the bsky.app post link, and the `at://` URI.
- Replies the account wrote are kept. Reposts of someone else's post are left out.
- Several handles in one run. A handle that fails does not drop the others.
- A cap. The form starts at 5 posts. If you leave **Max posts** out of an API or scheduled input, the cap is 25.
- Optional **New posts only**, off by default. Seen post URIs are kept in the key-value store `bluesky-monitor-state`.

### Handles and a keyword

Paste a handle such as `bsky.app`, or `https://bsky.app/profile/bsky.app`. The profile link is parsed. The page is not fetched. A link to one post is not an account and is skipped.

- **Handles only.** The run reads each account's latest posts (up to 100) and saves them up to **Max posts**.
- **Handles and a keyword.** The run reads those same accounts and keeps posts whose text contains the keyword. It does not add posts from other accounts. This is the combination to use when you are watching a known account.
- **Keyword only.** The text is sent to Bluesky search (`searchPosts`, newest first). Bluesky's public search can refuse an anonymous call. When that happens the run says so, saves nothing for the search, and does not charge a post. Watching a handle still works.

There is no language field. The account feed has no language parameter, and public search is not a reliable place to put one.

### Try it

1. Leave **Handles** on `bsky.app` (the Bluesky company's public account, not a person).
2. Leave **Keyword** empty.
3. Leave **Max posts** at 5.
4. Leave **New posts only** off.
5. Run the Actor. The dataset has up to 5 posts from that account. `OUTPUT` says how many were saved.

### Example input

```json
{
  "handles": ["bsky.app"],
  "maxResults": 5,
  "newPostsOnly": false
}
```

A run that omits `maxResults` saves up to 25 posts, not 5. The 5 is only the form's trial value. A task you save from the form keeps 5.

To watch that account for one word, add `"keyword": "update"`. The run then keeps posts from `bsky.app` whose text contains `update`. It still does not search the rest of the network.

### Example output

```json
{
  "handle": "bsky.app",
  "displayName": "Bluesky",
  "text": "getting our Halloween decorations set up",
  "createdAt": "2026-10-28T16:58:02.827Z",
  "url": "https://bsky.app/profile/bsky.app/post/3myx7vphq3s2j",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3myx7vphq3s2j"
}
```

That is one public post from the Bluesky account, so you can see the shape. The feed changes.

### Pricing

You pay a small fee when the run starts, then a fee for each post that is saved.

| What | Price |
|---|---|
| Run start | $0.00005 |
| Saved post | $0.002 |

A handle or a search that could not be read is not charged. Posts past the cap, reposts, and posts skipped by **New posts only** are not charged.

**Examples**

- The form, `bsky.app`, up to 5 posts: 5 x $0.002 = **$0.01**, plus the $0.00005 start fee.
- The omitted cap of 25 posts, all saved: 25 x $0.002 = **$0.05**, plus the start fee.
- A search the API refuses, nothing saved: **$0.00005**.

The pricing tab on the store is the price you are charged if it ever differs.

### Scheduling

Save a task with **New posts only** on, and schedule it. Keep the same handles. The seen list lives in `bluesky-monitor-state`. The store is opened only when that switch is on. If the token cannot open it, the run uses its own store, says so in `OUTPUT`, and still finishes.

### No personal data

This Actor does not collect personal data.

- It does not read follower lists, like lists, direct messages or profile biographies.
- It does not save like counts or reply counts.
- The display name is the public name on the posts you asked for. A private person's account is not prefilled.
- An email address or a phone number in the post text or display name is removed before the row is saved.
- Raw API responses are not stored.
- Logs do not include the address that was called.

### FAQ

**Why did keyword search save nothing?**
Bluesky's public search refused the anonymous call, or there were no hits. Use a handle if you need posts without search. A handle plus a keyword does not use search.

**Why is a repost missing?**
Reposts are someone else's post. They are left out. Replies written by the account are kept.

**Where do the rows come from?**
Bluesky's public AppView. This Actor is not affiliated with Bluesky.

### Next additions

- A language filter, once account feeds and public search both support it the same way.
- A login, if you need search after the public endpoint refuses it.

### Feedback

Missing a field? Open an issue on the Actor's Issues tab.

# Actor input Schema

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

Bluesky accounts to read, such as bsky.app. A https://bsky.app/profile/handle link is accepted and is not opened as a web page. One per line. Leave empty if you only want a keyword search.

## `keyword` (type: `string`):

Optional. With no handles, this text is sent to Bluesky search. With one or more handles, the run reads those accounts and keeps posts whose text contains this keyword. It does not mix in posts from other accounts.

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

Most posts saved in one run, from 1 to 100. The form starts at 5 so a trial stays small. When this field is omitted, the cap is 25. Each account read still looks at the latest 100 posts so reposts and a keyword can be filtered before that cap.

## `newPostsOnly` (type: `boolean`):

Off by default. When on, posts already saved are skipped. Post URIs are kept in the key-value store bluesky-monitor-state so a later scheduled run can save only posts it has not saved before. The first run saves the current posts, up to Max posts.

## Actor input object example

```json
{
  "handles": [
    "bsky.app"
  ],
  "keyword": "update",
  "maxResults": 5,
  "newPostsOnly": false
}
```

# Actor output Schema

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

One row per saved post: handle, display name, text, time and link.

## `summary` (type: `string`):

The OUTPUT record in the default key-value store.

# 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"
    ],
    "maxResults": 5,
    "newPostsOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("vizellie/bluesky-monitor").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"],
    "maxResults": 5,
    "newPostsOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("vizellie/bluesky-monitor").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 '{
  "handles": [
    "bsky.app"
  ],
  "maxResults": 5,
  "newPostsOnly": false
}' |
apify call vizellie/bluesky-monitor --silent --output-dataset

```

## MCP server setup

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

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/jjDtJhU8wfdYm1ZcZ/builds/LwhGJLSMeEwilXRev/openapi.json
