# Bluesky Posts Scraper — Search & User Feed (No Auth) (`gochujang/bluesky-posts-scraper`) Actor

Scrape posts from Bluesky social network via the public AT Protocol API. Search by keyword, hashtag, or user handle. No API key required. Outputs post text, author, likes, reposts, replies, images, URLs, and tags. PPE $0.003/post.

- **URL**: https://apify.com/gochujang/bluesky-posts-scraper.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bluesky Posts Scraper

**Keywords:** Bluesky scraper · AT Protocol scraper · Bluesky posts · social media scraper · Bluesky keyword search · Bluesky hashtag · Bluesky API · decentralized social scraper

Scrape posts from **Bluesky** social network using the public AT Protocol API — **no API key or login required**.

Search by keyword, hashtag, or scrape any user's feed. Collect post text, engagement metrics, URLs, hashtags, image indicators, and language data.

### Features

- **Keyword & hashtag search** — find posts matching any query (e.g. `bitcoin`, `#crypto`, `AI news`)
- **User feed scraping** — collect all recent posts from any public Bluesky account
- **Language filtering** — restrict results to specific languages (e.g. `en`, `ko`, `ja`)
- **Date filtering** — only collect posts on or after a specific date
- **Sort control** — sort search results by `latest` or `top` engagement
- **No auth needed** — uses the public `https://public.api.bsky.app` AppView endpoint
- **Rate-limit safe** — built-in semaphore (3 concurrent) + request delays stay under the 3000 req/5 min limit

### Use Cases

- Social media monitoring and brand tracking
- Crypto / Web3 community sentiment analysis
- Research and journalism
- Competitive intelligence
- Trend detection and hashtag analysis

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `user_feed` |
| `searchQuery` | string | — | Keyword or hashtag (mode=search) |
| `userHandle` | string | — | Bluesky handle (mode=user\_feed), e.g. `bsky.app` |
| `maxPosts` | integer | 100 | Max posts to collect (up to 1000) |
| `lang` | string | — | Language filter, e.g. `en`, `ko` |
| `since` | string | — | Start date (YYYY-MM-DD) |
| `sort` | string | `latest` | Sort search: `latest` or `top` |

### Output

Each scraped post is stored in the dataset with the following fields:

```json
{
  "uri": "at://did:plc:abc123/.../xyz",
  "cid": "bafyrei...",
  "author_handle": "user.bsky.social",
  "author_display_name": "User Name",
  "text": "Post content here #bluesky",
  "created_at": "2026-09-01T12:00:00.000Z",
  "likes": 42,
  "reposts": 10,
  "replies": 5,
  "has_image": false,
  "urls": ["https://example.com/article"],
  "tags": ["bluesky", "web3"],
  "language": "en"
}
```

### Pricing (Pay-Per-Event)

| Event | Price |
|-------|-------|
| Actor start | $0.005 (one-time) |
| Per post scraped | $0.003 |

Scraping 100 posts costs approximately **$0.305** ($0.005 start + $0.30 posts).

### API Reference

This actor uses the public Bluesky AppView API:

- **Search**: `GET https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts`
- **User feed**: `GET https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed`

No authentication is required for public data. The public API allows ~3000 requests per 5 minutes.

### Examples

#### Search for crypto posts in English

```json
{
  "mode": "search",
  "searchQuery": "#crypto",
  "maxPosts": 200,
  "lang": "en",
  "sort": "top"
}
```

#### Scrape a user's recent posts

```json
{
  "mode": "user_feed",
  "userHandle": "jack.bsky.social",
  "maxPosts": 100
}
```

#### Search posts since a specific date

```json
{
  "mode": "search",
  "searchQuery": "ethereum ETF",
  "maxPosts": 500,
  "since": "2026-08-01",
  "sort": "latest"
}
```

### Related Keywords

Bluesky scraper, AT Protocol scraper, Bluesky posts API, Bluesky data extraction, social media scraper, decentralized social scraper, Bluesky search API, atproto scraper

# Actor input Schema

## `mode` (type: `string`):

Choose what to scrape: 'search' for keyword/hashtag search, 'user\_feed' for a specific user's posts.

## `searchQuery` (type: `string`):

Keyword or hashtag to search for (mode=search). Use '#hashtag' for hashtag searches. Example: 'bitcoin', '#crypto', 'AI news'.

## `userHandle` (type: `string`):

Bluesky user handle to scrape posts from (mode=user\_feed). Example: 'bsky.app', 'jack.bsky.social'.

## `maxPosts` (type: `integer`):

Maximum number of posts to collect. Max 1000.

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

Filter posts by language code (optional). Examples: 'en' for English, 'ko' for Korean, 'ja' for Japanese. Leave empty for all languages.

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

Only include posts created on or after this date (YYYY-MM-DD format). Optional.

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

Sort search results by: 'latest' (newest first) or 'top' (most engaged).

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "",
  "userHandle": "",
  "maxPosts": 100,
  "lang": "",
  "since": "",
  "sort": "latest"
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/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 = {}

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

```

## MCP server setup

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