---
title: "How to get Bluesky data"
description: "Search Bluesky posts and read profiles, followers, threads and feeds as AT Protocol JSON. When the free official API is enough, when one key for every platform helps, code and prices."
canonical_url: https://groundsocial.dev/guides/how-to-get-bluesky-data
---
# How to get Bluesky data

> Search Bluesky posts and read profiles, followers, threads and feeds as AT Protocol JSON. When the free official API is enough, when one key for every platform helps, code and prices.

_Checked 2026-11-27._

Bluesky is the open one: the AT Protocol’s public AppView answers many reads without an account, so for Bluesky alone you can call it directly. Use a data API when you want Bluesky next to other platforms under one key and one MCP server: the same AT Protocol JSON, 1 credit a call.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official Bluesky API

Bluesky’s API is public and free.

- Profiles, author feeds and threads answer without authentication at `public.api.bsky.app`.
- Bluesky’s hosted servers rate-limit by IP (3,000 requests per 5 minutes) and cap writes per account.
- No commercial approval is needed. If Bluesky is all you need, the official API is a good choice.

Sources: [Bluesky API docs](https://docs.bsky.app/), [Rate limits](https://github.com/bluesky-social/bsky-docs/blob/main/docs/advanced-guides/rate-limits.md).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** Posts matching a search: `GET /v1/bluesky/search/posts`, 1 credit.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/bluesky/search/posts?q=espresso&limit=5" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/bluesky/search/posts?q=espresso&limit=5', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/bluesky/search/posts?q=espresso&limit=5",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened, private people’s names and handles cut to initials. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/bluesky/search-posts/python).

```json
{
  "posts": [
    {
      "cid": "bafyreiamxqfw35rocyvylp3rgytf33aarnz2cmoaz3ivqheggcgzwdklsq",
      "author": {
        "did": "did:plc:…",
        "handle": "m.s.bsky.social",
        "displayName": "M.S.",
        "createdAt": "2024-11-11T17:25:41.380Z"
      },
      "record": {
        "text": "Hooray! Just had an espresso....All is [almost] right with the world! #happythanksgiving 🦃…",
        "createdAt": "2026-11-27T02:23:57.280Z",
        "$type": "app.bsky.feed.post"
      },
      "embed": {
        "$type": "app.bsky.embed.images#view"
      },
      "replyCount": 0,
      "repostCount": 0,
      "likeCount": 0,
      "quoteCount": 0
    }
  ],
  "cursor": "eyJzIjpbMTc5NTc0NTYzNDAwMCwiZGlkOnBsYzplMnY1bHFqaDJnbncyZ3dldWV6YnpkNWwiLCIzbjNiNGlmZW9hcj…",
  "hitsTotal": 10000
}
```

## Get every page

`/v1/bluesky/search/posts` returns posts a page at a time, and each page costs 1 credit. Pass the response’s `cursor` back as `after` until it runs out.

TypeScript:

```ts
// Collect up to 5 pages of posts.
const first = 'https://api.groundsocial.dev/v1/bluesky/search/posts?q=espresso&limit=100'
const items: unknown[] = []
let cursor: string | undefined
for (let page = 0; page < 5; page++) {
  const url = new URL(first)
  if (cursor) url.searchParams.set('after', cursor)
  const res = await fetch(url, {
    headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
  })
  if (!res.ok) throw new Error((await res.json()).error.hint)
  const data = await res.json()
  items.push(...(data.posts ?? []))
  cursor = data.cursor ?? undefined
  if (!cursor) break
}
console.log(items.length, 'posts')
```

Python:

```python
import os, requests

# Collect up to 5 pages of posts.
FIRST = "https://api.groundsocial.dev/v1/bluesky/search/posts?q=espresso&limit=100"
headers = {"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"}
items, cursor = [], None
for page in range(5):
    params = {"after": cursor} if cursor else {}
    res = requests.get(FIRST, params=params, headers=headers)
    res.raise_for_status()
    data = res.json()
    items += data.get("posts") or []
    cursor = data.get("cursor")
    if not cursor:
        break
print(len(items), "posts")
```

## What else you can get from Bluesky

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [Posts matching a search](https://groundsocial.dev/tutorials/bluesky/search-posts/python) | `GET /v1/bluesky/search/posts` | 1 |
| [A profile with follower counts](https://groundsocial.dev/tutorials/bluesky/profile/python) | `GET /v1/bluesky/profiles/espn.com` | 1 |
| [An account’s posts](https://groundsocial.dev/tutorials/bluesky/user-posts/python) | `GET /v1/bluesky/profiles/espn.com/posts` | 1 |
| [An account’s followers](https://groundsocial.dev/tutorials/bluesky/followers/python) | `GET /v1/bluesky/profiles/espn.com/followers` | 1 |
| [A post’s reply thread](https://groundsocial.dev/tutorials/bluesky/post-thread/python) | `GET /v1/bluesky/post/thread` | 1 |
| [Trending topics](https://groundsocial.dev/tutorials/bluesky/trending-topics/python) | `GET /v1/bluesky/trends/topics` | 1 |

Each row links to its tutorial. Every Bluesky endpoint and price: [Bluesky API](https://groundsocial.dev/bluesky-api).

## Tips

- Search supports `author`, `mentions`, `domain`, `tag`, `lang`, `since` and `until`, and quoted phrases.
- Search pages go newest first (`sort=latest`, the default). Bluesky no longer pages `sort=top` for logged-out clients, so top results are one page of up to 100, with no `cursor`.
- Follower lists are public on Bluesky and come page by page, 100 at a time.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=bluesky` below loads only the Bluesky tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `bluesky_search_posts`, `bluesky_profile_get`, `bluesky_user_posts`, `bluesky_user_followers`, `bluesky_post_thread`, `bluesky_trends_topics`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=bluesky"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=bluesky"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=bluesky
```

> **Then ask** “Find this week’s most-liked Bluesky posts mentioning “espresso” and who wrote them.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| 1,000 search pages | 1,000 | $1.00 → $0.40 |
| 10,000 followers of one account (100 a page) | 100 | $0.10 → $0.04 |

## FAQ

### Why pay when the official API is free?

You may not need to. It helps when you want one key, one response envelope and one MCP server across Bluesky, X, Threads, Reddit and the rest.

### Why does search page 2 fail on the public AppView?

Since November 2026 `api.bsky.app` answers 403 to a logged-out `searchPosts` call that carries a `cursor`. Our `after` keeps working: it turns the cursor into an `until` bound on the same search, so you page as usual.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.

## Go deeper

- [Bluesky tutorials: 27 endpoints in six languages](https://groundsocial.dev/tutorials/bluesky)
- [Is the Bluesky API free?](https://groundsocial.dev/answers/is-the-bluesky-api-free)

## Related guides

- [How to get X (Twitter) data](https://groundsocial.dev/guides/how-to-get-x-twitter-data)
- [How to get Threads data](https://groundsocial.dev/guides/how-to-get-threads-data)

Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-bluesky-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get Bluesky data","item":"https://groundsocial.dev/guides/how-to-get-bluesky-data"}]}
```
