# Bluesky Scraper - Posts, Profiles, Followers, Search (`pshivam/bluesky-scraper`) Actor

Scrape Bluesky without login or API key: search posts by keyword, hashtag, author and date, profiles with followers and follows, post threads with replies, quotes and likes, custom feeds, lists and trending topics. Export to Excel, CSV or API.

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

## Pricing

from $0.30 / 1,000 records

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 Scraper - Posts, Profiles, Followers, Search

**Get Bluesky data as clean rows: post search by keyword, hashtag, author, language and date, profiles with followers and follows, a profile's posts, post threads with replies, quotes and likes, custom feeds, lists and trending topics. No login, no API key.** Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-15. Every release passes 90+ automated tests on real saved Bluesky answers.

### What can you use it for?

- **Monitor a brand, a keyword or a hashtag.** Search any text and get the newest posts first, with likes, reposts, replies, quotes, links and pictures. Schedule it and turn on `onlyNew` to pay only for new posts.
- **Track who shares your site.** Use `linkDomain` to get every post that links to a website, for example your own blog or a news site.
- **Research an audience or a topic.** Posts of a period with `dateFrom` and `dateTo`, top posts of the week, posts in one language, posts by one account.
- **Analyze accounts.** Profiles with followers, following, posts count, join date, verification and bio. Read the followers or follows of any account, each with its own counters, or find accounts by name.
- **Read a conversation.** A post link returns the post, its replies with their depth, the posts that quote it and the people who liked or reposted it.
- **Collect trends.** Trending topics with category, post count and top accounts, daily.
- **Feed AI and sentiment pipelines.** One clean row per post with text, language, hashtags and engagement counts.

### What data can you get?

Give search texts, hashtags, links or handles. Every row is one record, and the `type` field tells which.

| You give | You get |
|---|---|
| `searchQueries`, `hashtags` | Posts matching each text or tag, newest first (or the top posts) |
| `fromAuthor`, `mentioning`, `linkDomain`, `language`, `dateFrom`, `dateTo` | The same search narrowed down. Without a search text you get the newest 100 posts that match (all the posts of the account for `fromAuthor` alone) |
| `startUrls`: a profile link or handle | The profile, plus `maxPostsPerProfile` posts, `maxFollowersPerProfile` followers and `maxFollowingPerProfile` accounts it follows |
| `startUrls`: a post link | The post and its replies (100 unless you choose), plus quotes, likes and reposts when asked |
| `startUrls`: a feed link or a list link | The feed's posts or the list's members |
| `profileSearchQueries` | Accounts matching a name or text |
| `includeTrending` | The trending topics. An empty input also returns them |

#### Fields

Rows hold every field. A field that does not apply to the record's type, or that Bluesky does not show, is `null`.

##### Record

| Field | What it is |
|---|---|
| `type` | What the record is: post, profile or trend. |
| `id` | The record's own address: the post's AT URI (at://did:plc:.../app.bsky.feed.post/...), the profile's DID (did:plc:...) or the trending topic's code. |
| `url` | The page of the post or profile on bsky.app, or of the trending topic's feed. |
| `cid` | The content hash of the post's current version. |
| `text` | The post's text, or a trending topic's description. E-mail addresses and phone numbers are replaced by \[removed]; links stay. |
| `createdAt` | When the post was written, or the account was created, or the trend started (UTC). |
| `indexedAt` | When Bluesky indexed the post or profile. |
| `language` | The post's first language code, as the author set it. |
| `languages` | All language codes the author set. |
| `labels` | Labels Bluesky and its moderators put on the post or profile, for example porn, sexual, graphic-media. |

##### Post

| Field | What it is |
|---|---|
| `likes` | How many likes the post has. |
| `reposts` | How many times the post was reposted. |
| `replies` | How many replies the post has. |
| `quotes` | How many posts quote this post. |
| `bookmarks` | How many people bookmarked the post. |
| `hashtags` | Hashtags of the post, without the #. |
| `mentions` | DIDs of the accounts the post mentions. |
| `links` | Every link in the post: the ones in the text and the link card. |
| `embedType` | What the post carries: images, video, link, quote, quote+images, quote+video, quote+link or other. Empty for a text-only post. |
| `imageUrls` | Full-size picture addresses of the post. |
| `imageAlts` | The alternative text of each picture, in the same order (empty text when the author wrote none). |
| `videoUrl` | The post's video as an HLS playlist (.m3u8). |
| `videoThumbnail` | The video's still picture. |
| `linkUrl` | The address of the post's link card. |
| `linkTitle` | The link card's title. |
| `linkDescription` | The link card's description. |
| `linkThumbnail` | The link card's picture. |

##### Quotes, replies and reposts

| Field | What it is |
|---|---|
| `quotedUri` | The AT URI of the post this post quotes. |
| `quotedText` | The text of the quoted post. |
| `quotedAuthorHandle` | The handle of the quoted post's author. |
| `replyToUri` | For a reply, the AT URI of the post it answers. |
| `rootUri` | For a reply, the AT URI of the first post of the conversation. |
| `isReply` | True when the post is a reply. |
| `depth` | In a post's replies: 0 for the post, 1 for a direct reply, 2 for a reply to a reply, and so on. |
| `isRepost` | True when the row is a repost in a profile's posts (the post is somebody else's, repostedBy tells who shared it). |
| `repostedBy` | The handle of the profile that reposted the post. |
| `repostedAt` | When the repost was made. |

