# Bluesky Keyword Monitor: Every Matching Post, No Login (`yugenox/bluesky-keyword-monitor`) Actor

Monitor Bluesky for keywords, phrases and hashtags: every new public post that matches, with author handle, text, links, hashtags, language and like/repost/reply counts. Reads the full public firehose, no search caps, and scheduled runs resume where the last stopped. Account timeline mode too.

- **URL**: https://apify.com/yugenox/bluesky-keyword-monitor.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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 Keyword Monitor: Every Matching Post, No Login

Watch Bluesky for your keywords, phrases and hashtags and get **every new public post that matches**, with the author's handle and name, the full text, links, hashtags, language, reply and quote references, and like / repost / reply / quote counts.

Unlike search-based scrapers, this actor reads **Bluesky's full public stream of posts**, so there is no search cap of a few hundred results and no login. Schedule it, and **each run continues exactly where the previous one stopped**: no post missed, none saved twice.

### What you can use it for

- **Brand and PR monitoring**: every mention of your brand, product or CEO as it happens.
- **Social listening tools**: a steady feed of posts for sentiment, trends and share of voice.
- **Journalists and PR teams**: catch every `#journorequest` or `#PRrequest` post.
- **Finance and crypto**: track tickers and coins (`$TSLA`, `bitcoin`, `ethereum`) across the whole network.
- **Research**: collect complete keyword samples for a time window, by language.
- **Account monitoring**: new posts from a list of accounts (news outlets, competitors, officials).

### How it works

1. **Keyword mode** (default): add keywords. The run reads every Bluesky post published in the time window (by default the last 60 minutes on the first run) and keeps the ones that match.
2. Matching posts get the author's handle, display name and current engagement counts.
3. The run saves its position. The next run with the same input starts from there, so a schedule (hourly to daily) gives you a complete, gap-free feed.
4. **Account mode**: add handles, and the run reads those accounts' timelines instead (keywords then filter their posts).

Bluesky keeps its public stream for about **36 hours**, so schedule keyword monitors at least once a day.

### Input

| Field | What it does |
|---|---|
| Keywords | Words, phrases or hashtags. A post matches any of them (or all, with "Require all keywords"). Case-insensitive; whole words for Latin text, so `ai` does not match "said". `#tag` matches the hashtag. |
| Exclude keywords | Drop posts containing these. |
| Regular expression | Optional extra pattern the text must match. |
| Languages | e.g. `en`, `ja`, `pt`. Empty = all. |
| Include replies | On by default (replies are ~40% of posts). |
| Also search image descriptions and link cards | Match alt text and link preview titles too. |
| Accounts | Handles or profile links for account mode. |
| First run: minutes back | How far back the first run scans (up to 2160 = 36 h). |
| Start from | A fixed start time instead of the saved position. |
| Max hours scanned per run | Caps one run's window (the next run continues). |
| Max posts | Caps saved posts per run (the next run continues). |
| Monitor name | Keep the saved position when you edit your keywords. |

Example:

```json
{
  "keywords": ["#journorequest", "#prrequest"],
  "languages": ["en"],
  "lookbackMinutes": 120,
  "maxPosts": 1000
}
```

### Output

One row per post (trimmed example):

```json
{
  "postUrl": "https://bsky.app/profile/bsky.app/post/3mznvxo7so22q",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mznvxo7so22q",
  "text": "this is so cool",
  "createdAt": "2026-11-06T17:31:25.201Z",
  "authorHandle": "bsky.app",
  "authorDisplayName": "Bluesky",
  "authorDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
  "languages": ["en"],
  "hashtags": [],
  "links": [],
  "isReply": true,
  "replyParentUri": "at://did:plc:7pwalto3fnpetzbtfbybarue/app.bsky.feed.post/3mznvf4jkdc2m",
  "likeCount": 79,
  "repostCount": 3,
  "replyCount": 2,
  "quoteCount": 0,
  "matchedKeywords": ["bluesky"],
  "source": "timeline"
}
```

Other fields: `postId`, `indexedAt`, `authorAvatar`, `mentionDids`, `replyRootUri`, `quotedPostUri`, `embedType`, `imageCount`, `imageUrls`, `videoUrl`, `externalLink`, `bookmarkCount`, `labels`, `isRepost`, `repostedByHandle`, `enriched`, `enrichedAt`, `scrapedAt`.

Each run also writes a `RUN_REPORT` record (time window scanned, counts, any gap) to the default key-value store.

### Pricing

Pay per event:

- **$1.00 per 1,000 posts** saved.
- **$0.015 per 10 minutes of Bluesky scanned** in keyword mode ($0.09 per hour of posts, about $2.16 for a full day). This covers reading every post on the network in that window, whatever your keywords match. Account mode never pays this.
- **$0.005 per run** start.

Examples: an hourly monitor that finds 20 posts per hour costs about $0.115 per run (~$2.76 a day). A daily run over 24 hours that finds 1,000 posts costs about $3.17.

### Tips

