# Bluesky Posts & Mentions Scraper (`dataji/bluesky-scraper`) Actor

Scrape Bluesky posts by keyword, hashtag or mention, plus profiles, account posts and reply threads, without logging in. Likes, reposts, replies, quotes, hashtags, links, images and video for each post. Only-new-posts mode for brand monitoring. Error rows are free.

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

## Pricing

from $0.50 / 1,000 posts

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 & Mentions Scraper

Scrape **Bluesky posts by keyword, hashtag or mention**, plus **profiles, account posts and reply threads**, with no login and no Bluesky account. Each post comes as one clean row with its text, likes, reposts, replies, quotes, hashtags, mentions, links, images, video and author. Turn on **Only new posts** and schedule the actor to follow a brand, topic or competitor on Bluesky over time.

**You only pay for posts and profiles that are delivered.** Inputs that are invalid, don't exist or could not be loaded come back as error rows that cost nothing.

### What can this Bluesky scraper do?

- 🔎 **Search posts** by keyword, `#hashtag`, `"exact phrase"`, `from:handle`, `mentions:handle` or `domain:site.com`, newest or top first, with an optional **language** and **date window** (since / until)
- 👤 Get **profiles**: name, bio, avatar, banner, **followers, following and post counts**, verified badge, join date
- 📰 Get an **account's latest posts** (and reposts, marked with who reposted them), optionally with its replies
- 💬 Get a **post and its replies** from a post link: direct replies first, then replies to replies
- 📊 Every post has **likes, reposts, replies, quotes and bookmarks**, plus **hashtags, mentions, links, images (with alt text), video and link cards**
- 🧑‍🤝‍🧑 Optionally add **author follower counts** to every post, to find the voices that matter in a search
- 🔁 **Only new posts**: remembers what earlier runs delivered, so scheduled runs give you just the new posts
- 🆓 **Failed inputs are free**: invalid, not found and blocked inputs return a free error row with the reason
- 📦 Export to **JSON, CSV, Excel, XML or HTML**, or pull the data through the Apify API

### Why use this scraper?

- **Fair billing.** You pay one `post` event per post row and one `profile` event per profile row. Error rows are free, and a post found by two of your inputs is delivered (and charged) once.
- **Built for monitoring.** Run it every hour or every day with **Only new posts** to track mentions of your brand, a hashtag or a set of accounts without paying twice for the same post.
- **Every column, every time.** Every row has the same keys, with `null` for values that don't apply, so CSV and Excel exports always line up. `recordType` tells posts, profiles and errors apart.
- **Respectful by design.** It uses only Bluesky's public, logged-out API, keeps request rates far below Bluesky's limits, and leaves out accounts that asked Bluesky not to be shown to logged-out visitors.

### How to scrape Bluesky

1. Click **Try for free**.
2. Enter one or more **searches**, **handles** or **post links** (any mix).
3. Choose how many posts per account and replies per post you want.
4. Click **Start** and download your data when the run finishes. To monitor, turn on **Only new posts** and add a **schedule**.

### Input

| Field | Description |
|---|---|
| **Search posts** | Keywords, hashtags or phrases. Bluesky's search syntax works: `"exact phrase"`, `#hashtag`, `from:nytimes.com`, `mentions:nytimes.com`, `domain:nytimes.com`. Up to 100 posts per search (see **Limits**). |
| **Search order** | `latest` (default) or `top`. |
| **Search language** | Only posts in this language: `en`, `de`, `ja`, `pt-BR`... |
| **Search posts since** | Only posts from this date on (`YYYY-MM-DD`, UTC). |
| **Search posts until** | Only posts up to and including this date (`YYYY-MM-DD`, UTC). Must be after **Search posts since**. |
| **Handles or profile links** | `nytimes.com`, `@name.bsky.social`, `did:plc:...` or `https://bsky.app/profile/nytimes.com`. A name without a dot means `name.bsky.social`. |
| **Posts per account** | Latest posts per account. Default 50, `0` = profile only. |
| **Include the account's replies** | Also get the account's replies to other people. Off by default. |
| **Post links** | `https://bsky.app/profile/<handle>/post/<id>` or `at://` post URIs. Each gives the post and its replies. |
| **Replies per post** | Default 100, `0` = only the post. |
| **Add author follower counts** | Adds followers, following and post counts to each post's author (one extra request per 25 authors). |
| **Only new posts** | Skip posts that earlier runs with this option delivered for the same search, account or post. |
| **Max rows** | Stop after this many post and profile rows (default 1,000). |
| **Max concurrency** | Inputs scraped at the same time (default 3, at most 5). |
| **Proxy configuration** | Not needed for Bluesky's public API, so off by default. |

