# Bluesky Scraper – Posts, Profiles & Followers API (`datarelay/bluesky-scraper`) Actor

Scrape Bluesky posts by keyword, hashtag or account, profiles with follower counts, followers and follows through Bluesky's official public API. Monitor new mentions and new followers on a schedule. No login, no browser. Pay per post or profile.

- **URL**: https://apify.com/datarelay/bluesky-scraper.md
- **Developed by:** [DataRelay](https://apify.com/datarelay) (community)
- **Categories:** Social media, Marketing, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 posts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 – Posts, Profiles & Followers API

Export **Bluesky posts** by keyword, hashtag or account, **profiles** with follower and post counts, **followers** and
**follows** – in one run, through Bluesky's **official public API**. Schedule it as a **monitor** that delivers only
**new mentions, new posts or new followers**; a run with nothing new costs nothing.

No login, no browser, no cookies: the Actor reads Bluesky's public AppView over plain HTTP, so a few thousand rows take
seconds on 256 MB.

### Why this Actor

- **Everything in one input.** Search posts, read accounts (profile, posts, followers, follows) and search profiles in
  the same run; every row says where it came from (`source`, `input`).
- **Accounts any way you write them.** `bsky.app`, `@alice.bsky.social`, `alice` (→ `alice.bsky.social`), a DID or a
  profile link `https://bsky.app/profile/bsky.app`.
- **Monitoring built in.** Set a `syncKey` and schedule the task: each run delivers and charges only rows it has not
  delivered before – new mentions of your brand, new posts of competitors, new followers. Feeds and follower lists stop
  reading at the first page without anything new.
- **Rich post rows.** Text, language, likes, reposts, replies, quotes, bookmarks, reply / quote / repost links, links,
  mentions, hashtags, images with alt text, video playlist and link cards – plus a direct `bsky.app` URL.
- **Honest about Bluesky's limit.** Without login, Bluesky serves **at most 100 posts per search** (the next page is
  refused). The run report says which searches hit that limit; for continuous coverage, run the search on a schedule
  with a `syncKey`. Account feeds, followers and profile searches have no such limit.
- **Pay only for data.** A post found by several searches is charged once per run. Accounts not found, failed jobs and
  rows already delivered under your sync key are free.

### Quick start

```json
{
    "searchTerms": ["openai"],
    "accounts": ["bsky.app"],
    "accountData": ["profile", "posts"]
}
```

| Goal                                | Input                                                                                                               |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| Newest posts about a keyword        | `{"searchTerms": ["openai"]}`                                                                                       |
| Posts with a hashtag in English     | `{"searchTerms": ["#photography"], "language": "en", "searchSort": "top"}`                                          |
| Posts since a date                  | `{"searchTerms": ["election"], "since": "2026-11-01"}`                                                              |
| Profile and 500 posts of an account | `{"accounts": ["nytimes.com"], "accountData": ["profile", "posts"], "maxItemsPerAccount": 500}`                     |
| Followers of an account             | `{"accounts": ["apify.com"], "accountData": ["followers"], "maxItemsPerAccount": 5000, "maxResults": 0}`            |
| Hourly brand-mention monitor        | `{"searchTerms": ["acme", "#acme"], "syncKey": "acme-mentions"}`                                                    |
| Daily new-follower monitor          | `{"accounts": ["acme.com"], "accountData": ["followers"], "maxItemsPerAccount": 5000, "syncKey": "acme-followers"}` |
| Find accounts by topic              | `{"profileSearchTerms": ["climate scientist"], "maxProfilesPerSearch": 200}`                                        |

### Input

