# Bluesky

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Public Bluesky (AT Protocol) data: user profiles with follower counts, a user’s posts, a post with its reply thread, full-text post search with author, date, language and domain filters, user search, and follower and following lists. No API key required.

**Category:** Social Media | **Website:** [bsky.app](https://bsky.app) | **Docs:** [docs.bsky.app/docs/api/at-protocol-xrpc-api](https://docs.bsky.app/docs/api/at-protocol-xrpc-api)

## Access Methods

| Method | Base URL | Auth |
|--------|----------|------|
| **MPP (Tempo)** | `https://bluesky.mpp.paywithlocus.com/bluesky/` | HTTP 402 auto-payment |
| **Locus Pro Wrapped API** | `https://api.paywithlocus.com/api/wrapped/credits/bluesky/` | `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` + `Idempotency-Key` |

**OpenAPI discovery:** `GET https://bluesky.mpp.paywithlocus.com/openapi.json`

## Endpoints

### Get Profile

One Bluesky user’s profile: DID, handle, display name, bio, avatar and banner, follower, following and post counts, account creation time, and labels.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `actor` | string | Yes | Bluesky handle (jay.bsky.team, without @) or DID (did:plc:...). |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/get-profile \
  -H "Content-Type: application/json" \
  -d '{"actor":"bsky.app"}'
```

### Get User Posts

A user’s posts and reposts, newest first, each with text, creation time, embeds (images, links, quotes) and like, repost, reply and quote counts. Page with cursor.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `actor` | string | Yes | Bluesky handle (jay.bsky.team, without @) or DID (did:plc:...). |
| `limit` | integer | No | Results per page, 1 to 100 (default 50). |
| `cursor` | string | No | Pagination cursor returned by the previous page. |
| `filter` | string | No | Which posts to include: posts_with_replies, posts_no_replies, posts_with_media, posts_and_author_threads, posts_with_video (default posts_with_replies). |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/get-author-feed \
  -H "Content-Type: application/json" \
  -d '{"actor":"bsky.app","limit":5}'
```

### Get Post Thread

One post with its engagement counts, the posts it replies to, and its nested replies.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `uri` | string | Yes | The post as an at:// URI (at://did:plc:.../app.bsky.feed.post/3k...) or a bsky.app post URL (https://bsky.app/profile/bsky.app/post/3k...). |
| `depth` | integer | No | Levels of replies to include, 0 to 1000 (default 6). |
| `parentHeight` | integer | No | Levels of parent posts to include, 0 to 1000 (default 80). |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/get-post-thread \
  -H "Content-Type: application/json" \
  -d '{"uri":"https://bsky.app/profile/bsky.app/post/3n3fbpqxoj227","depth":1}'
```

### Search Posts

Full-text search over Bluesky posts, ranked by top or latest, with optional author, mention, date range, language, link domain and hashtag filters. Each hit carries the post text, author and engagement counts.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `q` | string | Yes | Search query. Supports Lucene-style syntax; use quotes for an exact phrase. |
| `sort` | string | No | Ranking: top or latest (default latest). |
| `since` | string | No | Only posts at or after this time: a date (2025-01-01) or ISO 8601 datetime. |
| `until` | string | No | Only posts before this time: a date (2025-02-01) or ISO 8601 datetime. |
| `author` | string | No | Only posts by this handle or DID. |
| `mentions` | string | No | Only posts mentioning this handle or DID. |
| `lang` | string | No | Only posts in this language (ISO 639 code such as en). |
| `domain` | string | No | Only posts linking to this domain (nytimes.com). |
| `url` | string | No | Only posts linking to this exact URL. |
| `tag` | string | No | Only posts with this hashtag, without the # sign. |
| `limit` | integer | No | Results per page, 1 to 100 (default 25). |
| `cursor` | string | No | Pagination cursor returned by the previous page. |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/search-posts \
  -H "Content-Type: application/json" \
  -d '{"q":"bluesky","sort":"latest","limit":5}'
```

### Search Users

Find Bluesky users by name, handle or bio text. Each result carries the DID, handle, display name, bio and avatar.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `q` | string | Yes | Name, handle or bio words to search for. |
| `limit` | integer | No | Results per page, 1 to 100 (default 25). |
| `cursor` | string | No | Pagination cursor returned by the previous page. |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/search-actors \
  -H "Content-Type: application/json" \
  -d '{"q":"bluesky","limit":5}'
```

### Get Followers

Accounts that follow a user, newest first, each with DID, handle, display name, bio and avatar. Page with cursor.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `actor` | string | Yes | Bluesky handle (jay.bsky.team, without @) or DID (did:plc:...). |
| `limit` | integer | No | Results per page, 1 to 100 (default 50). |
| `cursor` | string | No | Pagination cursor returned by the previous page. |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/get-followers \
  -H "Content-Type: application/json" \
  -d '{"actor":"bsky.app","limit":5}'
```

### Get Following

Accounts a user follows, newest first, each with DID, handle, display name, bio and avatar. Page with cursor.

**Estimated cost:** $0.005

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `actor` | string | Yes | Bluesky handle (jay.bsky.team, without @) or DID (did:plc:...). |
| `limit` | integer | No | Results per page, 1 to 100 (default 50). |
| `cursor` | string | No | Pagination cursor returned by the previous page. |

```bash
curl -X POST https://bluesky.mpp.paywithlocus.com/bluesky/get-follows \
  -H "Content-Type: application/json" \
  -d '{"actor":"bsky.app","limit":5}'
```

## Next steps

- [All MPP services](https://paywithlocus.com/mpp/index.md): pick another service.
- [Bluesky with Locus Pro credits](https://paywithlocus.com/wapi/bluesky.md): the same provider, billed to a credit balance.
- [Pay With Locus wallet skill](https://paywithlocus.com/wallet/skill.md): an agent wallet that pays MPP for you.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.