Example input:

```json
{
    "searchQueries": ["#photography", "\"climate change\"", "mentions:nytimes.com"],
    "searchSort": "latest",
    "searchLanguage": "en",
    "searchSince": "2026-11-01",
    "searchUntil": "2026-11-15",
    "handles": ["nytimes.com", "https://bsky.app/profile/bsky.app"],
    "maxPostsPerHandle": 50,
    "postUrls": ["https://bsky.app/profile/bsky.app/post/3mxhdhodv222n"],
    "maxRepliesPerPost": 100,
    "includeAuthorProfiles": true,
    "onlyNewPosts": false,
    "maxItems": 1000
}
```

### Output example

A post row:

```json
{
    "recordType": "post",
    "url": "https://bsky.app/profile/nytimes.com/post/3n2kgfmqsm62m",
    "uri": "at://did:plc:eclio37ymobqex2ncko63h4r/app.bsky.feed.post/3n2kgfmqsm62m",
    "cid": "bafyreicqpyrwiqpbhehtbodzgkg3tffr5q4qmalle66a6td57dud7lqg2q",
    "text": "Breaking News: The White House has pulled its nomination of Dr. Heidi Overton as FDA commissioner on the eve of a crucial Senate panel vote.",
    "langs": [],
    "likeCount": 11,
    "repostCount": 4,
    "replyCount": 0,
    "quoteCount": 2,
    "bookmarkCount": 1,
    "hashtags": [],
    "mentions": [],
    "links": [],
    "images": [],
    "video": null,
    "externalLink": {
        "uri": "https://nyti.ms/4fcUbvw",
        "title": "White House Withdraws Nomination of Heidi Overton to Be F.D.A. Commissioner",
        "description": "The Senate health committee was scheduled to vote on her nomination Wednesday morning, but it became increasingly clear that she did not have enough support.",
        "thumbnailUrl": "https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:eclio37ymobqex2ncko63h4r/bafkreid6u7zqmpgbkkjbzfvv6rfae6psaravcgf5uy4s7kfoicvo6vaxwq"
    },
    "quotedPostUri": null,
    "isReply": false,
    "replyParentUri": null,
    "replyRootUri": null,
    "isRepost": false,
    "repostedBy": null,
    "repostedAt": null,
    "author": {
        "did": "did:plc:eclio37ymobqex2ncko63h4r",
        "handle": "nytimes.com",
        "displayName": "The New York Times",
        "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:eclio37ymobqex2ncko63h4r/bafkreidvvqj5jymmpaeklwkpq6gi532el447mjy2yultuukypzqm5ohfju",
        "verified": true,
        "followersCount": 1358961,
        "followsCount": 124,
        "postsCount": 45500
    },
    "did": null,
    "handle": null,
    "displayName": null,
    "description": null,
    "avatarUrl": null,
    "bannerUrl": null,
    "verified": null,
    "followersCount": null,
    "followsCount": null,
    "postsCount": null,
    "pinnedPostUri": null,
    "createdAt": "2026-11-18T01:40:05.856134Z",
    "indexedAt": "2026-11-18T01:40:06.542Z",
    "labels": [],
    "source": { "type": "handle", "value": "nytimes.com" },
    "scrapedAt": "2026-11-18T07:31:02+00:00",
    "error": null,
    "errorMessage": null
}
```

A profile row (same keys; the post keys are `null` and left out here):

```json
{
    "recordType": "profile",
    "url": "https://bsky.app/profile/nytimes.com",
    "did": "did:plc:eclio37ymobqex2ncko63h4r",
    "handle": "nytimes.com",
    "displayName": "The New York Times",
    "description": "We seek the truth and help people understand the world. Not a subscriber? Your first month is now free in our app. https://nytimes.onelink.me/Xpht/zbx4nci9",
    "avatarUrl": "https://cdn.bsky.app/img/avatar/plain/did:plc:eclio37ymobqex2ncko63h4r/bafkreidvvqj5jymmpaeklwkpq6gi532el447mjy2yultuukypzqm5ohfju",
    "bannerUrl": "https://cdn.bsky.app/img/banner/plain/did:plc:eclio37ymobqex2ncko63h4r/bafkreidlzzmt7sy2n6imz5mg7siygb3cy4e526nvbjucczeu5cutqro5ni",
    "verified": true,
    "followersCount": 1358961,
    "followsCount": 124,
    "postsCount": 45500,
    "pinnedPostUri": null,
    "createdAt": "2023-06-05T18:50:31.498Z",
    "indexedAt": "2026-11-10T14:17:51.177Z",
    "labels": [],
    "source": { "type": "handle", "value": "nytimes.com" },
    "scrapedAt": "2026-11-18T07:31:01+00:00"
}
```