##### Author or profile

| Field | What it is |
|---|---|
| `authorDid` | The DID (permanent id) of the post's author, or of the profile. |
| `authorHandle` | The author's or profile's handle, for example jay.bsky.team. |
| `authorName` | The author's or profile's display name. |
| `authorAvatar` | The author's or profile's picture. |
| `authorVerified` | True when Bluesky shows a verified check for the author or profile. |

##### Profile only

| Field | What it is |
|---|---|
| `bio` | The profile's text. E-mail addresses and phone numbers are replaced by \[removed]; links stay. |
| `banner` | The profile's banner picture. |
| `pronouns` | The pronouns the profile shows. |
| `followers` | How many accounts follow the profile. |
| `following` | How many accounts the profile follows. |
| `postsCount` | How many posts the profile wrote, or how many posts a trending topic has. |
| `verifiedBy` | Handles of the accounts that verified the profile. |
| `pinnedPostUri` | The AT URI of the profile's pinned post. |
| `listsCount` | How many lists the profile made. |
| `feedsCount` | How many custom feeds the profile made. |
| `starterPacksCount` | How many starter packs the profile made. |

##### Trending topics

| Field | What it is |
|---|---|
| `title` | A trending topic's name. |
| `category` | A trending topic's category, for example politics or sports. |
| `status` | A trending topic's status, for example trending. |
| `rank` | The trending topic's place in the list. |
| `topAccounts` | Handles of the accounts that post most in a trending topic. |

##### Where it came from

| Field | What it is |
|---|---|
| `relation` | For posts and profiles that are not the main thing asked for: profile, follower, following, liker, reposter, list member, search result, reply or quote. |
| `foundVia` | How the Actor reached the record: search, profile link, profile posts, followers, following, post link, post replies, post quotes, post likes, post reposts, feed, list members, profile search or trending. |
| `foundFrom` | The search text, handle, post, feed or list that led to the record. |
| `position` | The record's place in that search, list or thread. |
| `totalResults` | How many posts the search holds, how many replies the post has, or how many trending topics were read. |
| `sourceUrl` | The Bluesky address the record was read from. |
| `scrapedAt` | When the record was collected (UTC). |

#### Example results

Post from a search:

