# Bluesky Account Scraper (`xtracto/bluesky-account-scraper`) Actor

Get profile data from any public Bluesky account by handle or DID. Followers, following, posts count, bio, avatar, banner. HTTP-only, no login required.

- **URL**: https://apify.com/xtracto/bluesky-account-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Social media, 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 $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Account Scraper

Extract public profile data from any Bluesky account in bulk — display name, bio, avatar, banner, follower / following / posts counts, creation date, verification status, and account metadata — in a clean structured JSON output.

### Why use this actor

- **No account / no login required** — just give it a Bluesky handle, DID, or profile URL.
- **No API key needed** — returns the same data the Bluesky web app shows.
- **Rich detail** — display name, full bio, avatar, banner, follower / following / posts counts, account creation date, pinned post, verification status, and any moderation labels.
- **Identity-flexible input** — handle (`bsky.app`), DID (`did:plc:...`), profile URL (`https://bsky.app/profile/...`), or `@handle` — all accepted and auto-normalized.
- **Bulk input** — pass a list of handles in one run; one clean dataset row per profile.
- **Automatic retries** — transient failures retry with exponential backoff; profiles that genuinely don't exist surface as `_error: "not_found"` so you can triage failures.
- **Stable JSON output** suitable for pipelines, spreadsheets, and databases — every row carries `_input`, `_source`, `_scrapedAt` envelope fields so you can join results back to your input list.

### How it works

1. You provide a list of Bluesky handles (e.g. `bsky.app`), DIDs, or full profile URLs.
2. The actor fetches each profile and assembles a flat JSON record with the same fields the Bluesky web app displays.
3. Results stream into your dataset, ready to download as JSON, CSV, or Excel.

You do not need to manage scrapers, browsers, or rotating IPs — all handled internally.

### Input

```json
{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["DATACENTER"]
  }
}
```

| Field | Type | Description |
|---|---|---|
| `handles` | array | List of Bluesky accounts to scrape. Each item can be a handle (`bsky.app`), a DID (`did:plc:...`), a full profile URL (`https://bsky.app/profile/bsky.app`), or a handle with leading `@`. All formats are auto-normalized. |
| `proxyConfiguration` | object | Apify Proxy settings. Datacenter proxy is recommended — fast, cheap, and works reliably for Bluesky. |

### Output

Input: `bsky.app`

```json
{
  "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
  "handle": "bsky.app",
  "displayName": "Bluesky",
  "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka",
  "banner": "https://cdn.bsky.app/img/banner/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreichzyovokfzmymz36p5jibbjrhsur6n7hjnzxrpbt5jaydp2szvna",
  "description": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: support@bsky.app",
  "followersCount": 33315889,
  "followsCount": 5,
  "postsCount": 751,
  "createdAt": "2023-04-12T04:53:57.057Z",
  "indexedAt": "2025-10-27T21:05:26.152Z",
  "associated": {
    "lists": 10,
    "feedgens": 7,
    "starterPacks": 7,
    "labeler": false,
    "chat": { "allowIncoming": "none" },
    "activitySubscription": { "allowSubscriptions": "followers" }
  },
  "labels": [],
  "verification": {
    "verifications": [],
    "verifiedStatus": "none",
    "trustedVerifierStatus": "valid"
  },
  "pinnedPost": {
    "cid": "bafyreicnt42y6vo6pfpvyro234ac4o6ijug6adwwrh7awflgrqlt4zibxq",
    "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l"
  },
  "_input": "bsky.app",
  "_source": "S1-xrpc",
  "_scrapedAt": "2026-05-18T10:34:58.649119+00:00"
}
```

| Field | Type | Description |
|---|---|---|
| `_input` | string | The handle, DID, or URL exactly as you supplied it. Use this to join results back to your input list. |
| `_source` | string | Internal tag for the path used to fetch the record. `S1-xrpc` is the primary path; values starting with `S2-` would indicate a fallback was used. |
| `_scrapedAt` | string | ISO-8601 UTC timestamp when the record was scraped. |
| `did` | string | Bluesky's permanent decentralized identifier for the account (e.g. `did:plc:...`). Stable across handle changes — use this as your canonical key. |
| `handle` | string | Current handle (e.g. `bsky.app`, `alice.bsky.social`). Can change over time. |
| `displayName` | string | Free-text display name shown in the app. May contain emoji and Unicode. |
| `avatar` | string | URL of the profile picture. Empty string or omitted if the user has none. |
| `banner` | string | URL of the profile banner image. Omitted if the user has none. |
| `description` | string | Full bio / "About" text. May contain newlines and emoji. |
| `followersCount` | integer | Number of accounts following this profile. |
| `followsCount` | integer | Number of accounts this profile follows. |
| `postsCount` | integer | Total number of posts the account has published. |
| `createdAt` | string | ISO-8601 timestamp when the account was created. |
| `indexedAt` | string | ISO-8601 timestamp when Bluesky last re-indexed the profile record. |
| `associated` | object | Counts of artifacts the account owns: `lists`, `feedgens` (custom feeds), `starterPacks`, plus flags for `labeler`, chat permission (`chat.allowIncoming`), and activity-subscription policy. |
| `labels` | array | Moderation / self-applied labels attached to the account (e.g. `!no-unauthenticated`, `porn`, `nudity`). Empty array if none. |
| `verification` | object | Verification block: `verifiedStatus` (`none`, `valid`, `invalid`), `trustedVerifierStatus` (`none`, `valid`), and `verifications` array of issuers if the account is verified. |
| `pinnedPost` | object | The user's pinned post, with `cid` (content hash) and `uri` (`at://...` URI you can pass to the Bluesky Post Detail Scraper). Omitted if no post is pinned. |

