# Bluesky API

> Bluesky profile details and public posts are available as a workflow and API.

Bluesky’s Get profile method returns public profile details and needs a handle, profile link, or bare name. List recent posts returns an account’s latest public posts and needs a handle or profile link; replies and reposts are optional. Search posts finds public posts by words, with optional sort, author, language, and start date filters.

- Page: https://fous.com/tools/bluesky
- Handle: `@bluesky`
- Category: [Social](https://fous.com/tools/category/social)
- Source website: https://bsky.app
- Last verified: Sep 29, 2026

## Methods

### Get profile

Operation `get_profile`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Look up a public Bluesky profile by handle or profile link, including its bio, audience counts and join date. A bare name first checks its .bsky.social handle, then the top relevant people-search result. Missing profile fields are null.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `username` | string | yes | `"nytimes"` | Account handle with or without @, a Bluesky profile link, or a bare name such as nytimes. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "username"
  ],
  "properties": {
    "username": {
      "type": "string",
      "examples": [
        "nytimes"
      ],
      "description": "Account handle with or without @, a Bluesky profile link, or a bare name such as nytimes."
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "username": "https://bsky.app/profile/jay.bsky.team"
    },
    {
      "username": "nytimes"
    },
    {
      "username": "@nytimes.com"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `bio` | string or null | `"Founder & Chief Innovation Officer @ Bluesky\n\nWorking on @attie.ai\n\n🌱 🪴 🌳"` | Profile biography. |
| `did` | string | `"did:plc:oky5czdrnfjpqslsw2a5iclo"` | The account’s decentralized identifier. |
| `handle` | string | `"@jay.bsky.team"` | Account handle, with @. |
| `followers` | integer or null | `594586` | Number of followers. |
| `following` | integer or null | `3986` | Number of accounts followed. |
| `joined_date` | string or null | `"2022-11-17"` | Date the public profile was created, YYYY-MM-DD. |
| `display_name` | string or null | `"Jay 🦋"` | Name displayed on the profile. |
| `profile_link` | string | `"https://bsky.app/profile/jay.bsky.team"` | Link to the Bluesky profile. |
| `number_of_posts` | integer or null | `4172` | Number of posts. |
| `avatar_image_link` | string or null | `"https://cdn.bsky.app/img/avatar/plain/did:plc:oky5czdrnfjpqslsw2a5iclo/bafkreihxtnc37g7jqdcgidtkknwuswtjiijcdnc6cx4imc4` | Link to the profile avatar image. |

**Example input**

```json
{
  "username": "https://bsky.app/profile/jay.bsky.team"
}
```

**Example output**

```json
{
  "bio": "Founder & Chief Innovation Officer @ Bluesky\n\nWorking on @attie.ai\n\n🌱 🪴 🌳",
  "did": "did:plc:oky5czdrnfjpqslsw2a5iclo",
  "handle": "@jay.bsky.team",
  "followers": 594586,
  "following": 3986,
  "joined_date": "2022-11-17",
  "display_name": "Jay 🦋",
  "profile_link": "https://bsky.app/profile/jay.bsky.team",
  "number_of_posts": 4172,
  "avatar_image_link": "https://cdn.bsky.app/img/avatar/plain/did:plc:oky5czdrnfjpqslsw2a5iclo/bafkreihxtnc37g7jqdcgidtkknwuswtjiijcdnc6cx4imc4oq33cnsc5da"
}
```

### List recent posts

Operation `list_recent_posts`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

List an account’s latest public Bluesky posts, newest first. Replies and reposts are excluded unless requested; repost times refer to when the account reposted.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `username` | string | yes | `"https://bsky.app/profile/bsky.app"` | Account handle (with or without @) or Bluesky profile link, for example nytimes.com or https://bsky.app/profile/nytimes.com. |
| `max_results` | integer | no | `8` | Maximum posts to return, for example 20. |
| `include_replies` | boolean | no | `true` | Include replies, for example true. |
| `include_reposts` | boolean | no | `true` | Include posts reposted by the account, for example true. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "username"
  ],
  "properties": {
    "username": {
      "type": "string",
      "description": "Account handle (with or without @) or Bluesky profile link, for example nytimes.com or https://bsky.app/profile/nytimes.com.",
      "examples": [
        "https://bsky.app/profile/bsky.app",
        "nytimes.com",
        "cmfoust12.bsky.social"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum posts to return, for example 20.",
      "examples": [
        8,
        5
      ]
    },
    "include_replies": {
      "type": "boolean",
      "default": false,
      "description": "Include replies, for example true.",
      "examples": [
        true
      ]
    },
    "include_reposts": {
      "type": "boolean",
      "default": false,
      "description": "Include posts reposted by the account, for example true.",
      "examples": [
        true
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "username": "https://bsky.app/profile/bsky.app",
      "max_results": 8,
      "include_replies": true,
      "include_reposts": true
    },
    {
      "username": "nytimes.com"
    },
    {
      "username": "cmfoust12.bsky.social",
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `posts` | array |  | Matching posts, newest first. |
| `posts[].text` | string | `"If you're in line to vote for @bsky38.com, please stay in line! Polls close in just under 5 hours."` | Post text. |
| `posts[].likes` | integer | `747` |  |
| `posts[].quotes` | integer | `47` |  |
| `posts[].replies` | integer | `100` |  |
| `posts[].reposts` | integer | `92` |  |
| `posts[].post_uri` | string | `"at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mw2cdr44fc2a"` |  |
| `posts[].is_repost` | boolean | `false` |  |
| `posts[].post_link` | string | `"https://bsky.app/profile/bsky.app/post/3mw2cdr44fc2a"` |  |
| `posts[].posted_at` | string | `"2026-09-21T18:04:06.128000Z"` | Post or repost date and time in UTC. |
| `posts[].image_links` | array |  |  |
| `posts[].original_author_handle` | string or null | `"kenjennings.bsky.social"` | Original author handle if this is a repost; otherwise null. |

**Example input**

```json
{
  "username": "https://bsky.app/profile/bsky.app",
  "max_results": 8,
  "include_replies": true,
  "include_reposts": true
}
```

**Example output**

```json
{
  "posts": [
    {
      "text": "If you're in line to vote for @bsky38.com, please stay in line! Polls close in just under 5 hours.",
      "likes": 747,
      "quotes": 47,
      "replies": 100,
      "reposts": 92,
      "post_uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3mw2cdr44fc2a",
      "is_repost": false,
      "post_link": "https://bsky.app/profile/bsky.app/post/3mw2cdr44fc2a",
      "posted_at": "2026-09-21T18:04:06.128000Z",
      "image_links": [],
      "original_author_handle": null
    },
    {
      "text": "I don’t usually meddle on the writing side of Jeopardy!, but tonight I called in a favor for our Bluesky viewers.",
      "likes": 10267,
      "quotes": 110,
      "replies": 157,
      "reposts": 774,
      "post_uri": "at://did:plc:zbrhmanjs62oyqywjwdazxz3/app.bsky.feed.post/3mvta262ufs27",
      "is_repost": true,
      "post_link": "https://bsky.app/profile/kenjennings.bsky.social/post/3mvta262ufs27",
      "posted_at": "2026-09-18T22:41:20.071000Z",
      "image_links": [],
      "original_author_handle": "kenjennings.bsky.social"
    },
    {
      "text": "Less than 4 hours until the #Emmys kick off! You can keep up with all the commentary, winners, joy—and, let's face it, disappointment—via our Emmys Watch feed right here on @bsky.app. Pin it now so yo…",
      "likes": 523,
      "quotes": 4,
      "replies": 31,
      "reposts": 38,
      "post_uri": "at://did:plc:kwxpje5qog6wwndagwbssatp/app.bsky.feed.post/3mviutosqmk2t",
      "is_repost": true,
      "post_link": "https://bsky.app/profile/avclub.com/post/3mviutosqmk2t",
      "posted_at": "2026-09-14T20:12:36.962000Z",
      "image_links": [
        "https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:kwxpje5qog6wwndagwbssatp/bafkreicwxzp6lnqvuetiytyeanq3wynihsneq4qqdvv7bzhkrmw4nv36oy"
      ],
      "original_author_handle": "avclub.com"
    }
  ]
}
```

### Search posts

Operation `search_posts`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search public Bluesky posts for words, optionally ordered by latest or top and filtered by date, author or language. Returns up to 100 matching posts; search indexing may lag behind new posts.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"latest"` | Order results by latest or top; for example, latest. |
| `query` | string | yes | `"climate policy"` | Words to search for, such as climate policy. |
| `author` | string | no | `"bsky.app"` | Only posts from this handle, for example bsky.app. |
| `language` | string | no | `"English"` | Language name or two-letter code, for example English or en. Leave blank for any language. |
| `since_date` | string | no | `"2026-09-01"` | Include posts from this date onward, for example 2026-09-01. |
| `max_results` | integer | no | `5` | Maximum posts to return, for example 25. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "latest",
        "top"
      ],
      "type": "string",
      "default": "latest",
      "description": "Order results by latest or top; for example, latest.",
      "examples": [
        "latest",
        "top"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Words to search for, such as climate policy.",
      "examples": [
        "climate policy",
        "climate",
        "parking"
      ]
    },
    "author": {
      "type": "string",
      "description": "Only posts from this handle, for example bsky.app.",
      "examples": [
        "bsky.app",
        "parkingreform.org"
      ]
    },
    "language": {
      "type": "string",
      "description": "Language name or two-letter code, for example English or en. Leave blank for any language.",
      "examples": [
        "English"
      ]
    },
    "since_date": {
      "type": "string",
      "format": "date",
      "description": "Include posts from this date onward, for example 2026-09-01.",
      "examples": [
        "2026-09-01"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 25,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum posts to return, for example 25.",
      "x-fous-developer": true,
      "examples": [
        5,
        4,
        3
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "latest",
      "query": "climate policy",
      "max_results": 5
    },
    {
      "sort": "top",
      "query": "climate policy",
      "since_date": "2026-09-01",
      "max_results": 4
    },
    {
      "query": "climate",
      "author": "bsky.app",
      "language": "English",
      "max_results": 3
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `posts` | array |  | Public posts matching the search, in requested order. |
| `posts[].text` | string or null | `"Last week PRN helped bring parking reform into Climate Week conversations about housing, transit, infill, public space,` |  |
| `posts[].likes` | integer | `0` |  |
| `posts[].replies` | integer | `0` |  |
| `posts[].reposts` | integer | `0` |  |
| `posts[].post_uri` | string | `"at://did:plc:xrjxgkdys2q3mjrjfdcngeud/app.bsky.feed.post/3mwmlsg4i462b"` |  |
| `posts[].post_link` | string | `"https://bsky.app/profile/parkingreform.org/post/3mwmlsg4i462b"` |  |
| `posts[].posted_at` | string or null | `"2026-09-29T00:41:16.879000Z"` |  |
| `posts[].image_links` | array |  |  |
| `posts[].author_handle` | string or null | `"parkingreform.org"` |  |
| `posts[].author_display_name` | string or null | `"Parking Reform Network"` |  |

**Example input**

```json
{
  "sort": "latest",
  "query": "climate policy",
  "max_results": 5
}
```

**Example output**

```json
{
  "posts": [
    {
      "text": "Last week PRN helped bring parking reform into Climate Week conversations about housing, transit, infill, public space, climate + emerging mobility.\n\nThat was the goal.\n\nParking policy belongs in the …",
      "likes": 0,
      "replies": 0,
      "reposts": 0,
      "post_uri": "at://did:plc:xrjxgkdys2q3mjrjfdcngeud/app.bsky.feed.post/3mwmlsg4i462b",
      "post_link": "https://bsky.app/profile/parkingreform.org/post/3mwmlsg4i462b",
      "posted_at": "2026-09-29T00:41:16.879000Z",
      "image_links": [
        "https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:xrjxgkdys2q3mjrjfdcngeud/bafkreihdxjz3bv4b4w3ulpikrdfrj6apvtt34bcoflr5s5bldjcnaxqeju",
        "https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:xrjxgkdys2q3mjrjfdcngeud/bafkreibjyqg53auh2d7h2ufjjeqkqo42w4isldtuymy4wcbmea4apnyhwm"
      ],
      "author_handle": "parkingreform.org",
      "author_display_name": "Parking Reform Network"
    },
    {
      "text": "We have a report on Housing Policy that Solves Climate Change - check it out here: climatecabineteducation.org/housing-poli...",
      "likes": 0,
      "replies": 0,
      "reposts": 0,
      "post_uri": "at://did:plc:ajxbpivpvvutno4zfxxxy2ab/app.bsky.feed.post/3mwmlgplyys22",
      "post_link": "https://bsky.app/profile/spears.bsky.social/post/3mwmlgplyys22",
      "posted_at": "2026-09-29T00:34:44.184000Z",
      "image_links": [],
      "author_handle": "spears.bsky.social",
      "author_display_name": "Caroline Spears"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@bluesky",
  "visibility": "public",
  "operation": "get_profile",
  "version": 1,
  "input": {
    "username": "https://bsky.app/profile/jay.bsky.team"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@bluesky\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_profile\",\n  \"version\": 1,\n  \"input\": {\n    \"username\": \"https://bsky.app/profile/jay.bsky.team\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@bluesky",
  "visibility": "public",
  "operation": "get_profile",
  "version": 1,
  "input": {
    "username": "https://bsky.app/profile/jay.bsky.team"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/bluesky`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_profile`: Get profile. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `list_recent_posts`: List recent posts. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_posts`: Search posts. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-bluesky https://api.fous.com/mcp/tools/bluesky --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Review public profile details and audience counts.
- Track an account’s latest public posts.
- Find public posts about a topic.
- Compare posts by author, language, or date.
- Collect post engagement counts for analysis.

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Bluesky tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Bluesky account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from bsky.app when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What is in a public Bluesky profile?

Get profile returns the biography, display name, handle, follower and following counts, join date, post count, and profile links.

### What has an account posted recently?

List recent posts returns an account’s latest public posts, newest first. Replies and reposts are excluded unless requested.

### What public posts mention a topic?

Search posts finds public posts matching supplied words, with optional ordering and filters for author, language, and date.

## Related

- [Mastodon API](https://fous.com/tools/mastodon.md): Mastodon provides public profiles and recent public posts, including hashtag posts, but excludes private and unlisted posts and may limit visibility to accounts known to mastodon.social or a selected server.
- [Instagram API](https://fous.com/tools/instagram.md): Instagram provides public photos, videos, profiles, exact headline counts, bio links, and profile pictures, plus recent public posts and reels; some profiles or posts require login, and view counts may be unavailable.
- [Threads API](https://fous.com/tools/threads.md): Threads provides public profiles and posts, including recent posts, engagement and replies; private or login-only content is excluded, and replies may be limited to 10.
- [Reddit API](https://fous.com/tools/reddit.md): Reddit returns searchable public posts, community feeds/details, user profiles and recent activity, posts with up to 200 comments; unavailable content limits results; Top defaults weekly.
- [X API](https://fous.com/tools/x.md): X returns public profile details and public posts with author, media, and engagement; deleted, protected, or unavailable posts cannot be retrieved.
- [Substack API](https://fous.com/tools/substack.md): Substack returns public newsletters and recent public post details or text; paid posts expose previews or metadata, and some custom-domain newsletters may be unavailable.
- [Medium API](https://fous.com/tools/medium.md): Medium returns public writer, publication, and topic articles, including newest posts and weekly popular picks, plus readable article text; member-only stories remain limited to visible previews.
- [Tumblr API](https://fous.com/tools/tumblr.md): Tumblr blogs and posts.
- [All Social tools](https://fous.com/tools/category/social)
