# Bluesky — Wrapped API

> **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)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/bluesky/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Also available via public x402 on Base (no account needed): [x402/bluesky.md](https://paywithlocus.com/x402/bluesky.md)

> Also available via MPP (no account needed): [mpp/bluesky.md](https://paywithlocus.com/mpp/bluesky.md)

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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://api.paywithlocus.com/api/wrapped/credits/bluesky/get-profile \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/get-author-feed \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/get-post-thread \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/search-posts \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/search-actors \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/get-followers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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://api.paywithlocus.com/api/wrapped/credits/bluesky/get-follows \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"actor":"bsky.app","limit":5}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.