```json
{"type": "post", "id": "at://did:plc:42nygfl4lwieikb6xaqmxzlg/app.bsky.feed.post/3n2cp4fmym22a", "url": "https://bsky.app/profile/benborges.xyz/post/3n2cp4fmym22a", "cid": "bafyreidlmtgib7e6a6rtyp2sslkoz3aq56mgwnohoo3bodi5dtxmyw3w5m", "text": "Fixing a lot of bugs lately on osintukraine.com and improving things #osint #dev #nextjs #python", "createdAt": "2026-11-14T23:54:42.281Z", "indexedAt": "2026-11-14T23:54:44.146Z", "language": "en", "languages": ["en"], "likes": 8, "reposts": 3, "replies": 0, "quotes": 0, "bookmarks": 1, "hashtags": ["osint", "dev", "nextjs", "python"], "links": ["https://osintukraine.com"], "embedType": "link", "linkUrl": "https://osintukraine.com", "linkTitle": "Browse Messages - OSINTukraine", "linkDescription": "Archive and analyze Telegram intelligence with AI-powered topic classification and importance analysis", "linkThumbnail": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:42nygfl4lwieikb6xaqmxzlg/bafkreibw7ilfscdw2mshjitm24mns6jdzywchecgqd36t2kvxoz24dpawq", "isReply": false, "isRepost": false, "authorDid": "did:plc:42nygfl4lwieikb6xaqmxzlg", "authorHandle": "benborges.xyz", "authorName": "BenB 🇺🇦", "authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:42nygfl4lwieikb6xaqmxzlg/bafkreibwuvrurk5dbzknmddfoj353ut4azhdlilwduvdqp4hwoyf4tiary", "foundVia": "search", "foundFrom": "python", "position": 3, "totalResults": 750, "sourceUrl": "https://api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=python&until=2026-11-15T00%3A00%3A00.000Z&sort=latest&limit=100", "scrapedAt": "2026-11-15T16:00:06Z"}
```

Reply in a post's thread:

```json
{"type": "post", "id": "at://did:plc:zgbbiafty3oncxvlz3tns4mo/app.bsky.feed.post/3mz2df3dcjk2f", "url": "https://bsky.app/profile/sireuchre.bsky.social/post/3mz2df3dcjk2f", "cid": "bafyreihc2ic2iru6lmhcjaqvoo57tbuxy7jnwuaombnvr2i73skc7iuxme", "text": "Just 2 weeks ago, we lost Batai.", "createdAt": "2026-10-29T22:38:19.031Z", "indexedAt": "2026-10-29T22:38:20.984Z", "language": "en", "languages": ["en"], "likes": 3, "reposts": 0, "replies": 0, "quotes": 0, "bookmarks": 0, "replyToUri": "at://did:plc:zo7ciw4ut26brdyp6eislcqv/app.bsky.feed.post/3mz27cm7yuc2c", "rootUri": "at://did:plc:fgxcknpm4lhmzizgyqq73bo6/app.bsky.feed.post/3mz263w23ik2f", "isReply": true, "depth": 2, "isRepost": false, "authorDid": "did:plc:zgbbiafty3oncxvlz3tns4mo", "authorHandle": "sireuchre.bsky.social", "authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:zgbbiafty3oncxvlz3tns4mo/bafkreifsqfatldc5styjzea7p42llhe5pxcduzh46kjxtlmtph7zq54vw4", "foundVia": "post replies", "foundFrom": "at://did:plc:fgxcknpm4lhmzizgyqq73bo6/app.bsky.feed.post/3mz263w23ik2f", "position": 1, "totalResults": 777, "relation": "reply", "sourceUrl": "https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=...&depth=20", "scrapedAt": "2026-11-15T16:00:06Z"}
```

Repost in a profile's posts:

```json
{"type": "post", "id": "at://did:plc:aqke2etpz2y6eo6thaooqisi/app.bsky.feed.post/3mzwfubmgms2o", "url": "https://bsky.app/profile/djp1974.bsky.social/post/3mzwfubmgms2o", "cid": "bafyreiegpnhvnfvonxpkinfdrla2hqzuwa4srh7nvynvw43kkmtscjbwwi", "text": "Happy circulatory system walking through the kitchen day to all who celebrate", "createdAt": "2026-11-10T02:37:09.093Z", "indexedAt": "2026-11-10T02:37:14.074Z", "language": "en", "languages": ["en"], "likes": 20676, "reposts": 6969, "replies": 197, "quotes": 195, "bookmarks": 545, "embedType": "images", "imageUrls": ["https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:aqke2etpz2y6eo6thaooqisi/bafkreig547krniyz4uyxetlw3ckjdcqchzawgwd7auvrcgw54w3w72ehky"], "imageAlts": ["From ‘The Watchmen’"], "isReply": false, "isRepost": true, "repostedBy": "bsky.app", "repostedAt": "2026-11-10T19:30:13.177Z", "authorDid": "did:plc:aqke2etpz2y6eo6thaooqisi", "authorHandle": "djp1974.bsky.social", "authorName": "Dr. David Pecotić", "authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:aqke2etpz2y6eo6thaooqisi/bafkreiddrttzep4ygvkajtmxmydjbqe2l7aglqxvnqshvuqjfbephdznyy", "foundVia": "profile posts", "foundFrom": "bsky.app", "position": 5, "sourceUrl": "https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=did%3Aplc%3Az72i7hdynmk6r22z27h6tvur&filter=posts_no_replies&limit=100", "scrapedAt": "2026-11-15T16:00:06Z"}
```

