Bluesky user posts API
An account’s posts and reposts, newest first, with Bluesky’s own filters (with or without replies, media only, video only), the pinned post on request, and a since/until window.
GET /v1/bluesky/profiles/{actor}/posts1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/bluesky/profiles/espn.com/posts?limit=5",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "feed": [ { "post": { "uri": "at://did:plc:x7d6j54pm22ufehkes6jo4jf/app.bsky.feed.post/3muznlkmspz2x", "cid": "bafyreiceaay7jrgqznvxhttsmizofewx3mj6bwebjtz76nd2wh4hix4fty", "author": { "did": "did:plc:x7d6j54pm22ufehkes6jo4jf", "handle": "espn.com", "displayName": "ESPN", "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzv…", "associated": { "…": "1 fields" }, "labels": [], "createdAt": "2024-11-25T21:49:49.345Z", "verification": { "…": "3 fields" } }, "record": { "text": "One more sleep until NFL football is BACK. 🏈", "createdAt": "2026-09-08T18:27:24.700Z", "$type": "app.bsky.feed.post", "embed": { "…": "2 fields" }, "facets": [] }, "embed": { "cid": "bafkreiflqivgi6afl5jv4qnmwzo3ks7jwe2dfurohsjfgafbtd5crw4gaq", "playlist": "https://video.bsky.app/watch/did%3Aplc%3Ax7d6j54pm22ufehkes6jo4jf/bafkreiflqivgi6afl5jv4qn…", "thumbnail": "https://video.bsky.app/watch/did%3Aplc%3Ax7d6j54pm22ufehkes6jo4jf/bafkreiflqivgi6afl5jv4qn…", "$type": "app.bsky.embed.video#view" }, "replyCount": 17, "repostCount": 13, "likeCount": 107, "quoteCount": 7, "bookmarkCount": 0, "indexedAt": "2026-09-08T18:27:30.159Z", "labels": [] } }, { "post": { "uri": "at://did:plc:x7d6j54pm22ufehkes6jo4jf/app.bsky.feed.post/3mpglmolczz2w", "cid": "bafyreid2eoctnshw7unb5ozrjqsy63kpqmwwvhj2xuxsfo4z5zucfazqum", "author": { "did": "did:plc:x7d6j54pm22ufehkes6jo4jf", "handle": "espn.com", "displayName": "ESPN", "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:x7d6j54pm22ufehkes6jo4jf/bafkreie4oxawqqsfzv…", "associated": { "…": "1 fields" }, "labels": [], "createdAt": "2024-11-25T21:49:49.345Z", "verification": { "…": "3 fields" } }, "record": { "text": "Former Tennessee Titans and Arizona Cardinals running back Chris Johnson revealed that he …", "createdAt": "2026-06-29T13:25:44.562Z", "$type": "app.bsky.feed.post", "embed": { "…": "3 fields" }, "facets": [] }, "embed": { "external": { "…": "4 fields" }, "$type": "app.bsky.embed.external#view" }, "replyCount": 17, "repostCount": 34, "likeCount": 140, "quoteCount": 16, "bookmarkCount": 1, "indexedAt": "2026-06-29T13:25:45.268Z", "labels": [] } }, "… 3 more" ], "cursor": "2026-06-11T12:55:41.169Z"}Parameters
| Name | Type | Description |
|---|---|---|
actorpath · required | string | Handle (espn.com, @jay.bsky.social), DID (did:plc:…) or a bsky.app profile URL. Example: espn.com. |
filterquery | "posts_and_author_threads" | "posts_with_replies" | "posts_no_replies" | "posts_with_media" | "posts_with_video" | Which posts: default posts_and_author_threads. One of posts_and_author_threads, posts_with_replies, posts_no_replies, posts_with_media, posts_with_video. |
include_pinsquery | "true" | "false" | true puts the pinned post first. One of true, false. |
sincequery | string | Only posts created on or after: YYYY-MM-DD or ISO 8601. Example: 2026-09-01. |
untilquery | string | Only posts created on or before: YYYY-MM-DD (whole day) or ISO 8601. Example: 2026-09-01. |
limitquery | integer | Items per page, 1 to 100. Default 50. |
afterquery | string | Cursor: the previous page’s cursor. |
Response fields
200 with a BlueskyFeed, in the AT Protocol’s own app.bsky lexicon JSON.
| Field | Type | Description |
|---|---|---|
feed | BlueskyFeedViewPost[] | |
cursor | string | Pass it as after for the next page; absent on the last page. |
Status codes
| Status | Meaning |
|---|---|
200 | A page of the account’s feed. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account, post, feed, list or starter pack does not exist, was deleted or taken down. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Bluesky is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How do I get the next page?
Pass the response’s cursor back as after. Bluesky’s cursors are stateless, so they keep working.
Are reposts included?
Yes, marked with reason of type reasonRepost. Use filter=posts_no_replies to drop replies.
Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.