- **Schedule it.** Hourly to daily runs with the same input give a complete feed. The first run uses "First run: minutes back"; later runs continue from the saved position.
- Bluesky keeps ~36 hours of posts in its public stream. If a monitor pauses longer, the run report says which interval could not be read.
- Several keywords in one monitor cost the same scanning fee as one, so group related keywords.
- For specific accounts, account mode is cheaper (no scanning fee) and can go back further than 36 hours.
- Engagement counts are read when the post is saved; a post saved minutes after it was published will show low counts.

### FAQ

**Is it legal to scrape Bluesky?**
The actor reads only public posts from Bluesky's public data stream and public API, which Bluesky openly provides for this kind of use. It does not log in or get around any access control. As with any personal data, you are responsible for using the results lawfully (for example GDPR, if it applies to you).

**Does it access any private data?**
No. It sees only posts that are public on Bluesky. No login, no direct messages, no private or deleted content: posts deleted before they are saved are left out.

**Why is there a per-10-minute fee?**
To find every match, the actor reads every post on Bluesky in your time window (over 100,000 posts an hour). That work costs the same whether your keywords match 0 or 10,000 posts.

**Will I get duplicates between scheduled runs?**
No. Runs with the same input continue from the saved position and skip posts already saved.

**Can I search older posts?**
Keyword mode covers the last ~36 hours. For older posts of specific accounts, use account mode with "First run: hours back".

# Actor input Schema

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

Words, phrases or hashtags to watch, e.g. "bitcoin", "climate change", "#journorequest", "$TSLA". A post matches when it contains ANY of them (case-insensitive, whole words for Latin text). "#tag" matches the hashtag.

## `excludeKeywords` (type: `array`):

Skip posts that contain any of these words.

## `matchAll` (type: `boolean`):

Only keep posts that contain EVERY keyword (default: any keyword).

## `regex` (type: `string`):

Optional JavaScript regular expression the post text must also match (case-insensitive), e.g. "\b(ETH|ethereum)\b". On its own (no keywords) every post is checked, which is slower.

## `languages` (type: `array`):

Only posts tagged with these language codes, e.g. "en", "ja", "pt", "de". Empty = all languages.

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

Keep replies (about 40% of all posts). Turn off for top-level posts only.

## `searchAltText` (type: `boolean`):

Also match keywords in image alt text and the title/description of link previews.

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

Optional: Bluesky handles or profile links (e.g. "nytimes.com", "bsky.app/profile/name.bsky.social"). When given, the run reads these accounts' timelines instead of the firehose (no per-minute fee); keywords, if set, filter their posts.

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

Also save posts the accounts reposted.

## `lookbackHours` (type: `integer`):

On the first run of an account list, how far back to read each timeline. Later runs continue from the newest post already seen.

## `lookbackMinutes` (type: `integer`):

Keyword mode: on the first run (no saved position yet), how many minutes of Bluesky to scan back from now. Bluesky's firehose keeps about 36 hours (2160 minutes). Later runs with the same input continue from where the last one stopped.

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

Optional: start at this time instead of the saved position, e.g. "2026-11-07T08:00:00Z" or "6 hours". At most ~36 hours back.

## `resume` (type: `boolean`):

Scheduled runs with the same keywords pick up exactly where the previous run stopped, so no post is missed or saved twice. Turn off to always use "First run: minutes back".

## `maxReplayHours` (type: `integer`):

Keyword mode: the most Bluesky time one run reads (1-36). If more is waiting, the next run continues.

## `maxPosts` (type: `integer`):

Maximum posts saved per run. 0 = no limit. When reached, the next run continues from that point.

## `maxMinutes` (type: `integer`):

Optional: stop after this many minutes of run time (0 = until done or the run timeout). The position is saved, so the next run catches up.

## `stateKey` (type: `string`):

Optional: a name for this monitor's saved position. By default it is tied to your keywords and filters; set a name to keep the same position after editing them.

## `proxyConfiguration` (type: `object`):

Used for Bluesky's public API (author names and like counts). Apify datacenter proxy is the default and comes with every plan.

## Actor input object example

```json
{
  "keywords": [
    "news"
  ],
  "matchAll": false,
  "includeReplies": true,
  "searchAltText": false,
  "includeReposts": false,
  "lookbackHours": 24,
  "lookbackMinutes": 10,
  "resume": true,
  "maxReplayHours": 24,
  "maxPosts": 20,
  "maxMinutes": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All matching posts.

## `run` (type: `string`):

Status and statistics for this run.

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

RUN_REPORT: how the run ended, time window scanned, counts and any gap.

# 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 = {
    "keywords": [
        "news"
    ],
    "lookbackMinutes": 10,
    "maxPosts": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/bluesky-keyword-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 = {
    "keywords": ["news"],
    "lookbackMinutes": 10,
    "maxPosts": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/bluesky-keyword-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 '{
  "keywords": [
    "news"
  ],
  "lookbackMinutes": 10,
  "maxPosts": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/bluesky-keyword-monitor --silent --output-dataset

```

## MCP server setup

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