# Bluesky (`canadesk/bluesky`) Actor

Collect Bluesky posts, search results, profiles, followers and follows for multiple accounts or keywords.

- **URL**: https://apify.com/canadesk/bluesky.md
- **Developed by:** [Canadesk Support](https://apify.com/canadesk) (community)
- **Categories:** Lead generation, SEO tools, Social media
- **Features:** Full permissions
- **Stats:** 49 total users, 0 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $0.25 / 1,000 bluesky results

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/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

Collect public posts, profiles, followers and follows from **Bluesky**. Run one account or a list of accounts and search terms without a login or API key.

### Features

| **Process** | **What you get** |
| :--- | :--- |
| Get Posts | Account posts with available text, dates, engagement, media and links |
| Search for Posts | Posts matching keywords, phrases or supported Lucene queries |
| Get Followers | Public accounts following an account |
| Get Follows | Public accounts followed by an account |
| Get Account Profile | Biography, images and available follower, following and post counts |
| Search for Accounts | Profiles matching a name or keyword |

Results reflect the public data returned by Bluesky and the selected filters.

### Get started

Choose a process and enter a Bluesky handle, profile URL or DID. For search modes, enter your search phrase instead. Use **Accounts or keywords** to supply multiple inputs in one run; this list takes priority over the single keyword field.

```json
{
  "process": "gp",
  "keywords": ["bsky.app", "washingtonpost.com"],
  "maximum": 50,
  "postsType": "posts_with_replies"
}
```

Existing integrations can continue sending a single string in `keyword`.

### Filters and limits

- **Maximum per input** limits the records collected for each account or search term. **Maximum total results** applies to the whole run.
- **Posts type** selects all posts, top-level posts, media posts or author threads.
- **Since** and **Until** include the full selected UTC calendar days for account posts. Search date filters are applied by Bluesky.
- Enable **Lucene query syntax** to put filters directly in a post-search query, such as `from:washingtonpost.com lang:en "climate"`. This overrides the separate language and date search fields.
- Post searches return up to 100 posts per query. Other list modes follow available pagination up to your limits.
- **Cursor** continues from a source cursor. Returned continuation cursors are available in the run's `RUN_SUMMARY` record.
- **Output format** offers flat records or a `data` array containing one record per row.

### Output

Post rows include `id`, `author`, `authorName`, `authorJoined`, `avatar`, `text`, `createdAt`, `replyCount`, `repostCount`, `likeCount`, `quoteCount`, `media`, `facets` and `url`, when available. Profile, follower, follow and account-search rows retain the public profile fields returned by Bluesky.

Business or research workflows can schedule recurring runs to monitor accounts and topics. Add a proxy if your connection is blocked.

For support, open an issue with your run URL and input.

#### Unsuccessful lookups

Where listed in the Pricing tab, a handled lookup problem that prevents a run from returning any real results produces one clear error record and a single $0.02 unsuccessful-lookup fee, in addition to any listed start fee.

### Pricing

Each valid pay-per-event run with at least one input includes a minimum charge of 100 result units, shared across all inputs in that run. Any placeholder rows are clearly marked and contain no scraped data; filter them out when exporting. Each separate run has its own minimum, including scheduled or API runs. Platform usage is included.

# Actor input Schema

## `process` (type: `string`):

No description

## `keywords` (type: `array`):

Optional list of accounts or search terms. Takes priority over the single keyword.

## `keyword` (type: `string`):

A Bluesky handle, profile URL or DID; a search phrase for search modes.

## `maxResults` (type: `integer`):

Maximum real records across all inputs.

## `maximum` (type: `integer`):

Maximum results for each input. Post search returns at most 100 per query.

## `lucene` (type: `string`):

Only applies to Search for Posts. Read the Information tab!

## `postsType` (type: `string`):

Only for Get Posts.

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

Only applies to Search for Posts.

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

Only applies to Search for Posts.

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

YYYY-MM-DD, inclusive UTC calendar day for account posts.

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

YYYY-MM-DD, inclusive UTC calendar day for account posts.

## `last_id` (type: `string`):

Optional source cursor to continue a previous collection.

## `savings` (type: `string`):

Flat records, or a data array containing one record per row.

## `maxPages` (type: `integer`):

Maximum source pages across all inputs.

## `pause` (type: `integer`):

Delay in milliseconds.

## `proxy` (type: `object`):

Optional proxy for connecting to Bluesky.

## Actor input object example

```json
{
  "process": "gp",
  "keyword": "bsky.app",
  "maxResults": 10000,
  "maximum": 50,
  "lucene": "no",
  "postsType": "posts_with_replies",
  "sort": "latest",
  "lang": "all",
  "since": "",
  "until": "",
  "last_id": "",
  "savings": "2",
  "maxPages": 1000,
  "pause": 1000,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "keyword": "bsky.app",
    "since": "",
    "until": "",
    "last_id": "",
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/bluesky").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 = {
    "keyword": "bsky.app",
    "since": "",
    "until": "",
    "last_id": "",
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/bluesky").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 '{
  "keyword": "bsky.app",
  "since": "",
  "until": "",
  "last_id": "",
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call canadesk/bluesky --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,canadesk/bluesky"
        }
    }
}
```

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/p2NsYh3iNZBKI4YCQ/builds/1iCaawGdReGTurIF0/openapi.json
