# Bluesky Scraper: Posts, Search, Profiles & People (`lx112/bluesky-scraper`) Actor

Bluesky posts and profiles from the open AT Protocol API, no login: search posts (hashtags, from:, keywords), get any account's posts and profile, or find people by keyword with follower counts. Likes, reposts, replies, quotes, links, images, languages and dates per post.

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

## Pricing

from $1.00 / 1,000 posts

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, Search, Profiles & People

Get **Bluesky posts and profiles** without a login: search posts by keyword, hashtag or author, pull any
account's posts and profile, or find people by keyword with their follower counts. Every post comes with likes,
reposts, replies, quotes, hashtags, links, images, languages and dates.

- **Search posts** with Bluesky's own syntax: keywords, `"exact phrase"`, `#hashtag`, `from:handle`,
  `mentions:handle`, `domain:nytimes.com`, `lang:en`. Newest first (pages back as far as you ask) or top posts.
- **Accounts:** handles (`bsky.app`), DIDs or profile URLs. Returns each profile (bio, followers, following,
  post count) and recent posts, with or without replies and reposts.
- **People search:** find journalists, researchers, founders or brands by keyword, with full profiles.
- **Open data, no login, no proxies.** Bluesky runs on the open AT Protocol; the actor reads its public API.
  Nothing is stored between runs, so deleted posts drop out on your next run.
- **Adult content is left out by default** (posts labelled porn, sexual, nudity or graphic media).

### Who uses this

- **Brand and media monitoring:** what people say about a brand, product or topic, as it happens.
- **Researchers and journalists:** datasets of posts on a hashtag or event, with engagement counts.
- **Marketing and lead gen:** find accounts by bio keyword and rank them by followers.
- **AI and data teams:** fresh social text for sentiment, trend detection and LLM pipelines.

### Input

| Field | Example | Notes |
|---|---|---|
| Search posts | `#ai`, `from:bsky.app`, `"climate policy" lang:en` | Bluesky search syntax |
| Accounts | `bsky.app`, `@jay.bsky.team`, `https://bsky.app/profile/...` | Profile + posts |
| Search people | `journalist`, `climate scientist` | Full profiles |
| Search order | `latest` | Or `top` (up to 100 posts per query) |
| Posted after / before | `2026-11-01` | Optional |
| Language (search) | `en` | Optional |
| Include replies / reposts (accounts) | `false` | Optional |
| Max posts per search / per account | `100` | Up to 10,000 |
| Max profiles per people search | `50` | Up to 1,000 |

### Output

Posts (`type: "post"`):

```json
{
  "type": "post",
  "url": "https://bsky.app/profile/example.bsky.social/post/3mzydgjzprk2x",
  "uri": "at://did:plc:x2obbaxjktznf67mnhznpplp/app.bsky.feed.post/3mzydgjzprk2x",
  "text": "Shipping a new atproto project this week",
  "createdAt": "2026-11-10T20:59:00.151Z",
  "authorHandle": "example.bsky.social",
  "authorName": "Example",
  "likeCount": 412,
  "repostCount": 18,
  "replyCount": 27,
  "quoteCount": 3,
  "langs": ["en"],
  "hashtags": [],
  "mentions": [],
  "links": [],
  "isReply": false,
  "quotedPostUri": null,
  "images": [],
  "videoPlaylist": null,
  "externalLink": null,
  "labels": [],
  "isRepost": false,
  "repostedBy": null,
  "source": "search",
  "sourceValue": "atproto",
  "scrapedAt": "2026-11-11T05:52:10.178Z"
}
```

Profiles (`type: "profile"`): `handle`, `did`, `displayName`, `description`, `avatar`, `banner`,
`followersCount`, `followsCount`, `postsCount`, `createdAt`, `verified`, `url`.

The run's **SUMMARY** record lists, per search or account, how many items were returned, adult posts skipped,
and any error.

### Pricing

Pay per event: charged per **post** and per **profile** returned.

### Notes

Bluesky data is public by design on the AT Protocol. Please respect people's privacy and Bluesky's community
guidelines when using it. This actor isn't affiliated with Bluesky Social.

# Actor input Schema

## `searchQueries` (type: `array`):

Bluesky search queries: keywords, "exact phrases", #hashtags, from:handle, mentions:handle, domain:example.com, lang:en. Newest-first search pages back as far as the limit; Top returns up to 100 posts per query.

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

Handles ("bsky.app", "@jay.bsky.team"), DIDs or bsky.app profile URLs. Returns each account's profile and its recent posts, newest first.

## `profileSearch` (type: `array`):

Keywords to find accounts by name, handle or bio (e.g. "journalist", "climate scientist"). Returns full profiles with follower and post counts.

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

For post search: newest first, or Bluesky's top-ranked posts.

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

Only posts created on or after this date (YYYY-MM-DD). Applies to search and accounts.

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

Only posts created before this date (YYYY-MM-DD).

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

Two-letter language code for post search, e.g. "en", "ja", "pt". Leave empty for all languages.

## `includeReplies` (type: `boolean`):

Also return the replies an account posted, not only its top-level posts.

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

Also return posts an account reposted (marked isRepost, with repostedBy).

## `includeProfiles` (type: `boolean`):

Return a profile item (bio, follower, following and post counts) for each account in Accounts.

## `includeAdultContent` (type: `boolean`):

Posts labelled porn, sexual, nudity or graphic media are left out unless this is on.

## `maxPostsPerQuery` (type: `integer`):

Upper limit of posts returned for each search query.

## `maxPostsPerHandle` (type: `integer`):

Upper limit of posts returned for each account.

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

Upper limit of profiles returned for each people search.

## Actor input object example

```json
{
  "searchQueries": [
    "#ai",
    "from:bsky.app"
  ],
  "sort": "latest",
  "includeReplies": false,
  "includeReposts": false,
  "includeProfiles": true,
  "includeAdultContent": false,
  "maxPostsPerQuery": 100,
  "maxPostsPerHandle": 100,
  "maxProfilesPerSearch": 50
}
```

# Actor output Schema

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

One item per post (type "post") or profile (type "profile"). Posts: text, author, date, likes, reposts, replies, quotes, hashtags, links, images, languages, URL.

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

How many posts or profiles each search or account returned, adult posts skipped, and any errors.

# 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 = {
    "searchQueries": [
        "#ai",
        "from:bsky.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lx112/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 = { "searchQueries": [
        "#ai",
        "from:bsky.app",
    ] }

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

```

## MCP server setup

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