# Bluesky Scraper 🦋 Posts, Profiles, Search & Replies (`tagadanar/bluesky-scraper`) Actor

Scrape Bluesky: search posts by keyword or hashtag (latest or top, date window, language), every post of any handle with its profile, or a post with all its replies. Likes, reposts, followers, hashtags, images. No login. $1.00 per 1,000 results.

- **URL**: https://apify.com/tagadanar/bluesky-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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, Search & Replies

Search Bluesky posts by keyword or hashtag, pull every post of any account with its profile, or export a post with its whole reply tree. Each result is one flat row: post text, link, time, author handle, name and follower count, likes, reposts, replies, quotes, languages, hashtags, mentions, links, images, video and quoted post.

**$1.00 per 1,000 results on Free ($0.70 on Gold), plus $0.001 per run. Platform usage is included.** No Bluesky account, no app password, no API key, no proxy needed.

### Three ways in (mix them in one run)

- **Search terms** (`searchTerms`): words, phrases or hashtags. `sort: "latest"` goes newest first and keeps paging back in time until `maxItems`; `sort: "top"` returns Bluesky's ranking (at most 100 posts per term). Narrow with `since` / `until` (dates, UTC) and `language` (2-letter code). Bluesky's search operators work inside a term, e.g. `"exact phrase"` or `bluesky from:bsky.app`. A term made only of operators (e.g. `from:bsky.app`) pages back too while Bluesky allows it; if Bluesky refuses its next page, the status says "first page only" for that term.
- **Handles** (`handles`): `alice.bsky.social`, `@alice.bsky.social`, a custom-domain handle, a profile URL or a DID. Each gives one profile row (bio, followers, following, posts count, avatar) and the account's posts, newest first. `authorFeedFilter` picks posts only, posts with replies, or media posts; `includeReposts` adds what the account reposted; `since` / `until` limit the window.
- **Post URLs** (`postUrls`): a `https://bsky.app/profile/.../post/...` link gives that post plus all its replies, nested replies included, each with `threadDepth` (0 = the post itself).

`maxItems` caps posts per search term, per handle and per thread (default 100, at most 10,000). Up to 100 sources per run.

### Examples

The prefill: the 100 most recent posts about web scraping:

```json
{"searchTerms":["web scraping"]}
```

Keyword monitoring: French-language posts about open data in October:

```json
{"searchTerms":["opendata"],"language":"fr","since":"2026-10-01","until":"2026-11-01","maxItems":500}
```

Every top-level post of two accounts since a date, with their profiles:

```json
{"handles":["bsky.app","jay.bsky.team"],"authorFeedFilter":"posts_no_replies","since":"2026-09-01","maxItems":1000}
```

All replies to one post (comment export):

```json
{"postUrls":["https://bsky.app/profile/rose.bsky.team/post/3mzj2fyriss2n"],"maxItems":1000}
```

### What you get

One flat row per post or profile; `type` tells them apart. Fields a post does not have are `null`.

| Field | What it is |
| --- | --- |
| `type` | `post` or `profile` |
| `source`, `sourceInput` | `search`, `handle` or `thread`, and the term, handle or URL you gave |
| `url`, `uri`, `postId`, `cid` | Link on bsky.app, AT Protocol URI, post key, content hash |
| `text` | Full post text |
| `createdAt`, `indexedAt` | When the post was written, and when Bluesky indexed it (ISO 8601) |
| `authorHandle`, `authorDisplayName`, `authorDid` | Who posted it |
| `authorFollowersCount`, `authorFollowsCount`, `authorPostsCount` | The author's followers, following and post count |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `bookmarkCount` | Engagement at retrieval time |
| `langs` | Languages the author tagged the post with |
| `hashtags`, `mentions`, `links` | Hashtags, mentioned handles and links in the text |
| `imageUrls`, `videoUrl` | Full-size image links, video playlist link |
| `externalUrl`, `externalTitle`, `externalDescription` | Link card attached to the post |
| `quotedPostUri`, `quotedPostUrl` | The post this one quotes |
| `isReply`, `replyParentUri`, `replyRootUri` | Reply context |
| `isRepost`, `repostedByHandle`, `repostedAt` | Set on reposts in a handle's feed (with `includeReposts`) |
| `threadDepth` | In thread exports: 0 for the post, 1 for direct replies, 2 for replies to those, ... |
| `labels` | Moderation labels on the post or profile |
| `profileDescription`, `profileCreatedAt`, `avatarUrl`, `bannerUrl`, `pinnedPostUri` | Profile rows only |
| `retrievedAt` | When the row was fetched |