An input that could not be scraped gives a free error row with the same keys, all `null` except these:

```json
{
    "recordType": "error",
    "source": { "type": "handle", "value": "dataji-no-such-handle-zz.bsky.social" },
    "scrapedAt": "2026-11-18T07:31:01+00:00",
    "error": "notFound",
    "errorMessage": "No such Bluesky account: Profile not found"
}
```

### Output fields

| Field | Description |
|---|---|
| `recordType` | `post`, `profile` or `error` |
| `url` | The post or profile on bsky.app |
| `uri`, `cid` | The post's permanent `at://` id and content id |
| `text`, `langs` | Post text and the languages the author set |
| `likeCount`, `repostCount`, `replyCount`, `quoteCount`, `bookmarkCount` | Engagement at the time of scraping |
| `hashtags`, `mentions`, `links` | Hashtags (without `#`), mentioned accounts (`[{did, handle}]`) and links in the text |
| `images`, `video`, `externalLink` | Images `[{url, alt}]`, video `{playlistUrl, thumbnailUrl, alt}` and the link card `{uri, title, description, thumbnailUrl}` |
| `quotedPostUri` | The post this post quotes |
| `isReply`, `replyParentUri`, `replyRootUri` | Whether it is a reply, the post it replies to and the first post of the thread |
| `isRepost`, `repostedBy`, `repostedAt` | For an account's feed: a repost of someone else's post, who reposted it and when |
| `author` | `{did, handle, displayName, avatarUrl, verified, followersCount, followsCount, postsCount}`. Counts are filled for an account's own posts and with **Add author follower counts** |
| `did`, `handle`, `displayName`, `description`, `avatarUrl`, `bannerUrl`, `verified` | Profile rows: the account |
| `followersCount`, `followsCount`, `postsCount`, `pinnedPostUri` | Profile rows: counts and the pinned post |
| `createdAt`, `indexedAt` | Posts: when it was posted and when Bluesky saw it. Profiles: when the account was created |
| `labels` | Moderation and self-labels, e.g. `nudity`, `bot` |
| `source` | Which input gave the row: `{type: search \| handle \| thread, value: what you entered}` |
| `scrapedAt` | When the row was made (UTC) |
| `error`, `errorMessage` | `null` for data rows. For failed inputs: the error code and the reason (see FAQ) |

The **Posts**, **Profiles** and **Errors** tabs in the run's **Output** show the most useful columns.

### Pricing

This actor uses **pay per event** pricing. You pay for each post and profile row delivered to your dataset, at the price for your Apify plan:

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| `post`, per 1,000 posts | $1.00 | $0.80 | $0.65 | $0.50 |
| `profile`, per 1,000 profiles | $1.50 | $1.20 | $1.00 | $0.70 |
| One post | $0.001 | $0.0008 | $0.00065 | $0.0005 |
| One profile | $0.0015 | $0.0012 | $0.001 | $0.0007 |

Cost examples:

- **10 accounts with 50 latest posts each** (10 profiles + 500 posts): $0.52 on the Free plan ($0.50 + $0.015), $0.26 on Gold ($0.25 + $0.007).
- **An hourly brand watch with 5 searches** and **Only new posts**: at most 500 posts per run (100 per search), so at most $0.50 per run on Free and $0.25 on Gold. Runs usually cost far less, because posts already delivered are skipped and not charged.

Error rows (invalid input, not found, hidden by the account, blocked) are **never charged**. A post found by two inputs is charged once. The run stops cleanly at **Max rows** or at the spending limit you set, and the status message says how many inputs were not finished.

### Limits

These come from what Bluesky shows to visitors who are not logged in. The actor does not work around them.