Profile:

```json
{"type": "profile", "id": "did:plc:z72i7hdynmk6r22z27h6tvur", "url": "https://bsky.app/profile/bsky.app", "createdAt": "2023-04-12T04:53:57.057Z", "indexedAt": "2026-11-04T15:41:10.973Z", "authorDid": "did:plc:z72i7hdynmk6r22z27h6tvur", "authorHandle": "bsky.app", "authorName": "Bluesky", "authorAvatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreihwihm6kpd6zuwhhlro75p5qks5qtrcu55jp3gddbfjsieiv7wuka", "authorVerified": false, "bio": "official Bluesky account (check username👆)\n\nBugs, feature requests, feedback: [removed]", "banner": "https://cdn.bsky.app/img/banner/plain/did:plc:z72i7hdynmk6r22z27h6tvur/bafkreichzyovokfzmymz36p5jibbjrhsur6n7hjnzxrpbt5jaydp2szvna", "followers": 35678969, "following": 43, "postsCount": 923, "pinnedPostUri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l", "listsCount": 26, "feedsCount": 7, "starterPacksCount": 23, "relation": "profile", "foundVia": "profile link", "foundFrom": "bsky.app", "sourceUrl": "https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=bsky.app", "scrapedAt": "2026-11-15T16:00:06Z"}
```

Trending topic:

```json
{"type": "trend", "id": "402967c5c875", "url": "https://bsky.app/profile/did:plc:qrz3lhbyuxbeilrc6nekdqme/feed/402967c5c875", "text": "Air Space Intelligence won an $875 million deal after its PAC donated to Michael Alfonso's campaign.", "createdAt": "2026-11-14T17:34:20.171643+00:00", "postsCount": 725, "title": "FAA contract and Duffy's son-in-law", "category": "politics", "status": "trending", "rank": 1, "topAccounts": ["gtconway.bsky.social", "sundaedivine.lol", "bagleycartoons.bsky.social"], "foundVia": "trending", "foundFrom": "trending topics", "position": 1, "totalResults": 25, "sourceUrl": "https://public.api.bsky.app/xrpc/app.bsky.unspecced.getTrends?limit=25", "scrapedAt": "2026-11-15T16:00:06Z"}
```

### Input

| Input | What it does |
|---|---|
| `searchQueries`, `hashtags` | Search texts and hashtags, one per line |
| `searchSort` | Newest first, or the top posts of the period |
| `dateFrom`, `dateTo` | Only posts from this date or time, up to this date or time (UTC) |
| `language`, `fromAuthor`, `mentioning`, `linkDomain` | Only posts in a language, by an account, mentioning an account or linking to a website |
| `startUrls` | Profile links and handles, post links, custom feed links and list links |
| `profileSearchQueries` | Find accounts by name or text |
| `includeTrending` | Also read the trending topics |
| `profilePostsType`, `maxPostsPerProfile` | Which posts and how many to read per profile |
| `maxFollowersPerProfile`, `maxFollowingPerProfile` | How many followers and followed accounts to read per profile |
| `maxRepliesPerPost`, `maxQuotesPerPost`, `maxLikesPerPost`, `maxRepostsPerPost` | How many replies, quotes, likes and reposts to read per post link |
| `maxItemsPerSearch` | Stop each search, feed, list and profile search after this many records |
| `onlyNew` | Skip records that earlier runs of the same input returned |
| `maxItems` | Stop after this many records in total |
| `maxConcurrency` | Requests at the same time |
| `secondsBetweenRequests` | Pause between requests |

### How much does it cost?

You pay per record: a post, a profile or a trending topic each count as one. There is no start fee.

| Plan | Price per 1,000 records |
|---|---|
| Free | $0.45 |
| Bronze | $0.40 |
| Silver | $0.35 |
| Gold | $0.30 |

