# Bluesky Posts Scraper (`dabooti/bluesky-posts-scraper`) Actor

Scrape Bluesky posts by keyword, hashtag or profile without logging in: text, author, timestamps, likes, reposts, replies, quotes, hashtags, links and images. Filter by date range and language.

- **URL**: https://apify.com/dabooti/bluesky-posts-scraper.md
- **Developed by:** [Danial Maqbool](https://apify.com/dabooti) (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 $0.80 / 1,000 posts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

Scrape public Bluesky posts by keyword, hashtag or profile, without a Bluesky account. Get each post's text, author, timestamps, likes, reposts, replies and quotes, plus hashtags, links, images and reply context, exported to JSON, CSV or Excel.

### What you can use it for

- **Social listening**: track brand, product and competitor mentions on Bluesky.
- **Trend and hashtag research**: collect every post about a topic or hashtag over a date range.
- **Influencer and creator analysis**: export a profile's posts with engagement counts.
- **Academic and journalism research**: build datasets of public discussion around events.
- **AI and NLP datasets**: clean post text with language tags for sentiment or topic models.

### What data you get

| Field | Description |
|---|---|
| `text`, `langs` | Post text and declared languages |
| `postUrl`, `uri` | Link on bsky.app and AT Protocol URI |
| `createdAt`, `indexedAt` | When it was posted and indexed (ISO 8601) |
| `authorHandle`, `authorDisplayName`, `authorDid`, `authorAvatar` | Public author details |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount` | Engagement |
| `hashtags`, `mentions`, `links` | Extracted from the post's rich text and link cards |
| `imageUrls`, `externalTitle`, `quotedPostUri` | Attached media, link card title and quoted post |
| `isReply`, `replyToUri`, `repostedBy` | Thread and repost context |
| `source`, `sourceValue` | The search term or profile that produced the post |

### How to use it

1. Add **Search terms**. Bluesky search syntax works: `"climate tech"`, `#python`, `from:nytimes.com`, `domain:theverge.com`.
2. Optionally add **Profiles** (handles like `bsky.app` or profile URLs) to export their own posts.
3. Set **Max posts per search term or profile**, the sort order, and optional date range and language.
4. Click **Start** and export from the **Output** tab.

#### Example input

```json
{
  "searchTerms": ["#buildinpublic", "\"open source\" AI"],
  "handles": ["bsky.app"],
  "maxPostsPerSource": 1000,
  "sort": "latest",
  "since": "2026-11-01",
  "language": "en"
}
```

#### Example output

One record from a real run:

```json
{
  "source": "search",
  "sourceValue": "artificial intelligence",
  "uri": "at://did:plc:niyunmqoglmoxmfjvywann4a/app.bsky.feed.post/3n24xehtwkr2o",
  "postUrl": "https://bsky.app/profile/eslam13.bsky.social/post/3n24xehtwkr2o",
  "text": "🔥 Advanced Artificial Intelligence Breakthroughs and Innovations #News #Global",
  "createdAt": "2026-11-12T17:06:24.465Z",
  "indexedAt": "2026-11-12T17:06:25.672Z",
  "langs": [],
  "authorHandle": "eslam13.bsky.social",
  "authorDisplayName": null,
  "authorDid": "did:plc:niyunmqoglmoxmfjvywann4a",
  "authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:niyunmqoglmoxmfjvywann4a/bafkreiap3rd5a6sikwjrrtgobuewbcpidnf2ki4i44vdvf4uu5a6ddllvy",
  "likeCount": 0,
  "repostCount": 0,
  "replyCount": 0,
  "quoteCount": 0,
  "hashtags": [
    "News",
    "Global"
  ],
  "mentions": [],
  "links": [
    "https://eslammsd-trend-wave-us.static.hf.space/finance_1794503006.html?id=1794503006"
  ],
  "imageUrls": [],
  "externalTitle": "Advanced Artificial Intelligence Breakthroughs and Innovations",
  "quotedPostUri": null,
  "isReply": false,
  "replyToUri": null,
  "repostedBy": null,
  "scrapedAt": "2026-11-12T17:07:13.205Z"
}
```

### Pricing

Pay per event: **$0.80 per 1,000 posts** saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). Set **Max cost per run** to cap spending.

### Tips and limits

- **Latest** sort walks back through time, so it can collect thousands of posts per search term. **Top** returns Bluesky's 100 highest-ranked posts per term.
- Profiles are read newest first. Use **Posted on or after** to stop at a date.
- Only public posts are available; deleted posts and private content are never returned.
- A `RUN_SUMMARY` in the run's key-value store lists posts saved per source and any errors.

### FAQ

**Do I need a Bluesky login or app password?** No. The Actor uses Bluesky's public API.

**Can I monitor a keyword every hour?** Yes. Schedule it with **Posted on or after** set to a recent date and connect the output to Slack, Google Sheets or a webhook.

### Legal note

This Actor collects public posts through Bluesky's public API. You are responsible for following Bluesky's terms, privacy laws such as GDPR, and your own legitimate purpose. Do not use the data to harass or profile individuals.

# Actor input Schema

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

Keywords, phrases or hashtags to search across all public Bluesky posts. Bluesky search syntax works, for example "climate tech", #python, from:alice.bsky.social or domain:nytimes.com.

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

Bluesky handles, DIDs or profile URLs whose own posts you want, for example bsky.app or https://bsky.app/profile/nytimes.com.

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

Stop after this many posts for each search term and each profile.

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

Latest walks back through time and can collect thousands of posts per term. Top returns Bluesky's 100 highest-ranked posts per term.

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

Optional date, YYYY-MM-DD.

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

Optional date, YYYY-MM-DD.

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

Optional two-letter language code, for example en, ja, pt or de.

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

For profiles only: also collect the profile's replies to other people.

## Actor input object example

```json
{
  "searchTerms": [
    "artificial intelligence"
  ],
  "handles": [],
  "maxPostsPerSource": 50,
  "sort": "latest",
  "includeReplies": false
}
```

# Actor output Schema

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

No description

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

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

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

```

## MCP server setup

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