| Field                  | Default                | Meaning                                                                                                |
| ---------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------ |
| `searchTerms`          | –                      | Post searches; Bluesky syntax works (`"phrase"`, `#tag`, `from:handle`, `mentions:handle`, `domain:`). |
| `searchSort`           | `latest`               | `latest` or `top`.                                                                                     |
| `language`             | –                      | Only posts in this language (searches).                                                                |
| `since` / `until`      | –                      | Date range of posts (searches and feeds).                                                              |
| `maxPostsPerSearch`    | `100`                  | 1–100 (Bluesky's limit without login).                                                                 |
| `accounts`             | –                      | Handles, @handles, names, DIDs or profile URLs.                                                        |
| `accountData`          | `["profile", "posts"]` | Any of `profile`, `posts`, `followers`, `follows`.                                                     |
| `feedFilter`           | `posts_with_replies`   | `posts_no_replies`, `posts_with_media`, `posts_and_author_threads`.                                    |
| `includeReposts`       | `true`                 | Also posts the account reposted (`isRepost: true`).                                                    |
| `maxItemsPerAccount`   | `100`                  | Posts / followers / follows per account and kind.                                                      |
| `profileSearchTerms`   | –                      | Find accounts by name, handle or bio.                                                                  |
| `maxProfilesPerSearch` | `100`                  | Profiles per profile search.                                                                           |
| `maxResults`           | `1000`                 | Rows in the whole run (0 = no limit). Your spending limit is respected too.                            |
| `syncKey`              | –                      | Memory of delivered rows in your account (`bluesky-sync-<key>`); turns on `onlyNew`.                   |
| `onlyNew`              | `false`                | Deliver only rows not delivered before under the sync key (`default` when no key is set).              |
| `syncReset`            | `false`                | Forget the memory of the sync key before the run.                                                      |
| `maxRunSecs`           | `0`                    | Soft time budget (0 = the platform timeout).                                                           |

### Output

A post (`type: "post"`):

```json
{
    "schemaVersion": 1,
    "status": "ok",
    "error": null,
    "scrapedAt": "2026-11-11T09:00:00.000Z",
    "type": "post",
    "source": "search",
    "input": "openai",
    "uri": "at://did:plc:…/app.bsky.feed.post/3mzxo5beiuk2c",
    "url": "https://bsky.app/profile/alice.bsky.social/post/3mzxo5beiuk2c",
    "text": "…",
    "createdAt": "2026-11-10T14:38:00.498Z",
    "langs": ["en"],
    "did": "did:plc:…",
    "handle": "alice.bsky.social",
    "displayName": "Alice",
    "replyCount": 2,
    "repostCount": 5,
    "likeCount": 31,
    "quoteCount": 1,
    "isReply": false,
    "isRepost": false,
    "links": ["https://example.com/article"],
    "hashtags": ["ai"],
    "images": [{ "url": "https://cdn.bsky.app/img/feed_fullsize/…", "alt": "Chart" }],
    "externalLink": null
}
```

A profile (`type: "profile"`, `source` = `profile`, `followers`, `follows` or `profileSearch`): `did`, `handle`, `url`,
`displayName`, `description`, `avatar`, `banner`, `followersCount`, `followsCount`, `postsCount` (counts only in
`profile` rows – Bluesky's lists do not carry them), `createdAt`, `verified`, `labels`.

Free rows explain what gave nothing: `status: not_found` for accounts that do not exist, `blocked` or `error` for failed
jobs. The run report (`OUTPUT`) lists every search and account with its rows, pages and why reading stopped
(`end`, `maxItems`, `since`, `caughtUp`, `sourceLimit` …).

### Pricing (pay per event)

| Event       | FREE    | BRONZE  | SILVER  | GOLD    |
| ----------- | ------- | ------- | ------- | ------- |
| `run-start` | $0.003  | $0.003  | $0.0025 | $0.002  |
| `post`      | $0.0008 | $0.0007 | $0.0006 | $0.0005 |
| `profile`   | $0.0008 | $0.0007 | $0.0006 | $0.0005 |

- 100 posts: **$0.083** on FREE; 1,000 followers: **$0.803** – **$0.80 per 1,000 rows**, $0.50 on GOLD.
- The start fee is charged only together with the first paid row: a monitoring run with nothing new is free.
- Free: accounts not found, failed jobs, duplicates within a run and rows already delivered under your `syncKey`.
  Apify's standard `apify-actor-start` event ($0.00005) applies to every run.

### FAQ

**Why at most 100 posts per search?** Bluesky's public API refuses the second page of a post search without login. This
Actor does not log in and does not work around it. Narrow the search with `since` / `until`, or schedule it with a
`syncKey` to collect every new post as it appears.

**Do I need a Bluesky account or app password?** No.

**Is it allowed?** The Actor uses Bluesky's official public API and only public data. Respect Bluesky's terms and
privacy law when you store or use personal data such as handles and bios.

**Can I use it from AI agents, n8n, Make or Zapier?** Yes: plain JSON input, the same fields on every row of a type, and
a run report in `OUTPUT`.

### HTTP and MCP access

This Actor also declares a single-tenant server interface, using the same input, source engine and result prices as batch runs. For large jobs, use batch.

- **Apify MCP:** configure `https://mcp.apify.com/?tools=datarelay/bluesky-scraper` with your Apify bearer token. This starts ordinary Actor runs.
- **DataRelay MCP:** copy this Actor's server URL from Apify Console and append `/mcp`; authenticate with the same bearer token.
- **HTTP:** POST JSON input to `<SERVER_URL>/v1/run`. `<SERVER_URL>/openapi.json` lists the domain shortcuts.

Each server run belongs to your account. Default idle timeout: 60 seconds. You pay platform usage, including startup/idle time, plus existing event fees. Discovery and health checks produce no data events, but can start a billed run. A warm run charges its start event at most once on its first paid result.

Responses include a preview (first 100 rows / 1 MB), `resultCount`, `previewLimited`, `interrupted`, and links to this request's complete Dataset slice and summary. Use batch for work exceeding the 120-second soft deadline. Check `outcome`, summaries and result statuses; source limitations remain unchanged. Use the stable Actor-level server URL for clients. The server becomes available when this build is deployed and its server settings are enabled.

# Actor input Schema

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

Keywords to search posts for, one per line. Bluesky's search syntax works: "exact phrase", #hashtag, from:handle, mentions:handle, domain:example.com, lang:en. Without login Bluesky serves at most 100 posts per search – use 'Only new rows' on a schedule to keep every new mention.

## `searchSort` (type: `string`):

Newest posts first (for monitoring) or Bluesky's top posts.

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

Only posts in this language (two-letter code, e.g. en, de, ja). Applies to searches.

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

Only posts created from this date (2026-11-01 or an ISO date-time). Searches filter it at Bluesky; account feeds stop reading at the first older post.

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

Only posts created before this date.

## `maxPostsPerSearch` (type: `integer`):

1–100 (Bluesky's limit without login).

## `accounts` (type: `array`):

Bluesky accounts, one per line: handle (bsky.app, alice.bsky.social), @handle, a bare name (alice → alice.bsky.social), a DID or a profile URL (https://bsky.app/profile/bsky.app).

## `accountData` (type: `array`):

profile (one row with follower / post counts), posts (the account's feed), followers, follows.

## `feedFilter` (type: `string`):

Which posts of an account to read.

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

Also deliver posts the account reposted (marked isRepost).

## `maxItemsPerAccount` (type: `integer`):

Per account and per kind (posts, followers, follows).

## `profileSearchTerms` (type: `array`):

Keywords to find accounts by name, handle or bio, one per line.

## `maxProfilesPerSearch` (type: `integer`):

Profiles per search term.

## `maxResults` (type: `integer`):

Stop the run after this many posts and profiles (0 = no limit). Your spending limit is respected too.

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

Deliver (and charge) only posts and profiles not delivered before under the sync key: new mentions, new posts of an account, new followers. Schedule the run.

## `syncKey` (type: `string`):

Name of the memory of delivered rows (letters, digits, dashes; at most 40). Setting it turns on 'Only new rows'. One key per monitoring task.

## `syncReset` (type: `boolean`):

Forget the rows delivered under the sync key before this run.

## `maxRunSecs` (type: `integer`):

Stop starting new requests after this many seconds and save what was found (0 = until the platform timeout).

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

Apify datacenter proxies first (Bluesky limits requests per IP); residential ones only after blocks.

## Actor input object example

```json
{
  "searchTerms": [
    "apify"
  ],
  "searchSort": "latest",
  "maxPostsPerSearch": 100,
  "accountData": [
    "profile",
    "posts"
  ],
  "feedFilter": "posts_with_replies",
  "includeReposts": true,
  "maxItemsPerAccount": 100,
  "maxProfilesPerSearch": 100,
  "maxResults": 1000,
  "onlyNew": false,
  "syncReset": false,
  "maxRunSecs": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `summary` (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("datarelay/bluesky-scraper").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("datarelay/bluesky-scraper").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 datarelay/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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

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/unTEn8JcOxc4AfIlq/builds/HyLeRywEHRUcuwAmf/openapi.json
