# Bluesky Posts + Profiles Scraper (`claudethegoat/bluesky-posts-profiles-scraper`) Actor

Extract posts and profiles from Bluesky (bsky.app) via the official public AT Protocol API. Search by keyword, hashtag, or handle. No credentials required — public data only.

- **URL**: https://apify.com/claudethegoat/bluesky-posts-profiles-scraper.md
- **Developed by:** [Manik Anand](https://apify.com/claudethegoat) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 71.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 result 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 + Profiles Scraper

Extract posts and profiles from **Bluesky** (bsky.app) using the official **AT Protocol public API** — no account, no credentials, no proxy spend required.

### What it does

- **Search posts** by keyword, hashtag, or phrase — with optional date range, language filter, and `latest`/`top` sort
- **Search profiles** by keyword — find accounts discussing a topic
- **Bulk profile lookup** — fetch structured data for a list of known @handles
- **Unified output** — posts and profiles in one dataset with consistent field names

### Why use this actor

| Competitor actor | Problem | This actor |
|---|---|---|
| lexis-solutions/bluesky-users-scraper (91 users) | Profiles only, no posts | Posts + profiles unified |
| aurumworks/bluesky-scraper | Deprecated | Active maintenance |
| Others | Missing date filter | `since` + `until` supported |

Bluesky reached **41M users in 2026** (+302% YoY). It is the fastest-growing alternative social network and increasingly important for brand monitoring, academic research, and AI data pipelines.

### Output fields

#### Posts

| Field | Type | Description |
|---|---|---|
| `uri` | string | AT Protocol post URI |
| `url` | string | bsky.app permalink |
| `text` | string | Post body text |
| `created_at` | string | ISO 8601 creation timestamp |
| `author_handle` | string | @handle of the author |
| `author_display_name` | string | Display name |
| `author_did` | string | Decentralized identifier |
| `like_count` | integer | Number of likes |
| `reply_count` | integer | Number of replies |
| `repost_count` | integer | Number of reposts |
| `quote_count` | integer | Number of quote posts |
| `has_images` | boolean | Whether post contains images |
| `image_urls` | array | Full-size image URLs |
| `language` | string | BCP-47 language code |
| `tags` | array | Hashtag strings |

#### Profiles

| Field | Type | Description |
|---|---|---|
| `did` | string | Decentralized identifier |
| `handle` | string | @handle |
| `url` | string | bsky.app profile link |
| `display_name` | string | Display name |
| `description` | string | Bio text |
| `avatar_url` | string | Avatar image URL |
| `followers_count` | integer | Follower count |
| `follows_count` | integer | Following count |
| `posts_count` | integer | Total posts |

### Usage example

```json
{
  "mode": "posts",
  "searchTerms": ["AI tools", "#buildinpublic"],
  "maxResultsPerTerm": 1000,
  "sortPosts": "latest",
  "language": "en",
  "since": "2024-01-01T00:00:00Z"
}
````

### Pricing

**Pay per event:** $0.003 per result (post or profile).

Example: 10,000 posts ≈ **$30**.

### Technical notes

- Uses `api.bsky.app` — the Bluesky AppView public endpoint (the `public.api.bsky.app` host 403s on post search as of 2026-06)
- Zero proxy cost (AT Protocol is designed for logged-out public access)
- Polite rate limiting (~6 req/sec)
- Automatically stops when the user's spending limit is reached
- Charge limit is respected per result — no overrun

### Common use cases

- **Brand monitoring** — track mentions of your product or company on Bluesky
- **Academic research** — collect public discourse data for NLP analysis
- **RAG pipelines** — feed fresh Bluesky content into retrieval-augmented AI systems
- **Competitive intelligence** — monitor hashtags and topics in your industry
- **Influencer discovery** — find and profile accounts in a niche
- **Sentiment analysis** — classify public opinion on trending topics

### Data compliance

This actor accesses only **public, logged-out data** through Bluesky's official public API. No login credentials are used. Suitable for research and business use under Bluesky's standard terms of service for public data.

# Actor input Schema

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

What to scrape: posts only, profiles only, or both.

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

Keywords, hashtags, or phrases to search. Each term runs as a separate query.

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

List of @handles or DIDs to fetch profiles for directly (bypasses keyword search).

## `maxResultsPerTerm` (type: `integer`):

Maximum number of results to return per search term. Higher values increase cost and run time.

## `sortPosts` (type: `string`):

Sort order for post results. 'latest' returns newest first; 'top' returns most-liked first.

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

BCP-47 language code to filter posts (e.g. 'en', 'es', 'ja'). Leave blank for all languages.

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

Return only posts created after this ISO 8601 timestamp (e.g. 2024-01-01T00:00:00Z).

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

Return only posts created before this ISO 8601 timestamp (e.g. 2024-12-31T23:59:59Z).

## Actor input object example

```json
{
  "mode": "posts",
  "searchTerms": [
    "AI tools",
    "#buildinpublic"
  ],
  "handles": [],
  "maxResultsPerTerm": 500,
  "sortPosts": "latest"
}
```

# 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": [
        "AI tools",
        "#buildinpublic"
    ],
    "handles": [],
    "language": "",
    "since": "",
    "until": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("claudethegoat/bluesky-posts-profiles-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": [
        "AI tools",
        "#buildinpublic",
    ],
    "handles": [],
    "language": "",
    "since": "",
    "until": "",
}

# Run the Actor and wait for it to finish
run = client.actor("claudethegoat/bluesky-posts-profiles-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "AI tools",
    "#buildinpublic"
  ],
  "handles": [],
  "language": "",
  "since": "",
  "until": ""
}' |
apify call claudethegoat/bluesky-posts-profiles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=claudethegoat/bluesky-posts-profiles-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bluesky Posts + Profiles Scraper",
        "description": "Extract posts and profiles from Bluesky (bsky.app) via the official public AT Protocol API. Search by keyword, hashtag, or handle. No credentials required — public data only.",
        "version": "0.1",
        "x-build-id": "Okqf7UPyjPbmI5ixI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/claudethegoat~bluesky-posts-profiles-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-claudethegoat-bluesky-posts-profiles-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/claudethegoat~bluesky-posts-profiles-scraper/runs": {
            "post": {
                "operationId": "runs-sync-claudethegoat-bluesky-posts-profiles-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/claudethegoat~bluesky-posts-profiles-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-claudethegoat-bluesky-posts-profiles-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "posts",
                            "profiles",
                            "both"
                        ],
                        "type": "string",
                        "description": "What to scrape: posts only, profiles only, or both.",
                        "default": "posts"
                    },
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Keywords, hashtags, or phrases to search. Each term runs as a separate query.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "handles": {
                        "title": "Bluesky handles (profiles mode)",
                        "type": "array",
                        "description": "List of @handles or DIDs to fetch profiles for directly (bypasses keyword search).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResultsPerTerm": {
                        "title": "Max results per search term",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of results to return per search term. Higher values increase cost and run time.",
                        "default": 500
                    },
                    "sortPosts": {
                        "title": "Sort posts by",
                        "enum": [
                            "latest",
                            "top"
                        ],
                        "type": "string",
                        "description": "Sort order for post results. 'latest' returns newest first; 'top' returns most-liked first.",
                        "default": "latest"
                    },
                    "language": {
                        "title": "Language filter (posts only)",
                        "type": "string",
                        "description": "BCP-47 language code to filter posts (e.g. 'en', 'es', 'ja'). Leave blank for all languages."
                    },
                    "since": {
                        "title": "Since date (posts only)",
                        "type": "string",
                        "description": "Return only posts created after this ISO 8601 timestamp (e.g. 2024-01-01T00:00:00Z)."
                    },
                    "until": {
                        "title": "Until date (posts only)",
                        "type": "string",
                        "description": "Return only posts created before this ISO 8601 timestamp (e.g. 2024-12-31T23:59:59Z)."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
