# Bluesky Post & Profile Scraper (`munin/bluesky-scraper`) Actor

Scrape Bluesky posts, profiles, threads, followers and custom feeds without an account. Flat rows with engagement counts, media links and timestamps. Charged only for rows delivered.

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

## Pricing

$2.00 / 1,000 item delivereds

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 Post & Profile Scraper

Scrape Bluesky without an account. Give it handles, post links, custom feeds or a people search, and get back flat rows of posts and profiles — text, engagement counts, media links, timestamps, followers.

It talks to Bluesky's own public API (the AT Protocol AppView), the same service the website uses. No login, no cookies, no browser, no proxy needed.

**You are charged per row delivered.** Filtered-out rows and failed inputs cost nothing.

### What you can scrape

| Input field | What you get |
|---|---|
| Accounts — scrape their posts | The account's timeline: posts, replies, reposts, media posts |
| Posts | One row per post, or the entire reply thread under it |
| Accounts — profile details only | Bio, follower/following/post counts, account creation date |
| People search | Accounts matching a name, handle or bio text |
| Custom feeds and lists | Posts in any feed generator or moderation/curation list |
| Followers of / Following of | The follower or following list as profile rows |
| Engagement on posts | Who liked, reposted or quoted a given post |

Mix as many as you like in one run. Accepts handles (`jay.bsky.team`), profile URLs, post URLs, feed and list URLs, and raw `at://` URIs.

### Filters

`keywords`, `excludeKeywords`, `postedWithinDays`, `minLikes`, `languages`, `mediaOnly`, `excludeReplies`, and an author filter for posts-only / media-only timelines. Filters run **before** billing.

### Output

One flat row per post or profile — ready for CSV, Google Sheets or a database.

```json
{
  "type": "post",
  "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l",
  "url": "https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l",
  "text": "…",
  "createdAt": "2026-09-12T14:03:11.000Z",
  "authorHandle": "bsky.app",
  "authorDisplayName": "Bluesky",
  "authorDid": "did:plc:z72i7hdynmk6r22z27h6tvur",
  "likeCount": 1820, "repostCount": 244, "replyCount": 96, "quoteCount": 31,
  "isReply": false, "replyToUri": null, "threadRootUri": null,
  "embedType": "images", "images": ["https://cdn.bsky.app/…"], "videoUrl": null,
  "externalUrl": null, "links": [], "mentions": [], "hashtags": [], "langs": ["en"]
}
```

Profile rows carry `handle`, `displayName`, `description`, `followersCount`, `followsCount`, `postsCount`, `createdAt`, `avatar`, plus the reason they are there (`engagement`, `relation`, `matchedQuery`).

### What it cannot do

- **No keyword search over posts.** Bluesky requires a logged-in account for `app.bsky.feed.searchPosts`, and this actor does not log in or work around that. Use the **people search** field to find accounts by keyword, then scrape their posts. To follow a topic, add a custom feed for it.
- **No likes of an account.** `getActorLikes` also requires authentication.
- **Public data only.** No DMs, no follower lists of accounts that hide them, no deleted or blocked-from-you content.
- **No posting, liking or following.** Read-only.
- Reply threads go **10 levels deep at most**, and very large threads are capped by the API itself.
- Engagement lists (likes, reposts) are returned newest-first and are paginated; on a viral post, pulling all of them takes many requests — use `maxItemsPerSource` to bound it.
- Counts are what Bluesky reports at fetch time; they are not recomputed.

### Tips

- `maxItems` caps the entire run — the safest way to cap what you spend.
- `maxConcurrency` above 4 can trigger throttling on the public API. The actor retries automatically, but the run will not be faster.
- Rows that failed carry `success: false` and an `error` message; the run still finishes with everything else. Those rows are free.

### Legal

This actor reads data that Bluesky publishes openly. You are responsible for how you use it, including GDPR/CCPA obligations when the data concerns people in those jurisdictions.

# Actor input Schema

## `authors` (type: `array`):

Handles (@jay.bsky.team), profile URLs or DIDs. Returns the account's posts, newest first.

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

Post URLs (https://bsky.app/profile/…/post/…) or at:// URIs. Turn on thread replies below to expand the whole conversation.

## `includeThreadReplies` (type: `boolean`):

Return every reply under each post in the list above, not just the post itself.

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

How many levels of replies to follow. Maximum 10.

## `profiles` (type: `array`):

Handles or profile URLs. Returns one row each with bio, follower counts and account age.

## `peopleSearchQueries` (type: `array`):

Find accounts by name, handle or bio text. One row per matching profile.

## `feeds` (type: `array`):

Feed URLs (https://bsky.app/profile/…/feed/…) or list URLs (…/lists/…). Returns the posts in them.

## `followersOf` (type: `array`):

Handles whose followers you want as profile rows.

## `followingOf` (type: `array`):

Handles whose following list you want as profile rows.

## `engagementOf` (type: `array`):

Post URLs. Returns who liked, reposted and quoted them.

## `engagementTypes` (type: `array`):

Which of the three to collect for the posts above.

## `authorFilter` (type: `string`):

Applies to the accounts in the first field.

## `keywords` (type: `array`):

Keep only posts whose text matches at least one keyword. For profile rows it matches name, handle and bio. Case-insensitive.

## `excludeKeywords` (type: `array`):

Drop rows matching any of these.

## `postedWithinDays` (type: `integer`):

Drop posts older than this. 0 = no date limit.

## `minLikes` (type: `integer`):

Drop posts below this like count.

## `languages` (type: `array`):

Two-letter codes (en, ja, pt). Keeps posts the author tagged with one of them.

## `mediaOnly` (type: `boolean`):

Keep only posts that carry an image or a video.

## `excludeReplies` (type: `boolean`):

Drop replies, keeping top-level posts only.

## `maxItemsPerSource` (type: `integer`):

Applies to each account, feed or post in the lists above. 0 = no limit.

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

Hard stop for the whole run. 0 = no limit.

## `maxConcurrency` (type: `integer`):

How many sources to process at once. Bluesky's public API throttles bursts, so 4 is a good default.

## Actor input object example

```json
{
  "authors": [
    "bsky.app"
  ],
  "includeThreadReplies": false,
  "threadDepth": 6,
  "engagementTypes": [
    "likes",
    "reposts",
    "quotes"
  ],
  "authorFilter": "posts_with_replies",
  "postedWithinDays": 0,
  "minLikes": 0,
  "mediaOnly": false,
  "excludeReplies": false,
  "maxItemsPerSource": 100,
  "maxItems": 200,
  "maxConcurrency": 4
}
```

# Actor output Schema

## `rows` (type: `string`):

Posts and profiles with engagement counts, media links and timestamps.

## `postsCsv` (type: `string`):

Author, text, date, likes, reposts and link. Ready for a spreadsheet.

## `profilesCsv` (type: `string`):

Handle, display name, bio and follower counts.

# 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 = {
    "authors": [
        "bsky.app"
    ],
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("munin/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 = {
    "authors": ["bsky.app"],
    "maxItems": 200,
}

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

```

## MCP server setup

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