# Bluesky Posts Scraper - Search by Keyword or Hashtag (`aolmo/bluesky-search`) Actor

Search Bluesky posts by keyword, phrase or hashtag without an account: text, date, likes, reposts, replies, quotes, author, images, links and language for every post, sorted by latest or top, with date, language, author and domain filters. New-post alerts on scheduled runs. $0.001 per post.

- **URL**: https://apify.com/aolmo/bluesky-search.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Social media
- **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 post founds

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

Search Bluesky posts by keyword, exact phrase or hashtag without an account, app password or API key. Paste your queries and get one row per post with the text, date, likes, reposts, replies, quotes, author, language, images, video thumbnail, link card and quoted post. Sort by latest or top, filter by date range, language, author or linked domain, and schedule the Actor to receive only the posts that are new since the previous run: brand and keyword monitoring, social listening, trend research, lead discovery and feeds for AI agents.

The Actor uses the open AT Protocol search that powers the Bluesky web app, so results match what you see on bsky.app. You pay $0.001 per post returned; searches without results are free.

### What you get

One row per post:

- **Search**: `query`, `sort`, `searchUrl`, `hitsTotal` (total matches reported by Bluesky), `postsFound`, `position`.
- **Post**: `text`, `createdAt`, `url`, `uri`, `cid`, `langs`, `isReply`.
- **Engagement**: `likes`, `reposts`, `replies`, `quotes`, `bookmarks`.
- **Author**: `authorHandle`, `authorDisplayName`.
- **Media and links**: `images`, `videoThumbnail`, `externalUrl`, `externalTitle`, `quotedUri`.
- **Monitoring**: `isNew`, true when the post was not in the previous run (null on the first run).

A search without results returns a single row with `postsFound: 0` and is not charged.

### How to use it

1. Open the **Input** tab.
2. Add **Search queries**, one per line: `web scraping`, `"exact phrase"`, `#buildinpublic`. Up to 200 per run.
3. Choose **Sort by** (latest or top) and **Max posts per query** (up to 1,000).
4. Optional filters: **Posted since / until**, **Language** (`en`, `es`, `ja`...), **Author** (`nasa.bsky.social`) and **Links to domain** (`nytimes.com`).
5. Click **Start** and export the rows as JSON, CSV or Excel, or call the Actor from the API.
6. Schedule it (for example every 15 minutes) to build a live mention feed.

### Input

```json
{
  "queries": ["web scraping", "#buildinpublic"],
  "sort": "latest",
  "maxPosts": 50,
  "language": "en"
}
```

| Field | Description |
|-------|-------------|
| `queries` | Keywords, `"exact phrases"` or `#hashtags`. Up to 200 per run. |
| `sort` | `latest` (default) or `top`. |
| `maxPosts` | Maximum posts per query (1-1,000, default 50). Also caps the cost per query. |
| `since`, `until` | Optional date range (`YYYY-MM-DD`). |
| `language` | Optional two-letter language code. |
| `author` | Optional handle: only posts by that account. |
| `domain` | Optional domain: only posts that link to it. |

### Output example

```json
{
  "query": "web scraping",
  "sort": "latest",
  "hitsTotal": 9915,
  "postsFound": 50,
  "position": 1,
  "text": "Scraping JavaScript-rendered web content using R #rstats",
  "createdAt": "2026-11-19T20:45:22.000Z",
  "url": "https://bsky.app/profile/example.bsky.social/post/3n2hgxfqmqm2q",
  "authorHandle": "example.bsky.social",
  "authorDisplayName": "Example Author",
  "likes": 12,
  "reposts": 3,
  "replies": 1,
  "quotes": 0,
  "langs": ["en"],
  "images": [],
  "externalUrl": "https://example.com/post",
  "externalTitle": "Scraping JavaScript-rendered content",
  "isNew": null
}
```

### Pricing

Pay per event, no subscription:

- **Post found**: $0.001 per post returned.
- **New post**: $0.001 per post that was not in the previous run of the same search (scheduled runs only).

1,000 posts cost $1. Searches without results are free.

### Use cases

- **Brand monitoring**: search your brand, product or domain (`domain` filter) and get every new mention.
- **Trend and topic research**: `top` posts of a hashtag with their engagement.
- **Lead discovery**: people asking for a tool or service, with their handle and post link.
- **AI agents and RAG**: fresh, structured posts about any topic in one call.

### Tips

- Use the **Bluesky Profile Scraper** to get the profile and timeline of the authors you find here.
- Combine `since` with a schedule to keep each run small: only posts from the last day or hour.
- Exact phrases in double quotes cut noise on common words.

### Limitations

- Bluesky decides which posts match; very common words on `top` may return fewer posts than `hitsTotal` suggests.
- Posts from accounts that hide their content from logged-out users may be missing.
- Media URLs point to Bluesky's CDN.

# Actor input Schema

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

One per line: keywords, "exact phrases" or #hashtags, as you would type them in the Bluesky search box. Up to 200 per run.

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

Latest posts first, or the top posts for the query.

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

Caps the rows (and the cost) of each query.

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

Optional. Only posts from this date on (YYYY-MM-DD).

## `until` (type: `string`):

Optional. Only posts up to this date (YYYY-MM-DD).

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

Optional two-letter code (en, es, de, ja...). Only posts written in that language.

## `author` (type: `string`):

Optional handle (nasa.bsky.social). Only posts written by that account.

## `domain` (type: `string`):

Optional domain (nytimes.com). Only posts that link to it.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "queries": [
    "web scraping",
    "#buildinpublic"
  ],
  "sort": "latest",
  "maxPosts": 50,
  "product": "bluesky-search"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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": [
        "web scraping",
        "#buildinpublic"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/bluesky-search").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": [
        "web scraping",
        "#buildinpublic",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("aolmo/bluesky-search").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": [
    "web scraping",
    "#buildinpublic"
  ]
}' |
apify call aolmo/bluesky-search --silent --output-dataset

```

## MCP server setup

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

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/SeKKIiv15KDcTg0ag/builds/HFzV0BZ7JbkZ5adAL/openapi.json
