# Bluesky Scraper: Posts, Profiles, Threads and Feeds (`datagrovehq/bluesky-scraper`) Actor

Scrape Bluesky posts from keyword searches, profiles (full history), threads with all replies, custom feeds and lists. Text, likes, reposts, replies, quotes, images, video, links and hashtags. No login, no account.

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

## Pricing

$0.50 / 1,000 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 Scraper: Posts, Profiles, Threads and Feeds

Get Bluesky posts as clean JSON, CSV or Excel. Search all of Bluesky by keyword, pull a profile's whole posting history, collect every reply under a post, or export any custom feed or list. Each post comes with its **text, author, date, likes, reposts, replies, quotes, images, video, links, hashtags and mentions**.

- **No login, no account, no app password.** It uses Bluesky's open public API, the same data any Bluesky app shows.
- **Fast.** Plain API calls, no browser: thousands of posts per minute.
- **Five sources in one tool:** keyword search, profiles, threads with replies, custom feeds and lists.
- **Pay only for results.** $0.50 per 1,000 posts. No start fee, no monthly rent.

### What you can do with it

- Track what people say about a brand, product, topic or hashtag on Bluesky.
- Export a creator's or newsroom's full post history with engagement numbers.
- Collect every reply to a post for sentiment analysis or community research.
- Archive a custom feed or a curated list every day.
- Build Bluesky text datasets for research, RAG or model training.

### Input

| Field | What it does | Default |
|---|---|---|
| `searchQueries` | Keywords to search across Bluesky. Operators work: `from:handle`, `#tag`, `"exact phrase"`, `domain:example.com` | |
| `profiles` | Handles or profile URLs: `nytimes.com`, `@bsky.app`, `https://bsky.app/profile/nytimes.com` | |
| `postUrls` | Post URLs; returns the post plus all replies under it | |
| `feedUrls` | Custom feed URLs (`/feed/<name>`) or list URLs (`/lists/<id>`) | |
| `maxPostsPerSource` | Posts per query, profile, thread or feed | 100 |
| `searchSort` | `latest` or `top` | latest |
| `language` | Only search results in this language (`en`, `es`, `ja`...) | |
| `postedAfter` / `postedBefore` | Date filters (YYYY-MM-DD) | |
| `includeReplies` | Include the replies a profile wrote | true |
| `includeReposts` | Include reposts on profiles and feeds | false |

Example:

```json
{
  "searchQueries": ["\"climate tech\"", "#bookstodon"],
  "profiles": ["nytimes.com"],
  "postUrls": ["https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"],
  "maxPostsPerSource": 500,
  "postedAfter": "2026-11-01"
}
```

**About search depth.** Without login, Bluesky's API returns at most 100 posts per search query. To collect more, run the same query over several date ranges (`postedAfter` and `postedBefore`, for example one day each) or split it into narrower queries. Profiles, threads, feeds and lists have no such limit.

### Output

One result per post. Example (shortened):

```json
{
  "url": "https://bsky.app/profile/chucktingle.bsky.social/post/3n2i3pqe73k2n",
  "uri": "at://did:plc:4qmldhjmsvozldytrmot62gt/app.bsky.feed.post/3n2i3pqe73k2n",
  "authorHandle": "chucktingle.bsky.social",
  "authorDisplayName": "Chuck Tingle",
  "authorDid": "did:plc:4qmldhjmsvozldytrmot62gt",
  "text": "artist buckaroos, you know that project you are working on? ...",
  "createdAt": "2026-11-17T03:23:34.650Z",
  "langs": ["en"],
  "likeCount": 5828,
  "repostCount": 1956,
  "replyCount": 129,
  "quoteCount": 72,
  "bookmarkCount": 288,
  "isReply": false,
  "replyToUri": null,
  "threadRootUri": null,
  "hashtags": [],
  "mentionedDids": [],
  "links": [],
  "images": [],
  "video": null,
  "externalLink": null,
  "quotedPost": null,
  "labels": [],
  "repostedBy": null,
  "isPinned": false,
  "source": { "type": "profile", "value": "chucktingle.bsky.social" }
}
```

- `images`: full-size URL, thumbnail and alt text for each image.
- `video`: HLS playlist URL, thumbnail and alt text.
- `externalLink`: link card URL, title, description and thumbnail.
- `quotedPost`: URL, author and text of the quoted post.
- Thread results add `threadDepth` (0 = the post you gave, 1 = direct reply, ...).
- `source` tells you which query, profile, thread or feed produced the post.

Inputs that cannot be scraped (a handle that does not exist, a deleted post) produce one row with an `error` field. Error rows are free.

### Pricing

$0.50 per 1,000 posts ($0.0005 per post). Nothing else is charged. Set a maximum cost per run in the run options and the scraper stops exactly there.

### Tips

- For monitoring, schedule the actor daily with `postedAfter` set to yesterday, or use `searchSort: latest` with a small `maxPostsPerSource`.
- The same post found by two sources is returned (and charged) once.
- Bluesky's public API allows about 3,000 requests per 5 minutes. Each request returns up to 100 posts, so normal runs never hit it.

### Is it legal?

The scraper reads only public posts through Bluesky's open public API, without logging in. You are responsible for how you use the data, including privacy laws such as GDPR when you store posts by identifiable people.

### Feedback

Found a bug or need a field? Open an issue on the Issues tab and it will be answered.

# Actor input Schema

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

Keywords or phrases to search across all of Bluesky. Bluesky's search operators work too: from:handle, #hashtag, "exact phrase", domain:example.com. Without login Bluesky returns up to 100 posts per query; use the date filters to get 100 per day or week.

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

Get a profile's posts, newest first, back through its whole history. Use a handle (nytimes.com), @handle, DID or profile URL (https://bsky.app/profile/nytimes.com).

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

Get a post and every reply under it, with reply depth. Example: https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l

## `feedUrls` (type: `array`):

Posts from a custom feed (https://bsky.app/profile/<handle>/feed/<name>) or a list (https://bsky.app/profile/<handle>/lists/<id>).

## `maxPostsPerSource` (type: `integer`):

Stop after this many posts from each query, profile, thread or feed.

## `searchSort` (type: `string`):

Latest posts first, or Bluesky's top posts.

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

Only search results in this language, as a two-letter code (en, es, ja, pt, de).

## `postedAfter` (type: `string`):

Optional. Skip posts created before this date (YYYY-MM-DD). Profile scraping stops once it reaches older posts.

## `postedBefore` (type: `string`):

Optional. Skip posts created on or after this date (YYYY-MM-DD).

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

For profiles: include the replies they wrote, not just their top-level posts.

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

For profiles and feeds: include posts they reposted from other accounts (marked with repostedBy).

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

Not needed for normal use. Turn on only if you hit rate limits on very large runs.

## Actor input object example

```json
{
  "searchQueries": [
    "artificial intelligence"
  ],
  "maxPostsPerSource": 100,
  "searchSort": "latest",
  "includeReplies": true,
  "includeReposts": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "artificial intelligence"
    ]
};

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

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

```

## MCP server setup

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