# Bluesky Posts Scraper: PR Requests & B2B Signals (`rar_888/bluesky-b2b-signals`) Actor

Find public journalist requests, buying signals and brand mentions on Bluesky. Search posts or follow public author feeds, filter by date and engagement, and export matching posts with links to the original source.

- **URL**: https://apify.com/rar_888/bluesky-b2b-signals.md
- **Developed by:** [Rardiel Andrés Ceballo Salas](https://apify.com/rar_888) (community)
- **Categories:** Marketing, Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 bluesky b2b signal 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 B2B Signals: Journalist Requests & Brand Mentions

Monitor public **journalist press requests** (`#journorequest`, `#prrequest`, `#haro`, `#sourcerequest`, `#mediarequest`), **B2B commercial buying signals**, **brand mentions**, and **public author feeds** on **Bluesky** via the open **AT Protocol** (`api.bsky.app` and `public.api.bsky.app`).

> **Scope, Privacy & Attribution Notice:** This Actor reads only public, unauthenticated AT Protocol XRPC `GET` endpoints (`app.bsky.feed.searchPosts` and `app.bsky.feed.getAuthorFeed`), explicitly permitted by `api.bsky.app/robots.txt` and `public.api.bsky.app/robots.txt` (*"Crawling the public parts of the API is allowed"*). It never performs `POST` actions or authenticated logins, immediately discards any post or author with the `!no-unauthenticated` visibility label, downloads zero avatars or media blobs, and includes mandatory `postUrl` and `sourceUrl` attribution on every dataset item.

***

### Why Use This Actor for PR & B2B Marketing?

Journalists, editors, tech founders, and B2B buyers actively publish press callouts and software recommendations on Bluesky. Because Bluesky is built on the open AT Protocol, rich-text facets store exact outbound brief URLs and structured tags directly in the post record:

- **Digital PR & HARO Alternative:** Track `#journorequest`, `#prrequest`, `#mediarequest`, and `#sourcerequest` with direct links (`externalUrl`) to journalist submission briefs (e.g., SourceRadar, Qwoted, Substack, or publication forms).
- **Brand & Competitor Monitoring:** Track product names, category keywords, or competitor mentions sorted by `"latest"` or `"top"` engagement, filtered by `minLikes` and ISO-639-1 `lang`.
- **Curated Journalist & Thought-Leader Feeds:** Pass Bluesky handles (`"bsky.app"`, `"nytimes.com"`) or DIDs (`"did:plc:..."`) in `authorHandles` to monitor original posts and reposts (`posts_no_replies`) alongside keyword searches.

***

### Key Features

1. **Dual-Endpoint XRPC Coverage (`searchPosts` + `getAuthorFeed`) with Automatic Host Fallback:**
   - Queries `https://api.bsky.app/xrpc/app.bsky.feed.searchPosts` for keyword/hashtag searches (falling back once to `https://public.api.bsky.app` if `HTTP 403` occurs) and `https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed` for author feeds (falling back once to `https://api.bsky.app` on `HTTP 403`).
   - Supports automatic `cursor` pagination when `maxItemsPerQuery > 25` (up to `100` items per query/handle).
2. **Structured Facets & External Link Extraction:**
   - Extracts normalized lowercase `hashtags` from `app.bsky.richtext.facet#tag` and `record.tags`.
   - Extracts the first shared external B2B article or press brief URL (`externalUrl`) from `app.bsky.richtext.facet#link` or `app.bsky.embed.external`.
3. **Automatic Signal Classification (`signalType`):**
   - `"journalist_request"` when hashtags or text match `journorequest`, `prrequest`, `haro`, `sourcerequest`, or `mediarequest`.
   - `"author_post"` when fetched via `authorHandles` (and not a press request).
   - `"keyword_mention"` for all other search matches.
4. **Incremental Filtering & Deduplication:**
   - Deduplicates globally across all `queries` and `authorHandles` by AT URI (`uri`) and sorts results by `createdAt` descending (UTC ISO-8601).
   - Supports `updatedSince` (`"YYYY-MM-DD"`, ISO-8601 UTC timestamp, or relative windows `"1d"`, `"7d"`, `"24h"`, `"30d"`), `minLikes`, `lang`, and optional `redactEmails` (`[redacted]`).
5. **Fair Use & Operational Resilience:**
   - Enforces a polite `1.0 s` per-host `Crawl-delay`, retries `HTTP 429` / `5xx` with backoff, never retries `HTTP 400` / `404`, treats unknown handles (`404` or `"Actor not found"`) as clean empty sources (`$0.00`), and opens a safety circuit breaker after 3 consecutive failed sources.
   - Supports Apify Proxy (`DATACENTER` and `RESIDENTIAL`) on port `8000` with automatic fallback to direct connection when running locally.

***

### Input Parameters

Provide at least one non-empty entry in `queries` or `authorHandles` (or both):

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `array<string>` | `["#journorequest", "#prrequest"]` | Hashtags, press request markers, brand names, or keywords searched via `app.bsky.feed.searchPosts`. |
| `authorHandles` | `array<string>` | `["bsky.app"]` | Public Bluesky handles (`"bsky.app"`, `"@bsky.app"`, profile URLs) or DIDs (`"did:plc:..."`) read via `app.bsky.feed.getAuthorFeed`. |
| `sort` | `string` | `"latest"` | Search sort mode for `queries`: `"latest"` or `"top"`. |
| `lang` | `string` | `""` | Optional ISO-639-1 language filter (e.g. `"en"`, `"es"`). Empty string returns all languages. |
| `minLikes` | `integer` | `0` | Minimum `likeCount` required (`>= 0`). |
| `updatedSince` | `string` | `""` | Optional UTC cutoff (`"YYYY-MM-DD"`, ISO-8601 UTC timestamp, or `"1d"`, `"7d"`, `"24h"`, `"30d"`). |
| `redactEmails` | `boolean` | `false` | When `true`, masks email patterns inside `text` as `"[redacted]"`. |
| `maxItems` | `integer` | `15` | Maximum total deduplicated posts emitted across the run (`1–1000`). |
| `maxItemsPerQuery` | `integer` | `10` | Maximum matching posts collected per individual query or handle (`1–100`; paginates via `cursor` above `25`). |
| `proxyGroup` | `string` | `"DATACENTER"` | Apify Proxy group: `"DATACENTER"` (default) or `"RESIDENTIAL"`. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy configuration (falls back to direct connection locally when no proxy credentials are set). |

#### Example Input

```json
{
  "queries": [
    "#journorequest",
    "#prrequest"
  ],
  "authorHandles": [
    "bsky.app"
  ],
  "sort": "latest",
  "lang": "",
  "minLikes": 0,
  "updatedSince": "7d",
  "redactEmails": false,
  "maxItems": 15,
  "maxItemsPerQuery": 10,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Output Schema

Each dataset item is a normalized Bluesky B2B signal record with direct post and profile attribution:

```json
{
  "uri": "at://did:plc:celop7booimdq4vscvg4nzrs/app.bsky.feed.post/3mzy34lqbiw2v",
  "cid": "bafyreiee5xtmfkevbxtsioxhgfe3e53jq3l3btizre4nqvgn3bt3nan2xi",
  "postUrl": "https://bsky.app/profile/thesourceradar.bsky.social/post/3mzy34lqbiw2v",
  "signalType": "journalist_request",
  "matchedQuery": "#journorequest",
  "authorHandle": "thesourceradar.bsky.social",
  "authorDisplayName": "",
  "text": "Wanted right now: Gardening experts for Country Living November features (Country Living UK). Deadline 11 Nov, 10:00.\n\n#JournoRequest — the brief and how to reply: https://www.thesourceradar.com/r/cmwarenrl001cg1dipyzdt2z6",
  "hashtags": [
    "journorequest"
  ],
  "externalUrl": "https://www.thesourceradar.com/r/cmwarenrl001cg1dipyzdt2z6",
  "likeCount": 0,
  "repostCount": 1,
  "replyCount": 0,
  "createdAt": "2026-11-10T18:30:16Z",
  "lang": "en",
  "sourceUrl": "https://bsky.app/profile/thesourceradar.bsky.social"
}
```

***

### Pricing (Pay-Per-Event)

You pay only for **successfully extracted public Bluesky posts** (`apify-default-dataset-item`). Actor startup (`apify-actor-start`), unknown handles (`HTTP 404` / `"Actor not found"`), and scheduled runs with `0` matching posts cost **`$0.00`**:

- **Price per post (`apify-default-dataset-item`):** **`$0.0015` USD per post** (`$1.50` per `1,000` posts), all-inclusive of platform compute (`256 MB`) and Apify Proxy traffic.

| Scenario | Posts (`maxItems`) | Total User Cost (`$0.0015/post`) |
|---|---:|---:|
| Single press alert check | 1 | **$0.0015** |
| Daily `#journorequest` digest | 15 | **$0.0225** |
| Weekly brand & PR monitoring | 100 | **$0.15** |
| Agency multi-client B2B feed | 1,000 | **$1.50** |

***

### Public AT Protocol XRPC Endpoints Used

1. **Post Search (`app.bsky.feed.searchPosts`):**
   - Primary: `GET https://api.bsky.app/xrpc/app.bsky.feed.searchPosts`
   - Fallback on `HTTP 403`: `GET https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts`
2. **Public Author Feed (`app.bsky.feed.getAuthorFeed`):**
   - Primary: `GET https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed` (`filter=posts_no_replies`)
   - Fallback on `HTTP 403`: `GET https://api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed`
3. **Attribution Links:**
   - `postUrl`: `https://bsky.app/profile/{handle}/post/{rkey}`
   - `sourceUrl`: `https://bsky.app/profile/{handle}`

***

### Frequently Asked Questions (FAQ)

#### 1. What does this Actor cost?

It uses Apify's **Pay-Per-Event (PPE)** model at **`$0.0015` USD per returned post** (`$1.50` per `1,000` posts) and **`$0.00` for Actor startup**. Runs returning `0` matching posts cost `$0.00`.

#### 2. Do I need a Bluesky account or API token?

No. The Actor reads only unauthenticated public AT Protocol `GET` endpoints and requires zero credentials.

#### 3. What happens if an author handle in `authorHandles` does not exist?

If Bluesky returns `HTTP 404` or `"Actor not found"` / `"Profile not found"` for a handle, the Actor records it in the `empty_sources` key-value entry without error, retry, or charge (`$0.00`), and continues processing the remaining queries and handles.

#### 4. How does `!no-unauthenticated` filtering work?

In accordance with AT Protocol visibility conventions, if `author.labels` or `post.labels` includes `!no-unauthenticated`, the post is discarded immediately and never written to the dataset.

#### 5. Should I enable `redactEmails`?

Leave `redactEmails: false` (default) when monitoring public press requests where journalists intentionally publish submission addresses, or set `redactEmails: true` to mask email patterns in `text` as `[redacted]` before forwarding data to third-party tools or LLMs.

#### 6. How do I run scheduled incremental monitoring without duplicates?

Run the Actor on an Apify Schedule (e.g. daily) with `updatedSince: "24h"` (or `"1d"`). Every output item also carries a globally unique AT Protocol `uri` (`at://did:plc:.../app.bsky.feed.post/{rkey}`) for idempotent upserts in your database or CRM.

# Actor input Schema

## `queries` (type: `array`):

Hashtags, press request tags (#journorequest, #prrequest), keywords, or brand mentions searched via app.bsky.feed.searchPosts. Provide at least one non-empty entry in queries or authorHandles.

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

Optional public Bluesky handles (e.g. 'bsky.app') or AT Protocol DIDs ('did:plc:...') read via app.bsky.feed.getAuthorFeed. Provide at least one non-empty entry in queries or authorHandles.

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

Sort order applied to searchPosts queries: 'latest' (chronological, default) or 'top' (most engaged).

## `lang` (type: `string`):

Optional ISO-639-1 language code filter such as 'en' or 'es'. Leave empty ('') for all languages.

## `minLikes` (type: `integer`):

Optional minimum likeCount threshold to filter higher-engagement posts (0 disables filtering).

## `updatedSince` (type: `string`):

Optional UTC cutoff for scheduled B2B monitoring. Only returns posts created at or after this point. Accepts 'YYYY-MM-DD', an ISO-8601 UTC timestamp, or a relative window such as '1d', '7d', '24h', or '30d'.

## `redactEmails` (type: `boolean`):

If true, masks email address patterns appearing inside post text as '\[redacted]'. Defaults to false so PR teams can read public press desk submission addresses when desired.

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

Maximum total number of deduplicated Bluesky posts to emit across the run (1 to 1000).

## `maxItemsPerQuery` (type: `integer`):

Maximum number of matching posts to collect per individual query or author handle (1 to 100). Automatically paginates via cursor when > 25.

## `proxyGroup` (type: `string`):

Apify Proxy group to route requests through when proxy is enabled: 'DATACENTER' (default) or 'RESIDENTIAL'.

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

Apify Proxy settings for reliable rotation across requests.

## Actor input object example

```json
{
  "queries": [
    "#journorequest",
    "#prrequest"
  ],
  "authorHandles": [
    "bsky.app"
  ],
  "sort": "latest",
  "lang": "",
  "minLikes": 0,
  "updatedSince": "",
  "redactEmails": false,
  "maxItems": 15,
  "maxItemsPerQuery": 10,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "queries": [
        "#journorequest",
        "#prrequest"
    ],
    "authorHandles": [
        "bsky.app"
    ],
    "sort": "latest",
    "lang": "",
    "minLikes": 0,
    "updatedSince": "",
    "redactEmails": false,
    "maxItems": 15,
    "maxItemsPerQuery": 10,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rar_888/bluesky-b2b-signals").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 = {
    "queries": [
        "#journorequest",
        "#prrequest",
    ],
    "authorHandles": ["bsky.app"],
    "sort": "latest",
    "lang": "",
    "minLikes": 0,
    "updatedSince": "",
    "redactEmails": False,
    "maxItems": 15,
    "maxItemsPerQuery": 10,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rar_888/bluesky-b2b-signals").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 '{
  "queries": [
    "#journorequest",
    "#prrequest"
  ],
  "authorHandles": [
    "bsky.app"
  ],
  "sort": "latest",
  "lang": "",
  "minLikes": 0,
  "updatedSince": "",
  "redactEmails": false,
  "maxItems": 15,
  "maxItemsPerQuery": 10,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rar_888/bluesky-b2b-signals --silent --output-dataset

```

## MCP server setup

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

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/4jyujWzEKbAEfcEwB/builds/mfobPezl3EZ2adkzw/openapi.json
