# Bluesky Scraper: Posts, Profiles, Threads, Trends (`atesen-software/bluesky-data-scraper`) Actor

Search Bluesky posts by keyword, hashtag, author, language, date or link. Get an account's posts, profile stats, full reply threads and trending topics with likes, reposts and replies. Official public API, no login, no proxy.

- **URL**: https://apify.com/atesen-software/bluesky-data-scraper.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 1,000 result rows

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: Posts, Profiles, Threads, Trends

Track what people say on Bluesky about a brand, topic or hashtag: enter keywords, accounts or post links and get public posts, profiles, reply threads and trending topics as clean rows with likes, reposts, replies and quotes.

### What does Bluesky Scraper do?

Bluesky Scraper collects **public Bluesky data through the official AT Protocol AppView**, the same public API that bsky.app uses for logged-out visitors. One Actor, five modes:

| Mode | What you get |
| --- | --- |
| Search posts | Posts matching keywords, phrases or hashtags, with filters for author, mentions, language, date range, linked domain or URL, and sort by latest or top |
| Posts of accounts | The recent posts of one or many accounts (posts only, posts and replies, media posts), optionally with reposts and a "since" date |
| Profiles | Profile stats for handles you list, plus profile search by name or bio words: followers, follows, post count, bio, join date, verification |
| Post thread | A post and its replies down to the depth you choose, optionally with the parent posts above it |
| Trending topics | The topics Bluesky currently shows as trending, with post counts, category and top accounts |

Every post row has the text, the link, the author, **likes, reposts, replies and quotes**, language, hashtags, links, images and video, link preview card and any quoted post.

No Bluesky account, no password, no browser and no proxy are needed.

### Why use it?

- **Social listening and brand monitoring.** Search your brand, product or competitor names and schedule the run every hour.
- **Hashtag and topic research.** Pull the top posts for a hashtag, with engagement counts to rank them.
- **Influencer and audience research.** Find accounts by bio words and compare followers, activity and verification.
- **Conversation analysis.** Export a thread with every reply and its depth for sentiment or support analysis.
- **Trend alerts and newsletters.** Read the trending topics list on a schedule and send it to Slack or e-mail.
- **AI and data pipelines.** Clean, flat JSON that loads straight into a database, spreadsheet or LLM workflow.

### How to scrape Bluesky

1. Open the **Input** tab and choose **What to collect**.
2. Fill the fields for that mode: search queries, account handles, post links, or nothing for trending topics.
3. Set **Max results** and press **Start**.
4. Download the dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.

#### Example input: search

```json
{
  "mode": "search",
  "queries": ["web scraping", "#python"],
  "language": "en",
  "sort": "top",
  "since": "2026-10-01",
  "maxItems": 100
}
```

#### Example input: posts of accounts

```json
{
  "mode": "profilePosts",
  "handles": ["bsky.app", "https://bsky.app/profile/jay.bsky.team"],
  "since": "2026-10-01",
  "maxItemsPerQuery": 50
}
```

### Input

| Field | Used in mode | What it does |
| --- | --- | --- |
| `mode` | all | `search`, `profilePosts`, `profiles`, `thread` or `trending`. |
| `queries` | search | Keywords, quoted phrases or hashtags, one per line. Each is searched separately. |
| `sort` | search | `latest` or `top`. |
| `since`, `until` | search (`since` also accounts) | ISO date or date-time bounds. |
| `language` | search | Two-letter code such as `en`, `de`, `tr`. |
| `author`, `mentions` | search | Only posts by, or mentioning, a handle. |
| `domain`, `linkUrl` | search | Only posts linking to a domain or an exact URL. |
| `tags` | search | Hashtags every post must carry (without `#`). |
| `handles` | posts of accounts, profiles | Handles or bsky.app profile links. |
| `profileQueries` | profiles | Find accounts by name or bio words. |
| `feedFilter`, `includeReposts` | posts of accounts | Which posts to read, and whether to include reposts. |
| `postUrls`, `threadDepth`, `includeParents` | thread | Post links, how deep to read replies, and whether to add parent posts. |
| `maxItems` | all | Maximum rows for the run (and for billing). |
| `maxItemsPerQuery` | all | Maximum rows per query, account or thread. |

### Output

Rows share one dataset and are labelled with `type` (`post`, `profile` or `trend`). The Console has a separate view for each type. A real post row from a test run:

