# Bluesky Posts Scraper (`johto.data/bluesky-posts-scraper`) Actor

Scrape public Bluesky posts by keyword, hashtag or handle: text, likes, reposts, replies and links. No login needed.

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

## Pricing

from $0.49 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 handle. You get clean JSON with the post text, author, likes, reposts, replies, quotes, hashtags, links and image URLs. No login, no cookies, no start fee.

**Price: $0.70 per 1,000 posts.** Error rows are free. You only pay for posts you get.

### For AI agents

- Input: `queries` (list of keywords or #hashtags), `handles` (list of Bluesky handles), `limit` (max posts per query or handle).
- Output: one dataset row per post. Key fields: `url`, `text`, `createdAt`, `authorHandle`, `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `hashtags`, `links`.
- Billing: event `post`, $0.0007 each. Failed queries return a row with `error` and are not billed.
- Works as a drop-in for other Bluesky post scrapers: same `queries`, `limit`, `sort`, `since`, `until`, `lang` fields.

### What you can do with it

- Track brand, product or competitor mentions on Bluesky
- Collect posts for a hashtag or topic for research and sentiment analysis
- Pull recent posts from a list of creators or company accounts
- Feed fresh social posts into an LLM, RAG pipeline or dashboard

### Input example

```json
{
  "queries": ["bitcoin", "#ai"],
  "handles": ["bsky.app"],
  "limit": 200,
  "sort": "latest",
  "since": "2026-11-01",
  "lang": "en"
}
```

### Output example

```json
{
  "url": "https://bsky.app/profile/example.bsky.social/post/3mzw...",
  "text": "Post text here",
  "createdAt": "2026-11-10T07:16:54Z",
  "authorHandle": "example.bsky.social",
  "authorDisplayName": "Example",
  "likeCount": 12,
  "repostCount": 3,
  "replyCount": 1,
  "quoteCount": 0,
  "hashtags": ["AI"],
  "links": ["https://example.com"],
  "images": [],
  "source": "search",
  "query": "#ai"
}
```

### Pricing compared

| | This actor | Typical Bluesky scraper |
|---|---|---|
| Per 1,000 posts | $0.70 | $0.92 to $1.10 |
| Start fee | none | $0.004 per run |
| Failed queries billed | no | varies |

### FAQ

**Do I need a Bluesky account?** No. It reads Bluesky's public API, the same data anyone can see without logging in.

**How many posts can I get?** Up to 10,000 per query or handle per run. Search with `sort: latest` pages back through time. `sort: top` returns the first page of top posts.

**Is it legal?** It reads only public posts through Bluesky's public API, and it never posts, likes, follows or messages anyone. You are responsible for how you use the data, including privacy law (GDPR, CCPA) and Bluesky's Terms and Community Guidelines. If a user deletes a post, delete it from your copy too.

**Does it scrape private content or DMs?** No. Public posts only.

Made by Johto Data. Questions or feature requests: open an issue on this actor.

### Related Actors

- [Website to Markdown](https://apify.com/johto.data/url-to-markdown)
- [PDF to Text](https://apify.com/johto.data/pdf-to-text)

# Actor input Schema

## `queries` (type: `array`):

Keywords, phrases or #hashtags to search on Bluesky. Supports Bluesky search syntax like from:handle.

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

Optional. Bluesky handles (e.g. bsky.app) to pull recent posts from.

## `limit` (type: `integer`):

Maximum posts returned for each query and each handle.

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

Search order. Applies to queries only.

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

Optional. Only posts after this date, e.g. 2026-11-01 or 2026-11-01T00:00:00Z.

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

Optional. Only posts before this date.

## `lang` (type: `string`):

Optional. Two-letter language code, e.g. en.

## Actor input object example

```json
{
  "queries": [
    "bitcoin",
    "#ai"
  ],
  "handles": [],
  "limit": 50,
  "sort": "latest"
}
```

# 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 = {
    "queries": [
        "bitcoin",
        "#ai"
    ],
    "handles": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("johto.data/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 = {
    "queries": [
        "bitcoin",
        "#ai",
    ],
    "handles": [],
}

# Run the Actor and wait for it to finish
run = client.actor("johto.data/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 '{
  "queries": [
    "bitcoin",
    "#ai"
  ],
  "handles": []
}' |
apify call johto.data/bluesky-posts-scraper --silent --output-dataset

```

## MCP server setup

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