#### Error envelope

Profiles that don't exist, are suspended, or fail to fetch return a structured error instead of crashing the run:

```json
{
  "_input": "this-handle-does-not-exist.bsky.social",
  "_error": "not_found",
  "_errorDetail": "Profile not found: this-handle-does-not-exist.bsky.social (NotFound)",
  "_source": "S1-xrpc",
  "_scrapedAt": "2026-05-18T10:35:02.114327+00:00"
}
```

Filter on `_error` to triage failed rows. Possible values: `not_found` (handle doesn't exist or is suspended) and `invalid_request` (malformed input or other request error).

### Pricing

This actor is billed per result: **$1.50 per 1,000 profiles**. Each successful profile = 1 result. Errors (not-found, suspended) are not billed.

### Other Sosmed Actors

| Platform | Actor | Best for |
|---|---|---|
| Bluesky | [Bluesky Account Posts Scraper](https://apify.com/xtracto/bluesky-account-posts-scraper) | All posts authored by a Bluesky account |
| Bluesky | [Bluesky Search Scraper](https://apify.com/xtracto/bluesky-search-scraper) | Keyword + hashtag search across Bluesky |
| Mastodon | [Mastodon Account Scraper](https://apify.com/xtracto/mastodon-account-scraper) | Profile data for any Mastodon handle |
| Threads | [Threads Account Scraper](https://apify.com/xtracto/threads-account-scraper) | Profile data for a Threads handle |
| Twitter / X | [X Account Scraper](https://apify.com/xtracto/x-account-scraper) | Profile + tweet counts for any handle |
| Instagram | [Instagram Account Scraper](https://apify.com/xtracto/instagram-account-scraper) | Bio, followers, post count |
| Quora | [Quora User Profile Scraper](https://apify.com/xtracto/quora-user-profile) | Display name, credential, follower stats |

Browse the full catalog at [apify.com/xtracto](https://apify.com/xtracto).

### Notes

- Counters (`followersCount`, `followsCount`, `postsCount`) are eventually-consistent and may lag the live network by a few minutes.
- Suspended, deleted, or never-existed handles return `{"_error": "not_found", "_input": "..."}` — filter on `_error` to triage failures.
- The `did` field is the most reliable identifier — handles can change but the DID is permanent. Use it as your join key.
- Custom-domain handles (e.g. `jay.bsky.team`, `alice.example.com`) work the same as `*.bsky.social` handles.
- For large jobs (>1k profiles), Apify Proxy is already enabled by default to keep throughput stable.
- This actor returns the raw Bluesky profile shape (no field renaming) so downstream code matches the official Bluesky schema 1:1.

# Actor input Schema

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

List of Bluesky accounts to scrape. Each item can be a handle (e.g. 'bsky.app'), a DID (e.g. 'did:plc:z72i7hdynmk6r22z27h6tvur'), a full profile URL (e.g. 'https://bsky.app/profile/bsky.app'), or a handle with leading '@' (e.g. '@jay.bsky.team'). All formats are auto-normalized.

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

Apify Proxy settings. Datacenter proxy is recommended for Bluesky — it is fast, cheap, and works reliably with the public Bluesky API.

## Actor input object example

```json
{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `handle` (type: `string`):

Account handle.

## `displayName` (type: `string`):

Display name of the account.

## `did` (type: `string`):

Decentralised identifier of the account.

## `followersCount` (type: `string`):

Follower count. Whole number.

## `followsCount` (type: `string`):

Number of accounts this account follows. Whole number.

## `postsCount` (type: `string`):

Number of posts by this account. Whole number.

## `description` (type: `string`):

Short description or summary.

## `avatar` (type: `string`):

Profile picture URL.

## `_input` (type: `string`):

The input value this row was produced from.

## `banner` (type: `string`):

Profile banner image URL.

## `createdAt` (type: `string`):

Creation timestamp, ISO 8601.

## `indexedAt` (type: `string`):

Timestamp the source indexed the item, ISO 8601.

## `associated` (type: `string`):

Associated as reported by the source.

## `labels` (type: `string`):

Labels.

## `verification` (type: `string`):

Verification as reported by the source.

## `pinnedPost` (type: `string`):

Pinned Post as reported by the source.

## `_source` (type: `string`):

Which extraction strategy produced the row.

## `_scrapedAt` (type: `string`):

UTC timestamp of the scrape, ISO 8601.

## `_error` (type: `string`):

Set only on diagnostic rows - why that target produced no data.

## `_errorDetail` (type: `string`):

Extra context for the error.

# 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 = {
    "handles": [
        "bsky.app",
        "jay.bsky.team"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/bluesky-account-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 = { "handles": [
        "bsky.app",
        "jay.bsky.team",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("xtracto/bluesky-account-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 '{
  "handles": [
    "bsky.app",
    "jay.bsky.team"
  ]
}' |
apify call xtracto/bluesky-account-scraper --silent --output-dataset

```

## MCP server setup

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