- 1,000 posts cost about $0.45.
- 10,000 followers with their counters cost about $4.50.
- Use `maxItems` to cap the cost of a run, and `onlyNew` to pay only for new records on scheduled runs.

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/bluesky-scraper").call(run_input={
    "searchQueries": ["python"],
    "language": "en",
    "dateFrom": "2026-11-01",
    "maxItemsPerSearch": 1000,
    "maxItems": 1000,
})
for record in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(record["authorHandle"], record["likes"], record["text"])
```

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/bluesky-scraper` and an input like this:

```json
{"searchQueries": ["election"], "linkDomain": "nytimes.com", "maxItems": 200}
```

#### Watch a keyword every day

Schedule the Actor daily with your `searchQueries` and `onlyNew` turned on. Each run returns only the posts that earlier runs did not return, so you pay for new posts only.

### Good to know

- **No login.** The Actor reads what Bluesky shows every visitor. Accounts that ask not to be shown to logged-out visitors (about 1 post in 7 in a typical search) are left out, and the run message says how many.
- **Search walks back in time.** Bluesky's public search returns 100 posts per request and refuses to page further, so the Actor asks for the next 100 older posts again and again until it has what you asked for or the posts end. Use `dateFrom` and `dateTo` to bound the search.
- **A search text is needed to go back in time.** Bluesky takes dates only together with a search text or hashtag. Filters alone (`linkDomain`, `mentioning`, `language`) return the newest 100 matching posts per run; schedule the run with `onlyNew` to collect more over time, or add a search text.
- **Top posts** are the best 100 of the period. Asking for more top posts splits the period into equal slices and returns the best 100 of each.
- **A post's replies** come from Bluesky's thread view, which shows up to a few hundred of the most relevant replies of a very popular post, not always every one.
- **Likes and reposts** return the profiles of the people, with their counters. The time of the like is not shown.
- **Counters are as of the run.** Likes, reposts and followers change.
- **Bluesky can refuse requests.** The Actor waits, slows down and switches to Apify Proxy.
- **Independent tool.** Not affiliated with or endorsed by Bluesky. The Actor reads public data that Bluesky shows to every visitor. Check Bluesky's terms before you redistribute the data.

### FAQ

#### How do I search Bluesky posts?

Put a text in `searchQueries`, for example `python`, or a hashtag such as `#python`, and raise `maxItemsPerSearch`. Add `language`, `dateFrom` and `dateTo` to narrow it down.

#### How do I get all the posts of one account?

Put the handle in `fromAuthor` and leave `searchQueries` empty. You get the account's posts and reposts, newest first, as many as `maxItemsPerSearch`. Put the handle in `startUrls` and set `maxPostsPerProfile` to get the profile row as well.

#### How do I get the followers of an account?

Put the handle or profile link in `startUrls` and set `maxFollowersPerProfile`. Each follower comes as a profile row with followers, following and posts count.

#### How do I get the replies to a post?

Paste the post link in `startUrls`. It returns the post and 100 replies. Set `maxRepliesPerPost`, `maxQuotesPerPost`, `maxLikesPerPost` or `maxRepostsPerPost` to choose.

#### Can I find the posts that link to my website?

Yes. Set `linkDomain` to your domain, for example `example.com`. You get the newest 100 posts that link to it. Add a search text, for example your site's name, to go back further. Schedule the run daily with `onlyNew` to collect all of them over time.

#### Why are some posts missing from my search?

Accounts can ask Bluesky not to show their profile and posts to logged-out visitors. The Actor respects that and leaves them out.

#### Do I need a Bluesky account or an API key?

No. The Actor never logs in.

#### How do I get new records only?

Turn on `onlyNew` and run the same input again later. Records that earlier runs returned are skipped and not charged.

#### Is it legal to scrape Bluesky?

The Actor reads public data that Bluesky shows without login. You are responsible for how you use the data. Check Bluesky's terms before you redistribute it.

# Actor input Schema

## `searchQueries` (type: `array`):

What to search for in posts, one per line: words, a phrase, or a hashtag such as #python. Each text returns the newest posts first.

## `hashtags` (type: `array`):

Hashtags to search, one per line, with or without the #. Each returns the newest posts that carry the tag, going back as far as you ask.

## `searchSort` (type: `string`):