```json
{
  "type": "post",
  "source": "profile:bsky.app",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3myi3k45jh22z",
  "url": "https://bsky.app/profile/bsky.app/post/3myi3k45jh22z",
  "text": "Also new in today's v1.136 update: iPad support! ...",
  "createdAt": "2026-10-22T16:30:02.437Z",
  "language": "en",
  "authorHandle": "bsky.app",
  "authorDisplayName": "Bluesky",
  "likeCount": 664,
  "repostCount": 136,
  "replyCount": 48,
  "quoteCount": 57,
  "isReply": false,
  "hashtags": [],
  "links": [],
  "media": [{ "type": "video", "url": "https://video.bsky.app/watch/.../playlist.m3u8", "thumbnail": "https://video.bsky.app/watch/.../thumbnail.jpg", "alt": "Welcome screen of the Bluesky app displayed on an iPad..." }],
  "externalCard": null,
  "quotedPost": null,
  "scrapedAt": "2026-10-22T18:35:58.749Z"
}
```

A profile row:

```json
{
  "type": "profile",
  "handle": "bsky.app",
  "url": "https://bsky.app/profile/bsky.app",
  "displayName": "Bluesky",
  "followersCount": 35344347,
  "followsCount": 23,
  "postsCount": 892,
  "createdAt": "2023-04-12T04:53:57.057Z",
  "verification": "none"
}
```

A trend row (real output, 15 November 2026; top accounts shortened to one):

```json
{
  "type": "trend",
  "rank": 7,
  "name": "Autumn foliage photos",
  "description": "People share pictures of colorful leaves, late-blooming flowers, and pets outdoors this November.",
  "url": "https://bsky.app/profile/did:plc:qrz3lhbyuxbeilrc6nekdqme/feed/13dcaa82e2bd",
  "startedAt": "2026-11-07T13:44:21.519308+00:00",
  "postCount": 1880,
  "status": "stale",
  "category": "culture",
  "topAccounts": [
    {
      "handle": "rmpangan.bsky.social",
      "displayName": "R. Pangan"
    }
  ],
  "scrapedAt": "2026-11-15T16:14:25.203Z"
}
```

The `SUMMARY` record in the key-value store lists, for each query, account or thread, how many rows it returned and any error, plus handles that were not found.

### How much does it cost?

The Actor uses **pay per event**: **$1.20 per 1,000 rows** ($0.0012 for every post, profile or trend row returned), with no start fee. Requests that fail or return nothing cost nothing. Use **Max results** to cap spending. A run of 1,000 posts usually takes well under a minute with 256 MB of memory.

**Maximum items is a hard cap on charged rows.** Set `maxItems` in the run options (or `?maxItems=` in the API) and the run stops after that many rows: it never writes or charges more rows than that number. Leave it empty for no cap. Free status rows are not counted.

### Using the data

- **API and schedules:** start runs and read datasets through the [Apify API](https://docs.apify.com/api/v2), and schedule hourly or daily runs.
- **Only new posts:** run a search with `since` set to your last run and de-duplicate by `uri`.
- **Integrations:** send results to Google Sheets, Slack, Airtable, Zapier, Make, n8n or any webhook from the Integrations tab.

### Data protection

Only public data is read, through Bluesky's public API. The Actor does not log in, does not read private data, and does not collect contact details: e-mail addresses and phone numbers that appear in post text, bios or link cards are replaced with `[email removed]` and `[phone removed]`. Posts and profiles can still be personal data under privacy laws such as GDPR, so use them for a lawful purpose, respect deletion requests, and follow Bluesky's terms of service.

### Use via API

One request runs the Actor, waits for it and returns the dataset items as JSON. Send your token in the `Authorization` header, not in the URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~bluesky-data-scraper/run-sync-get-dataset-items?timeout=120" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search","queries":["web scraping"],"sort":"latest","maxItems":25}'
```

The synchronous endpoint waits up to 300 seconds. For longer jobs start a run with `POST https://api.apify.com/v2/acts/atesen-software~bluesky-data-scraper/runs` and read the dataset when it finishes.

**JavaScript** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/bluesky-data-scraper').call({ mode: "search", queries: ["web scraping"], sort: "latest", maxItems: 25 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Load only this Actor with:

```text
https://mcp.apify.com?tools=atesen-software/bluesky-data-scraper
```

