# 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/workflows/bluesky
- Handle: `@bluesky`
- Category: [Social](https://fous.com/workflows/category/social)
- Source website: https://bsky.app
- Last verified: Sep 29, 2026
- Fous is not affiliated with Bluesky.

## Methods

### Get profile

Operation `get_profile`, version 1. 1 credit per call.

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 call.

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 call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@bluesky","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

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

### Is Fous affiliated with Bluesky?

No. Fous is not affiliated with Bluesky. This workflow reads the public bsky.app website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/tumblr.md): Tumblr blogs and posts.
- [All Social workflows](https://fous.com/workflows/category/social)
