# Bluesky Scraper & Mention Monitor (`heyiambk/bluesky-search-monitor`) Actor

Bluesky scraper for posts by keyword, hashtag or account, with a monitor mode that returns only new mentions on a schedule. Text, links, hashtags, engagement and post URLs from the open Bluesky API. No login. Pay per post.

- **URL**: https://apify.com/heyiambk/bluesky-search-monitor.md
- **Developed by:** [Tan Boon Kwee](https://apify.com/heyiambk) (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 Scraper & Mention Monitor

**Bluesky Scraper & Mention Monitor** searches Bluesky posts by keyword, phrase, hashtag or account, and monitors new mentions of your brand on a schedule. It uses Bluesky's open public API: **no login, no cookies, no browser**. Export Bluesky posts to JSON, CSV or Excel, or send them to Sheets, Slack or your own app.

### What Bluesky data do you get?

For every post:

- post URL, text, created time and language
- account handle and display name
- likes, reposts, replies and quotes
- hashtags and links in the post (including link cards)
- whether it is a reply or has images
- which search term or account matched it

### What can I use this Bluesky scraper for?

- **Brand and competitor mention monitoring:** schedule it hourly or daily with **Monitor mode** on, and get only posts you haven't seen before.
- **Social listening and market research:** collect posts about a topic, hashtag or domain (`domain:example.com`) for analysis.
- **Link and press tracking:** find posts that share links to your site or a competitor's with `domain:`.
- **Account tracking:** recent posts from public accounts, with replies left out.
- **Datasets for AI and analytics:** feed clean post rows into a spreadsheet, BI tool or LLM workflow.

### How much does it cost to scrape Bluesky?

Pay per post returned: **$1.00 per 1,000 posts** ($0.001 each), plus Apify's tiny start fee per run (a fraction of a cent). In Monitor mode, posts already seen are not returned or charged again.

Pricing examples:

- **One-off search:** 3 keywords x 100 posts = 300 posts = **$0.30**
- **Topic research:** 5 hashtags x 1,000 posts = 5,000 posts = **$5.00**
- **Daily brand monitor:** if your terms get about 50 new posts a day, that is about 1,500 posts a month = **about $1.50 a month**

Set **max cost per run** in the run options and the Actor stops before it goes over.

### How to monitor Bluesky mentions

1. Add your brand name, product names and `#hashtags` in **Search terms**. Quoted phrases and Bluesky search syntax work.
2. Optionally add public **Accounts** to follow.
3. Turn on **Monitor mode: only new posts** and give the monitor a name.
4. Click **Start** once, then add a schedule (see below) so new mentions arrive automatically.

### Input example

```json
{
  "searchTerms": ["apify", "\"web scraping\"", "#buildinpublic"],
  "authorHandles": ["bsky.app"],
  "sort": "latest",
  "since": "24h",
  "language": "en",
  "maxPostsPerTerm": 200,
  "onlyNew": true,
  "monitorName": "brand-mentions"
}
```

Bluesky search syntax works inside terms: `from:handle`, `mentions:handle`, `domain:example.com`, `lang:en`, quoted phrases.

### Output example

```json
{
  "postUrl": "https://bsky.app/profile/fabian-maume.bsky.social/post/3n2m3jecw7m2e",
  "text": "Apify Actors can share one run across multiple requests ...",
  "createdAt": "2026-11-18T17:30:39.154Z",
  "languages": ["en"],
  "authorHandle": "fabian-maume.bsky.social",
  "authorDisplayName": "Fabian Maume",
  "likeCount": 2, "repostCount": 0, "replyCount": 0, "quoteCount": 0,
  "hashtags": [],
  "links": ["https://blog.apify.com/introducing-server-actors/"],
  "isReply": false,
  "hasImages": false,
  "matchedBy": "search: apify"
}
```

### Automate it: schedules, webhooks, Google Sheets and Slack

- **Schedule:** in Apify Console, open **Schedules**, create a schedule (for example every hour or every morning) and add this Actor with Monitor mode on. Each run returns only new posts.
- **Webhook:** on the Actor's **Integrations** tab, add an HTTP webhook for the *Run succeeded* event. The payload includes the run's `defaultDatasetId`, so your system can fetch new posts from `https://api.apify.com/v2/datasets/<datasetId>/items`.
- **Google Sheets:** export each run with the Google Sheets Import & Export Actor (`lukaskrivka/google-sheets`), or pull the latest run into a sheet with `=IMPORTDATA("https://api.apify.com/v2/acts/heyiambk~bluesky-search-monitor/runs/last/dataset/items?format=csv&token=YOUR_API_TOKEN")`. Keep that sheet private, because it contains your token.
- **Slack:** connect Slack on the Integrations tab to get a message when a scheduled run finishes, with a link to the new posts.
- **API, Make, Zapier, n8n:** start runs and read results through the Apify API or the Apify apps for those tools.

### FAQ

#### Do I need a Bluesky account or app password?

No. The Actor reads public posts through Bluesky's public API. Nothing is posted and no login is used.

#### Which search operators work?

Bluesky's own search syntax: quoted phrases, `#hashtags`, `from:handle`, `mentions:handle`, `domain:example.com` and `lang:en`. You can also set **Language** and **Since** (an ISO date such as 2026-11-01, or a window like 24h or 7d).

#### How does Monitor mode avoid duplicates?

It remembers the posts earlier runs returned (per monitor name) and outputs only posts it hasn't seen. Use a different monitor name for each separate watch list.

#### Can I get older posts?

Results come from Bluesky's search index, so very old or deleted posts may be missing. Use **Sort: Top** for popular posts and **Latest** for recent ones.

#### Does it collect personal data?

Only what is in public posts plus the author's handle and display name. It does not collect follower lists, profile details or private data.

### Notes

- Only public posts are returned. The Actor doesn't collect follower lists, profile details beyond handle and display name, or private data.
- Use the data in line with Bluesky's terms and the privacy laws that apply to you.
- Search results come from Bluesky's own search index, so very old or deleted posts may be missing.

### Support

Open an issue on the Issues tab with your run ID.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords, phrases (in quotes) or #hashtags. Bluesky search syntax works, e.g. from:handle, domain:example.com, lang:en.

## `authorHandles` (type: `array`):

Also collect recent posts from these public accounts, e.g. bsky.app

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

Order of search results.

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

Only posts after this time: an ISO date (2026-11-01) or a relative window like 24h or 7d.

## `language` (type: `string`):

Optional 2-letter language code, e.g. en.

## `maxPostsPerTerm` (type: `integer`):

Stop after this many posts for each term or account.

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

Remember what earlier runs returned and output only posts not seen before. Use with a schedule.

## `monitorName` (type: `string`):

Keeps separate memory for different monitors when 'only new posts' is on.

## Actor input object example

```json
{
  "searchTerms": [
    "apify"
  ],
  "authorHandles": [],
  "sort": "latest",
  "since": "",
  "language": "",
  "maxPostsPerTerm": 100,
  "onlyNew": false,
  "monitorName": "default"
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "apify"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("heyiambk/bluesky-search-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 = { "searchTerms": ["apify"] }

# Run the Actor and wait for it to finish
run = client.actor("heyiambk/bluesky-search-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 '{
  "searchTerms": [
    "apify"
  ]
}' |
apify call heyiambk/bluesky-search-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,heyiambk/bluesky-search-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/8oMP3UZcK9cHH4xDB/builds/eA3lRxdCcTJOncDXr/openapi.json