### Who uses it

- **Social listening and brand monitoring**: every new mention of a brand, product or hashtag, scheduled daily with `since`.
- **Researchers and journalists**: datasets of posts on a topic, in a language, in a date window, with engagement counts.
- **Creator and competitor tracking**: an account's posts and follower numbers over time.
- **Community managers**: export all replies to an announcement to read or classify them.

### Results, zeros and errors

- A search the source answered with no match, or a handle or post that does not exist, is named in the status ("no match", "not found") and costs only the start charge.
- A source Bluesky refused, or the run clock stopped, is named in the status and is never reported as "no match".
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.
- A post found by two sources in the same run is delivered (and charged) once.

### Pricing

- $0.001 per run (start).
- $1.00 per 1,000 results (posts and profile rows) on Free, with lower prices on higher Apify plans ($0.70 per 1,000 on Gold). Platform usage is included.

Set a maximum charge per run in Apify if you want a hard ceiling; the actor stops at it and says so in the status.

### FAQ

**Do I need a Bluesky account or app password?** No. The actor reads Bluesky's public API, the same data anyone sees on bsky.app without logging in.

**Can I get more than 100 posts for a search?** Yes, with `sort: "latest"` (the default): the actor keeps paging back in time until `maxItems` or the start of your `since` window. `sort: "top"` is limited to Bluesky's top 100 per term.

**Why is a post missing from my search?** The actor returns what Bluesky's public search returns. Deleted posts, and posts from accounts that limit visibility to logged-in users, can be absent.

**Can I schedule it?** Yes. Use `since` with the date of your last run to collect only new posts.

### Data use

Data comes from Bluesky's public AppView API (posts, profiles and threads visible without logging in). Posts and profiles are personal data of their authors: use them under the GDPR and similar laws, for a legitimate purpose, and respect Bluesky's terms. Questions or a missing field: open an issue on the actor's Issues tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/bluesky-scraper/changelog.md

# Actor input Schema

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

Words, phrases or hashtags to search Bluesky posts for (one per line). Bluesky search operators work too, e.g. <code>from:bsky.app</code>, <code>"exact phrase"</code>, <code>#opendata</code>. Up to 100 sources per run (search terms + handles + post URLs).

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

<b>latest</b>: newest first, pages back in time as deep as maxItems. <b>top</b>: Bluesky's ranking, at most 100 posts per search term.

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

Only posts from this date or time on (UTC), e.g. 2026-11-01. Applies to search terms and handles.

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

Only posts before this date or time (UTC), e.g. 2026-11-30. Applies to search terms and handles.

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

Only search results tagged with this language: a 2-letter code such as en, fr, de, ja, pt. Leave empty for all languages.

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

Bluesky accounts: <code>alice.bsky.social</code>, <code>@alice.bsky.social</code>, a custom-domain handle, a profile URL or a DID. Each gives one profile row plus the account's posts.

## `includeProfile` (type: `boolean`):

Add one profile row (bio, followers, following, posts count, avatar) for each handle.

## `authorFeedFilter` (type: `string`):

Which part of each handle's feed to read.

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

Also return posts the handle reposted (marked isRepost, with repostedAt).

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

bsky.app post links such as <code>https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l</code> (or at:// URIs). Each gives the post plus its reply tree, with threadDepth.

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

Cap on posts per search term, per handle and per post thread. Default 100, max 10,000.

## Actor input object example

```json
{
  "searchTerms": [
    "web scraping"
  ],
  "sort": "latest",
  "includeProfile": true,
  "authorFeedFilter": "posts_and_author_threads",
  "includeReposts": false,
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (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": [
        "web scraping"
    ]
};

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

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

```

## MCP server setup

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