# Bluesky Profiles and Posts Scraper (`nanodata/bluesky-profiles-posts-scraper`) Actor

Find Bluesky profiles by keyword and collect posts from any profile. Followers, bio, links, likes, reposts and attachments. Pay per row.

- **URL**: https://apify.com/nanodata/bluesky-profiles-posts-scraper.md
- **Developed by:** [nanodata](https://apify.com/nanodata) (community)
- **Categories:** Social media, 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 bluesky post scrapeds

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 Profiles and Posts Scraper

Find Bluesky profiles by keyword and collect the posts of any profile as clean rows. Profile rows carry the bio, follower counts, links and dates. Post rows carry the text, likes, reposts, replies, quotes, attached images, videos and link cards. You pay per row delivered.

The data comes from the public Bluesky read interface. No account, no login and no API key are needed.

### What you get

Profile rows (from your search terms):

- Identity: handle, DID, profile link, display name, bio
- Counts: followers, accounts followed, posts, lists, custom feeds, starter packs
- Images: avatar and banner
- Dates: account created, last indexed
- Extras: labels, verification status, pinned post, chat setting, the search term that found the profile

Post rows (from the profiles you name):

- Identity: post address (uri), content id, link on bsky.app
- Author: handle, DID, display name, avatar
- Content: text, language codes, hashtags, links in the text, mentioned accounts
- Numbers: likes, reposts, replies, quotes, bookmarks
- Attachments: image links with alt text, video playlist and thumbnail, link card (address, title, description, thumbnail), quoted post (address, text, author)
- Thread: whether the post is a reply, parent and root post addresses, handle of the author replied to
- Reposts: whether the feed shows a repost, who reposted it and when
- Dates: created and indexed (ISO 8601)

Every row has a `recordType` field (`profile` or `post`) and a `scrapedAt` time. A value the source does not send is null, and list fields are empty lists.

### Pricing

You pay per row delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One profile row | `profile-result` | $0.001 per profile ($1.00 per 1,000) |
| One post row | `post-result` | $0.001 per post ($1.00 per 1,000) |

A run that finds nothing is not charged. The profile details option has no extra charge. If you set a maximum cost for the run, the actor stops cleanly once the next row would go over it.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | list | empty | Keywords to find profiles. One search per term. |
| `handles` | list | empty | Profiles whose posts you want: a handle, a DID or a bsky.app profile link |
| `maxProfiles` | number | 100 | Maximum profile rows in total, split evenly across the search terms. Up to 50000. |
| `maxPostsPerProfile` | number | 50 | Maximum post rows for each profile in `handles`. Up to 5000. |
| `postFilter` | text | `posts_no_replies` | `posts_no_replies`, `posts_with_replies`, `posts_and_author_threads`, `posts_with_media` or `posts_with_video` |
| `includeProfileDetails` | true/false | true | Add counts, banner, pinned post and other details to profile rows |
| `includeReposts` | true/false | true | Keep reposts in the post rows (marked with `isRepost`) |

How it works:

- Search terms return profile rows. Handles return post rows. You can use both in one run.
- An empty input runs a small sample: the term `data engineering` and 20 profiles.
- Handles can be written as `name.bsky.social`, `@name.bsky.social`, `did:plc:...` or a link such as `https://bsky.app/profile/name.bsky.social`. Values that are none of these are skipped with a note in the log.
- The search results do not include follower counts. With `includeProfileDetails` on, the actor looks up profiles in groups of 25 to add them, so a run costs one extra request for every 25 profiles, not one per profile.
- Number fields also accept numbers written as text, for example `"50"`.

#### Example: find profiles

```json
{
  "searchTerms": ["data engineering", "marketing"],
  "maxProfiles": 200
}
```

#### Example: posts of two profiles

```json
{
  "handles": ["bsky.app", "https://bsky.app/profile/jay.bsky.team"],
  "maxPostsPerProfile": 100,
  "postFilter": "posts_no_replies"
}
```

#### Example: profiles and posts in one run

```json
{
  "searchTerms": ["newsroom"],
  "maxProfiles": 50,
  "handles": ["did:plc:z72i7hdynmk6r22z27h6tvur"],
  "maxPostsPerProfile": 30,
  "includeReposts": false
}
```

### Output sample

Profile row:

```json
{
  "recordType": "profile",
  "did": "did:plc:pw47o5oif3w7ennb4l73xj2y",
  "handle": "businessmarketing.bsky.social",
  "url": "https://bsky.app/profile/businessmarketing.bsky.social",
  "displayName": "Nika Kotláriková | Business Marketing With Nika",
  "description": "Business | Entrepreneurship. Marketing | Social media. From Slovakia.",
  "followersCount": 6138,
  "followsCount": 223,
  "postsCount": 12047,
  "listsCount": 6,
  "createdAt": "2023-04-20T18:59:15.031Z",
  "pinnedPostUri": "at://did:plc:pw47o5oif3w7ennb4l73xj2y/app.bsky.feed.post/3lbreo6d4a222",
  "searchTerm": "marketing",
  "detailsIncluded": true
}
```

Post row:

```json
{
  "recordType": "post",
  "uri": "at://did:plc:b5ly66nko7iijwy2lktt3ctq/app.bsky.feed.post/3mzlal2hpds2u",
  "url": "https://bsky.app/profile/whysharksmatter.bsky.social/post/3mzlal2hpds2u",
  "authorHandle": "whysharksmatter.bsky.social",
  "text": "Lots of folks are joining BlueSky today! ... #SciComm",
  "createdAt": "2026-11-05T16:03:13.775Z",
  "langs": ["en"],
  "likeCount": 3581,
  "repostCount": 470,
  "replyCount": 204,
  "quoteCount": 87,
  "embedType": "images",
  "imageUrls": ["https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:b5ly66nko7iijwy2lktt3ctq/bafkrei..."],
  "hashtags": ["SciComm"],
  "isRepost": true,
  "repostedByHandle": "bsky.app",
  "sourceHandle": "bsky.app"
}
```

The real rows have more fields. See the Output tab for the full list.

### Limitations

- There is no keyword search for posts. The source only allows that search for signed-in users, so this actor does not offer it. Find profiles by keyword, then collect their posts by handle.
- Follower and following lists are not collected.
- Only public data is returned. Direct messages, private accounts and anything behind a login are not available.
- Profile and post counts change all the time. Each row is a snapshot taken when the run reads it.
- A profile that is deactivated, blocked or unknown to the source returns no rows. The run status says how many entries had none.

### FAQ

**Do I need a Bluesky account or API key?**
No. The actor reads public data only.

**Why do follower counts show as null?**
Counts come from the profile lookup. If you switch `includeProfileDetails` off, or the lookup fails for a group of profiles, those fields stay empty and `detailsIncluded` is false.

**Why do I get fewer posts than `maxPostsPerProfile`?**
The profile has fewer posts that match your filter, or the maximum cost you set for the run was reached. The run status message says which.

**What is a repost row?**
When a profile reposts another account's post, the feed lists it. The row describes the original post, with `isRepost` true and the reposting account in `repostedByHandle`. Switch `includeReposts` off to keep only the profile's own posts.

**How fast is it?**
The actor waits at least 0.3 seconds between requests and slows down when the source asks it to. A page of up to 100 posts takes about a second.

**Can a run be restarted safely?**
Yes. Progress is saved after every page. A restarted run continues where it stopped and does not deliver or charge the same rows twice.

**Is this affiliated with Bluesky?**
No. This is an independent tool that reads public data.

# Actor input Schema

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

Keywords to find profiles. Each term searches names, handles and bios, and returns one row per profile. maxProfiles is split evenly across the terms. Leave both lists empty to get a small sample.

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

Profiles whose posts you want. Accepts a handle (name.bsky.social), a DID (did:plc:...) or a bsky.app profile link. Returns one row per post.

## `maxProfiles` (type: `integer`):

Maximum number of profile rows from the search terms, all terms together. Default 100 (20 for the sample run).

## `maxPostsPerProfile` (type: `integer`):

Maximum number of post rows for each profile in the list above. Default 50.

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

Which posts to list for each profile. Default: posts without replies.

## `includeProfileDetails` (type: `boolean`):

Add followers, follows, post counts, banner, pinned post and other details to each profile row. This needs one extra request for every 25 profiles and has no extra charge.

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

Include posts that the profile reposted from other accounts. They are marked with isRepost.

## `proxyConfiguration` (type: `object`):

Keep the default.

## Actor input object example

```json
{
  "maxProfiles": 100,
  "maxPostsPerProfile": 50,
  "postFilter": "posts_no_replies",
  "includeProfileDetails": true,
  "includeReposts": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Profile rows and post rows from Bluesky

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/bluesky-profiles-posts-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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("nanodata/bluesky-profiles-posts-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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/bluesky-profiles-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nanodata/bluesky-profiles-posts-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/8BXZiaykUogLlun4m/builds/u6rTGcYSJFXl1cjXU/openapi.json
