# Bluesky Scraper: Posts, Profiles, Followers, Follows & Threads (`metal_spinney/bluesky-public-data`) Actor

Export Bluesky posts, profiles, followers, following lists and full reply threads from the official public AppView API. Paste handles, DIDs or bsky.app URLs. No login, no proxies, no cookies. Since-date filter and only-new-since-last-run mode for monitoring.

- **URL**: https://apify.com/metal_spinney/bluesky-public-data.md
- **Developed by:** [Open Registry Data](https://apify.com/metal_spinney) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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, follows & threads (official public API)

Export public **Bluesky** data to JSON, CSV or Excel: an account's **posts**, **profile details**, **followers**, **following list**, or a full **reply thread**. Paste handles, DIDs or bsky.app links. Turn on **Only new records since last run** and schedule it to monitor accounts for new posts or new followers.

Uses only Bluesky's official public AppView API (`public.api.bsky.app`), whose robots.txt allows crawling the public parts of the API. No login, no cookies, no proxies and no browser, so runs are fast and cheap.

### Modes

| Mode | Input | One record per |
|---|---|---|
| `posts` | handle / DID / profile URL | post (optionally reposts and the pinned post), newest first |
| `profile` | handle / DID / profile URL | account (followers, follows, posts counts, bio, avatar, created date, verification) |
| `followers` | handle / DID / profile URL | follower account |
| `follows` | handle / DID / profile URL | account followed |
| `thread` | post URL `https://bsky.app/profile/<handle>/post/<id>` or `at://` URI | post in the thread (parents, the post itself, replies with depth) |

### What you get per post

`uri, cid, url, authorDid, authorHandle, authorDisplayName, text, createdAt, indexedAt, langs, likeCount, repostCount, replyCount, quoteCount, bookmarkCount, isReply, replyParentUri, replyRootUri, isRepost, repostedAt, isPinned, embedType, imageUrls, videoPlaylist, externalLink, quotedPostUri, hashtags, mentionDids, links, labels, input, scrapedAt` (+ `threadDepth`, `threadPosition` in thread mode).

Profiles: `did, handle, displayName, description, url, avatar, banner, followersCount, followsCount, postsCount, listsCount, feedgensCount, starterPacksCount, verifiedStatus, pinnedPostUri, createdAt, labels`. Followers/follows: `did, handle, displayName, description, avatar, createdAt, verifiedStatus, ofHandle, ofDid`.

### Features

- Handles, `@handles`, bare names (`jay` → `jay.bsky.social`), DIDs and bsky.app URLs all work; unknown or deleted accounts are logged and skipped (not charged).
- **Posts since** (`2026-10-01` or `7 days`): paging stops as soon as older posts are reached.
- **Monitoring mode**: remembers what each target list returned before (named key-value store in your account) and outputs only new posts, followers, follows or replies. Already-seen records are not output and not charged.
- Post filters: posts and replies, posts only, media only, video only, self-threads.
- Polite by design: at most 3 concurrent requests, automatic back-off on HTTP 429.

### Limits (honest list)

- **No keyword search**: Bluesky's public API returns 403 for unauthenticated post search, so this Actor does not search posts by keyword or hashtag.
- Only public data the AppView serves without login. Content behind "logged-out visibility off" or blocks is not returned.
- Follower lists contain no follow date (Bluesky does not expose it); they are ordered newest follower first.
- Very large accounts: use `maxItemsPerTarget` / `maxItems` to cap volume and cost.

### Sample

A local test on 28 Oct 2026 returned 4,641 posts from 25 accounts in 16.5 s (56 API calls, 0 retries) and 3,000 followers of one account in 6.8 s; a 248-post reply thread in 1.1 s. Monitoring mode returned 0 records on the second run when nothing new had been posted. See `samples/`.

```json
{"type":"post","url":"https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l","authorHandle":"bsky.app",
 "text":"👋 Bluesky is an open social network ...","createdAt":"2024-10-17T07:06:51.491Z",
 "likeCount":63753,"repostCount":9551,"replyCount":8700,"quoteCount":722,"isPinned":true}
```

### Pricing

Free to use for now: you only pay Apify's normal platform usage for the run. Pay-per-event pricing may be added later, with Apify's standard advance notice.

### Notes

- Respect Bluesky's Terms and the privacy of the people whose public data you collect; use the data lawfully (e.g. GDPR where it applies).
- Issues or feature requests: use the Issues tab.

*By Open Registry Data.*

# Actor input Schema

## `targets` (type: `array`):

One per line. Handles (bsky.app, @nytimes.com, 'jay' = jay.bsky.social), DIDs (did:plc:...), profile URLs (https://bsky.app/profile/...). For thread mode use post URLs (https://bsky.app/profile/<handle>/post/<id>) or at:// URIs.

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

posts = each account's posts (author feed); profile = one profile record per account; followers / follows = the account's followers or the accounts it follows; thread = a post with all its replies (and parent posts).

## `maxItemsPerTarget` (type: `integer`):

0 = no limit.

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

Hard cap on results (and cost). 0 = no limit. You can also set 'Maximum cost per run' in run options.

## `sinceDate` (type: `string`):

Only posts (or reposts) newer than this. ISO date/time like 2026-10-01 or 2026-10-01T12:00:00Z, or relative like '7 days'. Paging stops as soon as older posts are reached, so you are not charged for them.

## `postFilter` (type: `string`):

Bluesky author-feed filter.

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

Include posts the account reposted (marked isRepost=true).

## `includePinned` (type: `boolean`):

Include the account's pinned post at the top (marked isPinned=true), even if older than 'Posts since'.

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

How many levels of replies to fetch below the post.

## `onlyNewSinceLastRun` (type: `boolean`):

Remembers what was already returned for this exact target list + mode in a named key-value store in your account. First run returns everything and saves the baseline; later runs return only new posts / new followers / new follows / new replies. Already-seen records are not output and cost nothing. Ignored for profile mode (profiles are snapshots).

## Actor input object example

```json
{
  "targets": [
    "bsky.app",
    "nytimes.com"
  ],
  "mode": "posts",
  "maxItemsPerTarget": 20,
  "maxItems": 0,
  "postFilter": "posts_with_replies",
  "includeReposts": false,
  "includePinned": true,
  "threadDepth": 10,
  "onlyNewSinceLastRun": false
}
```

# Actor output Schema

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

No description

## `resultsView` (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 = {
    "targets": [
        "bsky.app",
        "nytimes.com"
    ],
    "mode": "posts",
    "maxItemsPerTarget": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("metal_spinney/bluesky-public-data").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 = {
    "targets": [
        "bsky.app",
        "nytimes.com",
    ],
    "mode": "posts",
    "maxItemsPerTarget": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("metal_spinney/bluesky-public-data").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 '{
  "targets": [
    "bsky.app",
    "nytimes.com"
  ],
  "mode": "posts",
  "maxItemsPerTarget": 20
}' |
apify call metal_spinney/bluesky-public-data --silent --output-dataset

```

## MCP server setup

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

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/4KsGVnsBvnUtpkSJh/builds/kLi35nOW7MkEdxtaM/openapi.json