- **Search returns up to 100 posts per search and run.** Each search returns at most the newest (or top) 100 posts inside the window you set with **Search posts since** and **Search posts until** (no window: the newest or top 100 overall). Bluesky refuses later search pages to logged-out visitors, so the actor does not page deeper and does not split a search into many smaller windows. It is not meant for full search history. For ongoing coverage, run it often (for example every hour) with **Only new posts**.
- **Threads:** Bluesky returns replies up to 10 levels deep, and for very large threads not every reply. Replies the thread's author hid are left out.
- **Accounts that opted out:** Bluesky lets people ask not to be shown to logged-out visitors. Their profiles and posts are left out (a profile you asked for gives a free `optedOut` row), so search and thread results can have fewer rows than Bluesky's own count.
- **Snapshot data:** counts are as of `scrapedAt`. Posts deleted later stay in your dataset; please delete them on your side too (see below).
- **Not included:** followers and following lists, likes lists, feeds and lists, direct messages, and anything that needs a login.

### Use cases

- **Brand and mention monitoring**: track your brand, product or `mentions:yourhandle` every hour
- **Social listening and research**: collect posts on a topic or hashtag with engagement and language
- **Influencer discovery**: search a topic with **Add author follower counts** and sort by followers
- **Competitor tracking**: latest posts, follower counts and engagement of a list of accounts
- **Community feedback**: all replies to an announcement post, ready for sentiment analysis

### FAQ

#### Do I need a Bluesky account?

No. The actor only uses Bluesky's public API, the same data the bsky.app website shows to a visitor who is not logged in. It never logs in and needs no API key.

#### Why do I get at most 100 posts for a search?

Bluesky only gives the first page of search results (up to 100 posts) to visitors who are not logged in, and refuses the next pages. The actor respects that. **Search posts since** and **Search posts until** choose which period those 100 posts come from, but they don't raise the limit. Schedule frequent runs with **Only new posts** to collect a topic continuously.

#### How does this compare with other Bluesky scrapers?

Some tools return more search results by logging in to Bluesky or by automatically splitting a search into many date windows. This actor does neither: it stays logged out and respects Bluesky's 100-post limit for logged-out search, so you get one date window and at most 100 posts per search in each run. For monitoring, that is usually enough: schedule frequent runs (for example every hour) with **Only new posts** and the **Latest** order, and you collect every new post as long as a topic gets fewer than 100 new posts between runs. Accounts and reply threads don't have this limit.

#### How does "Only new posts" work?

The actor remembers the posts it delivered for each search, account and post link in a key-value store named `bluesky-seen` in your Apify account, and skips them next time. For an account, a run gives the posts newer than the newest one delivered before. Profile rows are delivered on every run, so you can follow follower counts over time. Delete the `bluesky-seen` store to start over.

#### Which inputs fail, and why?

Each failed input gets one free error row with an `error` code:

| Code | Meaning |
|---|---|
| `invalidInput` | Not a valid search, handle, DID or post link (for example a post link in the handles list), or Bluesky did not accept it. If the search dates don't parse or **Search posts until** is not after **Search posts since**, every search gets this row; accounts and post links still run. |
| `notFound` | The account or post does not exist, was deleted, or the account was suspended or deactivated. |
| `optedOut` | The account asked Bluesky not to show it to logged-out visitors. The actor respects that. |
| `blocked` | Bluesky refused the request or did not answer after 3 tries. Try again later. |
| `failed` | An unexpected problem. Please report it in the **Issues** tab. |

#### Why are some author counts empty?

Search results and replies don't include follower counts. Turn on **Add author follower counts** to add them (one extra request per 25 authors). An account's own posts always get its counts.

#### Can I use it through the API?