Client config (sign in with Apify OAuth when the browser opens, or add an `Authorization: Bearer <APIFY_TOKEN>` header instead):

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=atesen-software/bluesky-data-scraper" }
  }
}
```

Then ask in plain words, for example: "Get the 25 latest Bluesky posts about web scraping with author and like count." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

### FAQ

**Do I need a Bluesky account?** No. Everything comes from the public AppView.

**How far back can I search?** As far back as Bluesky's search index returns results for your query. Use `since` and `until` to cut date windows, and `maxItemsPerQuery` to bound each query.

**Why does a search return fewer rows than I asked for?** The query matched fewer posts, or Bluesky stopped giving more pages for that query. Narrow the date range and run several windows to go deeper.

**Can I get followers or following lists?** Not in this version. Follower and following counts are in the profile rows.

**A handle was not found.** It is listed in `notFound` in the summary. The other handles still return.

**What if Bluesky changes its API?** The Actor reports the failing requests in the summary. If every request failed, the run still ends without charges and the status message says why.

### Data source and permission

The data comes from the public Bluesky AppView API of the open AT Protocol, which Bluesky documents for developers and serves to logged-out visitors. The Actor does not log in, reads only public posts and profiles, keeps a modest request rate, and on a rate-limit answer waits (honouring Retry-After) and retries a few times before it gives up on that request. Respect Bluesky's terms and the rights of the authors when you reuse the data. The Actor is not affiliated with Bluesky.

Built and maintained by Atesen Software.

### Related actors

- [Telegram Scraper: Channel Posts, Views & Reactions, No Login](https://apify.com/atesen-software/telegram-channel-scraper)
- [Hacker News Scraper: Search Stories & Comments API](https://apify.com/atesen-software/hacker-news-search-comments)
- [YouTube Comments Scraper: Comments & Replies, No API Key](https://apify.com/atesen-software/youtube-comments-scraper)

# Actor input Schema

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

Search posts, read an account's posts, get profile stats, read the replies of a post, or list the current trending topics. Fill the fields that belong to the chosen mode.

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

Keywords, phrases or hashtags, one per line, for example web scraping, "exact phrase", #python. Each query is searched separately.

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

Newest posts first, or the most engaged posts first.

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

Only posts from this time on. ISO date or date-time, for example 2026-10-01 or 2026-10-01T08:00:00Z. Works in search and account-posts modes.

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

Only posts before this time. ISO date or date-time.

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

Two-letter language code of the post, for example en, de, tr, ja.

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

Only posts written by this handle, for example bsky.app.

## `mentions` (type: `string`):

Only posts that mention this handle.

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

Only posts that link to this domain, for example github.com.

## `linkUrl` (type: `string`):

Only posts that link to this exact URL.

## `tags` (type: `array`):

Hashtags that every post must carry, without the # sign. Several tags must all match.

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

Bluesky handles or profile URLs, for example bsky.app, jay.bsky.team or https://bsky.app/profile/bsky.app.

## `profileQueries` (type: `array`):

Search accounts by name, handle or bio words, for example data engineer. Returns full profile stats.

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

Which of the account's posts to read.

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

Also return posts the account reposted. They are marked isRepost and repostedBy.

## `postUrls` (type: `array`):

Bluesky post links, for example https://bsky.app/profile/bsky.app/post/3k4duaz5vfs2b, or at:// URIs. The post and its replies are returned.

## `threadDepth` (type: `integer`):

How many levels of replies to read below the post.

## `includeParents` (type: `boolean`):

Also return the posts the given post replies to, up to the root of the conversation.

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

Maximum rows for the whole run. You are charged per returned row, so this also caps your cost. Hard cap: the run never writes or charges more rows than this.

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

Upper bound for each query, handle, search term or post URL. The total is still limited by Max results.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "web scraping"
  ],
  "sort": "latest",
  "tags": [],
  "handles": [],
  "profileQueries": [],
  "feedFilter": "posts_no_replies",
  "includeReposts": false,
  "postUrls": [],
  "threadDepth": 6,
  "includeParents": false,
  "maxItems": 25,
  "maxItemsPerQuery": 100
}
```

# Actor output Schema

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

Posts, profiles or trends, depending on the chosen mode

## `summary` (type: `string`):

Per-request counts, errors and the reason the run stopped

# 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"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/bluesky-data-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 = {
    "queries": ["web scraping"],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/bluesky-data-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 '{
  "queries": [
    "web scraping"
  ],
  "maxItems": 25
}' |
apify call atesen-software/bluesky-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/bluesky-data-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/XH3vuDEGp9ylSy3B9/builds/2KcexCXeItYYNOVAk/openapi.json