Newest first walks back in time without a limit. Top posts returns the best 100 posts of the period (and 100 more for each further 100 you ask for, from equal time slices).

## `dateFrom` (type: `string`):

Only posts from this date or time on, for example 2026-11-01 or 2026-11-01T08:00:00Z (UTC). Needs a search text or hashtag. Empty means no start.

## `dateTo` (type: `string`):

Only posts up to this date (the whole day counts) or time, for example 2026-11-14. Needs a search text or hashtag. Empty means now.

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

Only posts in this language, as a two-letter code such as en, ja, pt or de. With no search text you get the newest 100 such posts.

## `fromAuthor` (type: `string`):

Only posts written by this account, for example jay.bsky.team. With no search text you get the account's posts and reposts, page after page.

## `mentioning` (type: `string`):

Only posts that mention this account, for example bsky.app. With no search text you get the newest 100 such posts.

## `linkDomain` (type: `string`):

Only posts that link to this website, for example nytimes.com. With no search text you get the newest 100 such posts; add a search text to go back further.

## `startUrls` (type: `array`):

One per line: a profile (bsky.app/profile/bsky.app or the handle jay.bsky.team), a post link (its replies are read), a custom feed link (bsky.app/profile/bsky.app/feed/whats-hot) or a list link (bsky.app/profile/<handle>/lists/<id>).

## `profileSearchQueries` (type: `array`):

Find accounts by name, handle or profile text, one search per line. You get profiles with followers, following and posts count.

## `includeTrending` (type: `boolean`):

Also read Bluesky's trending topics with their category, post count and top accounts.

## `profilePostsType` (type: `string`):

Which posts of a profile are read when 'Posts per profile' is above 0.

## `maxPostsPerProfile` (type: `integer`):

Also read this many of the newest posts of every profile in 'Links and handles'. 0 means the profile only.

## `maxFollowersPerProfile` (type: `integer`):

Also read this many followers of every profile, each as a profile row with its own counters. 0 means none.

## `maxFollowingPerProfile` (type: `integer`):

Also read this many accounts that every profile follows. 0 means none.

## `maxRepliesPerPost` (type: `integer`):

Also read this many replies of every post link, in reading order with their depth. A post link alone reads 100.

## `maxQuotesPerPost` (type: `integer`):

Also read this many posts that quote every post link. 0 means none.

## `maxLikesPerPost` (type: `integer`):

Also read the profiles of this many people who liked every post link. 0 means none.

## `maxRepostsPerPost` (type: `integer`):

Also read the profiles of this many people who reposted every post link. 0 means none.

## `maxItemsPerSearch` (type: `integer`):

Stop each search text, hashtag, profile search, feed and list after this many records.

## `onlyNew` (type: `boolean`):

Skip records that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'bluesky-scraper-only-new'.

## `maxItems` (type: `integer`):

Stop after this many records in total (posts, profiles and trends all count). You are charged per record.

## `maxConcurrency` (type: `integer`):

How many requests run in parallel. Raise it for many profiles or posts.

## `secondsBetweenRequests` (type: `number`):

Pause between requests. After a refusal the Actor doubles the pause and switches to Apify Proxy when it can.

## Actor input object example

```json
{
  "searchQueries": [
    "python"
  ],
  "searchSort": "latest",
  "includeTrending": false,
  "profilePostsType": "posts",
  "maxPostsPerProfile": 0,
  "maxFollowersPerProfile": 0,
  "maxFollowingPerProfile": 0,
  "maxRepliesPerPost": 0,
  "maxQuotesPerPost": 0,
  "maxLikesPerPost": 0,
  "maxRepostsPerPost": 0,
  "maxItemsPerSearch": 100,
  "onlyNew": false,
  "maxItems": 100,
  "maxConcurrency": 5,
  "secondsBetweenRequests": 0.15
}
```

# Actor output Schema

## `posts` (type: `string`):

Posts as a table.

## `profiles` (type: `string`):

Profiles as a table.

## `trends` (type: `string`):

Trending topics as a table.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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 = {
    "searchQueries": [
        "python"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/bluesky-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 = {
    "searchQueries": ["python"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/bluesky-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 '{
  "searchQueries": [
    "python"
  ],
  "maxItems": 100
}' |
apify call pshivam/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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