Yes. You can start runs and download results with the [Apify API](https://docs.apify.com/api/v2), the Apify JavaScript and Python clients, or integrations like Make, Zapier and Google Sheets.

### Is it legal to scrape Bluesky?

This actor only collects public posts and profiles that Bluesky shows to anyone without logging in, through Bluesky's public API, at a gentle request rate. Still, please use the data responsibly:

- **Personal data.** Posts and profiles of individuals are personal data under the **GDPR** (EU and UK) and similar laws. You need a lawful basis, such as legitimate interest, to store and use them, keep only what you need, and honour people's rights, including the right to object and to erasure.
- **Bluesky's developer guidelines.** Treat the data as a point-in-time snapshot. If a post or account is deleted on Bluesky, delete it from your copies too, and do not sell or republish archives of other people's posts.
- **Opt-outs.** Accounts that asked not to be shown to logged-out visitors are left out by the actor; please respect that choice in any data you combine with this.

You can read more in Apify's blog post on [the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/), and check with a lawyer if you are unsure.

**Removal requests.** If your information appears in output from this actor and you want it removed, or have a privacy question, email **privacy@dataji.io**. We aim to answer within 30 days.

### Need something custom?

This actor is one of many data tools we build at Dataji. If you need something different, we can build it for you, whether that's a change to this actor or a scraper for any other website or data source.

Popular requests include:

- alerts by email or Slack when your brand is mentioned
- sentiment and topic tagging of the posts
- dashboards that track accounts and hashtags over time
- delivery straight to Google Sheets, your CRM or a webhook

These are only examples. If the data is online, we can most likely collect it for you. Tell us what you're trying to build through the [contact form](https://dataji.io/contact-us/) or email support@dataji.io. For bugs or questions about this actor, please use the **Issues** tab.

### Support

Found a bug or need a field that is missing? Open an issue in the **Issues** tab and we'll take a look.

# Changelog

This Actor's version history is a separate document: https://apify.com/dataji/bluesky-scraper/changelog.md

# Actor input Schema

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

Keywords, hashtags or phrases, one per line. Bluesky's search syntax works: "exact phrase", #hashtag, from:nytimes.com, mentions:nytimes.com, domain:nytimes.com. Each search returns up to the 100 newest (or top) matching posts: that is all Bluesky gives a visitor who is not logged in. Run it on a schedule with 'Only new posts' to follow a topic or brand over time.

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

Newest posts first, or Bluesky's top (most engaging) posts.

## `searchLanguage` (type: `string`):

Only posts in this language, as a code like en, de, ja or pt-BR. Leave empty for all languages.

## `searchSince` (type: `string`):

Only posts from this date on (YYYY-MM-DD, UTC). Leave empty for the newest posts whatever their date.

## `searchUntil` (type: `string`):

Only posts up to and including this date (YYYY-MM-DD, UTC). Must be after 'Search posts since'. Together they set one date window per search; each search still returns at most the 100 newest (or top) posts inside it. Leave empty for no end date.

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

Bluesky accounts, one per line: handles (nytimes.com, @name.bsky.social), DIDs (did:plc:...) or profile links (https://bsky.app/profile/nytimes.com). A name without a dot means name.bsky.social. Each account gives one profile row and its latest posts.

## `maxPostsPerHandle` (type: `integer`):

How many of each account's latest posts (and reposts) to get. 0 = profile only.

## `includeReplies` (type: `boolean`):

Also get the account's replies to other people. Off: only its own posts and reposts.

## `postUrls` (type: `array`):

Bluesky post links (https://bsky.app/profile/nytimes.com/post/3n2ke5zwv4u2b) or at:// post URIs, one per line. Each gives the post and its replies.

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

How many replies to get for each post link: direct replies first, then replies to replies. 0 = only the post.

## `includeAuthorProfiles` (type: `boolean`):

Add followers, following and post counts to the author of every post (one extra request per 25 authors). Useful to find influential voices in a search.

## `onlyNewPosts` (type: `boolean`):

Skip posts that earlier runs with this option already delivered for the same search, account or post. The actor remembers them in a key-value store named 'bluesky-seen' in your account. Good for scheduled monitoring.

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

Stop after this many post and profile rows in total (error rows don't count).

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

How many inputs are scraped at the same time. Each makes one request every 1-2 seconds, far below Bluesky's rate limits.

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

Bluesky's public API does not need a proxy, so none is used by default. Switch on Apify Proxy if requests start failing.

## Actor input object example

```json
{
  "searchQueries": [
    "#photography"
  ],
  "searchSort": "latest",
  "handles": [
    "nytimes.com"
  ],
  "maxPostsPerHandle": 50,
  "includeReplies": false,
  "maxRepliesPerPost": 100,
  "includeAuthorProfiles": false,
  "onlyNewPosts": false,
  "maxItems": 1000,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Posts, profiles and error rows (free) in one dataset; recordType tells them apart.

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

Post rows: text, engagement counts, hashtags, author.

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

Profile rows for the accounts you entered.

## `errors` (type: `string`):

Why an input failed (invalid input, not found, hidden by the account, blocked). Error rows are free.

# 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": [
        "#photography"
    ],
    "handles": [
        "nytimes.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataji/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": ["#photography"],
    "handles": ["nytimes.com"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataji/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": [
    "#photography"
  ],
  "handles": [
    "nytimes.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataji/bluesky-scraper --silent --output-dataset

```

## MCP server setup

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