# Bluesky Search API: Posts & Author Feeds (`ailu_studio/bluesky-posts-search`) Actor

Search public Bluesky posts or export author feeds with text and engagement fields. Filter language and recency for social listening.

- **URL**: https://apify.com/ailu_studio/bluesky-posts-search.md
- **Developed by:** [Ailu Studio](https://apify.com/ailu_studio) (community)
- **Categories:** Social media, Marketing, AI
- **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 rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Search API: Posts & Author Feeds

Search public Bluesky posts or export author feeds with text and engagement fields. Filter language and recency for social listening.

### Try a small sample

Paste this into the Input JSON editor, run the Actor, then inspect its dataset. Export JSON or CSV from the dataset, or use the API tab for authenticated integration examples.

```json
{
  "mode": "search",
  "queries": [
    "apify"
  ],
  "maxItemsPerQuery": 10,
  "maxItems": 10
}
```

### Workflow example

Use search for topic discovery and authorFeed for known accounts. Public search coverage and engagement counts can change between runs.

```json
{
  "mode": "authorFeed",
  "handles": [
    "bsky.app"
  ],
  "maxItemsPerQuery": 20,
  "maxItems": 20
}
```

Examples show supported inputs, not guaranteed result counts. Public sources and filters can produce fewer rows or zero rows. Check the run log and any summary/error records before treating the output as complete.

For recurring use, save the input as an Apify Task and schedule sequential runs. Export results to your own spreadsheet, database, n8n or Make workflow. Scheduling does not add stateful tracking to Actors that only return snapshots. Keep API credentials in environment variables.

### Related workflow

[Telegram Public Channel Posts Scraper](https://apify.com/ailu_studio/telegram-channel-posts) can complement this Actor. It runs separately and has its own price and input requirements.

### Detailed reference

### Bluesky Posts Search API: Posts, Authors, Engagement, Hashtags

Searches Bluesky posts by keyword or reads the latest posts of specific accounts, and returns flat JSON rows from the public AT Protocol AppView (`api.bsky.app`): post text, author handle, DID, display name and follower count, created and indexed times, like, repost, reply, quote and bookmark counts, languages, links, hashtags, mentions, embed type, image and video URLs, quoted post and reply parent. Several queries or handles run in one go and duplicates are removed. No Bluesky account, app password, API key or browser is needed. Unlike the most used Bluesky Actor there is no start fee. In addition, every row carries the author's follower count, and keyword search keeps paging past the first 100 results that Bluesky serves without login.

### Use cases

- Monitor brand, product or competitor mentions on Bluesky every hour or day (`sort: "latest"`, `sinceDays: 1`).
- Collect posts about a topic or hashtag for sentiment analysis, research datasets or LLM pipelines.
- Track what specific accounts publish and how much engagement each post gets (`mode: "authorFeed"`).
- Find the most engaging posts on a subject (`sort: "top"`) and the accounts with the largest followings.

### Input

| Field | Default | Meaning |
|---|---|---|
| `mode` | `search` | `search` = keyword search; `authorFeed` = latest posts and replies of the given handles (reposts skipped). |
| `queries` | `["apify"]` | Search mode: keywords or Bluesky search syntax (`from:bsky.app`, `#tag`, `"exact phrase"`). |
| `handles` | `["bsky.app"]` | Author feed mode: handles, DIDs or bsky.app profile links. |
| `sort` | `latest` | Search mode: `latest` (newest first) or `top` (engagement ranking, one page of up to 100 posts). |
| `sinceDays` | `0` | Only posts from the last N days. 0 = no limit. |
| `language` | `""` | Optional language code such as `en`; keeps posts tagged with that language. |
| `maxItemsPerQuery` | `100` | Maximum posts per query or handle. |
| `maxItems` | `200` | Maximum rows for the whole run. |

Running with the defaults returns the 100 most recent posts that mention "apify" in about 2 seconds.

### Output

| Field | Type | Meaning |
|---|---|---|
| `id`, `uri`, `cid` | string | AT URI of the post (id = uri) and record content id |
| `url` | string | `https://bsky.app/profile/<handle>/post/<rkey>` |
| `authorHandle`, `authorDid`, `authorDisplayName` | string | Author identity |
| `authorFollowersCount` | integer or null | Author followers at fetch time |
| `text` | string | Post text |
| `createdAt`, `indexedAt` | string | ISO 8601 UTC |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `bookmarkCount` | integer | Engagement at fetch time |
| `lang` | string\[] | Languages declared by the author |
| `links`, `hashtags`, `mentions` | string\[] | From rich-text facets (and the link card URL) |
| `embedType` | string or null | `images`, `gallery`, `video`, `external`, `record` (quote), `recordWithMedia` |
| `imageUrls`, `videoUrl` | string\[], string | Media URLs on Bluesky's CDN |
| `quotedUri`, `replyToUri`, `replyRootUri` | string or null | Quoted post, reply parent and thread root |
| `query` | string | Query or handle that returned the post |
| `fetchedAt` | string | ISO 8601 UTC fetch time |

Sample row (trimmed):

```json
{
  "id": "at://did:plc:ylm4gkh3z2n7awgjvlslxlxq/app.bsky.feed.post/3mzhohbqwtl25",
  "url": "https://bsky.app/profile/czechnews.bsky.social/post/3mzhohbqwtl25",
  "authorHandle": "czechnews.bsky.social",
  "authorDid": "did:plc:ylm4gkh3z2n7awgjvlslxlxq",
  "authorFollowersCount": 89,
  "text": "Zatímco se kvůli AI propouští, česká firma díky ní raketově roste. ...",
  "createdAt": "2026-11-04T06:00:58.649Z",
  "indexedAt": "2026-11-04T06:01:02.674Z",
  "likeCount": 1,
  "repostCount": 0,
  "replyCount": 0,
  "quoteCount": 0,
  "lang": ["cs-CZ"],
  "links": ["https://www.lupa.cz/clanky/zatimco-se-kvuli-ai-propousti-ceska-firma-diky-ni-raketove-roste-trzby-miri-na-miliardy-a-cili-na-stovky-milionu-uzivatelu/?utm_source=rss&utm_medium=text&utm_campaign=rss"],
  "hashtags": [],
  "embedType": "external",
  "query": "apify",
  "fetchedAt": "2026-11-04T11:30:00.000Z"
}
```

### How it works and limits

- Endpoints: `app.bsky.feed.searchPosts`, `app.bsky.feed.getAuthorFeed` and `app.bsky.actor.getProfiles` (follower counts, 25 authors per request) on the public AppView. Up to 100 posts per request, at most about 3 requests per second.
- Bluesky refuses unauthenticated `cursor` paging for search (HTTP 403). The Actor pages `latest` search results by moving the `until` time bound back to the oldest post already seen, so long result lists still work. `top` search returns one page (up to 100 posts) per query.
- Author feeds skip reposts of other people's posts and include the account's own posts and replies. Pinned posts are not added.
- Counters are a snapshot at fetch time. Deleted posts and posts hidden by moderation are not returned. The AppView search index may differ from what the Bluesky app shows.
- A handle that does not exist is reported in the run summary (`OUTPUT` record) and the run continues.

### Pricing

Pay per result: **$1.00 per 1,000 rows** (`result` event). Platform usage is billed separately by Apify. Removed/free rows are not charged.

### Legal

Not affiliated with Bluesky. Uses the public Bluesky AppView API (AT Protocol) only. Data licence/terms: https://bsky.social/about/support/tos

Posts belong to their authors. Respect Bluesky's terms, the authors' rights and privacy law when storing or republishing data.

### FAQ

**Do I need a Bluesky account or app password?**
No. All endpoints used are public and unauthenticated.

**How many posts can one search return?**
With `sort: "latest"` the Actor keeps moving back in time until `maxItemsPerQuery` is reached or no older posts match. With `sort: "top"` Bluesky gives one page of up to 100 posts.

**Can I search for an exact phrase, a hashtag or one author's posts?**
Yes, Bluesky search syntax works in `queries`: `"exact phrase"`, `#hashtag`, `from:handle`, `lang:en`.

**Why is a post returned once although it matches two queries?**
Rows are de-duplicated by post URI across the whole run; `query` shows the first query that found it.

**Can I schedule it to watch new mentions?**
Yes. Run it on an Apify schedule with `sinceDays: 1` (or a few hours' worth of `maxItemsPerQuery`) and process the new rows.

# Actor input Schema

## `mode` (type: `string`):

"search" (default) runs each entry of queries through Bluesky's post search. "authorFeed" reads the latest posts and replies of each account in handles (reposts are skipped).

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

Used in search mode. Keywords or phrases, one per entry; Bluesky search syntax works, e.g. "from:bsky.app", "#apify", ""web scraping"". Posts matching several queries are returned once.

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

Used in authorFeed mode. Bluesky handles, DIDs or profile links, e.g. "bsky.app", "@jay.bsky.team" or "https://bsky.app/profile/bsky.app".

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

Order of search results: "latest" (default, newest first) or "top" (Bluesky's engagement ranking). Author feeds are always newest first.

## `sinceDays` (type: `integer`):

Return only posts created in the last N days. In search mode this is passed to Bluesky as the since filter; in authorFeed mode paging stops at the cutoff. 0 (default) means no date limit.

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

Optional two-letter language code such as "en", "ja" or "de". Keeps only posts tagged with this language by their author. Leave empty for all languages.

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

Maximum posts returned for each query (search mode) or each handle (authorFeed mode). Each request returns up to 100 posts. Default 100.

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

Maximum number of post rows for the whole run, across all queries or handles. Default 200.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "apify"
  ],
  "handles": [
    "bsky.app"
  ],
  "sort": "latest",
  "sinceDays": 0,
  "language": "",
  "maxItemsPerQuery": 100,
  "maxItems": 200
}
```

# Actor output Schema

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

All rows in the default dataset.

# 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": [
        "apify"
    ],
    "handles": [
        "bsky.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ailu_studio/bluesky-posts-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": ["apify"],
    "handles": ["bsky.app"],
}

# Run the Actor and wait for it to finish
run = client.actor("ailu_studio/bluesky-posts-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": [
    "apify"
  ],
  "handles": [
    "bsky.app"
  ]
}' |
apify call ailu_studio/bluesky-posts-search --silent --output-dataset

```

## MCP server setup

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