Bluesky custom feed posts API
The posts in a custom feed, as a logged-out visitor sees it, up to 100 a page.
GET /v1/bluesky/feed/posts1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/bluesky/feed/posts?url=https%3A%2F%2Fbsky.app%2Fprofile%2Fbsky.app%2Ffeed%2Fwhats-hot&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:wu2dqwsxfi2lgkwqq4lsnzs2/app.bsky.feed.post/3n33nshgr6k2o", "cid": "bafyreig47sx4hzlqx4pdrej5ajtu6eqjz5t3cqf7mv5nqgqyc2g5xlazw4", "author": { "…": "7 fields" }, "record": { "…": "5 fields" }, "embed": { "…": "6 fields" }, "replyCount": 1, "repostCount": 45, "likeCount": 111, "quoteCount": 1, "bookmarkCount": 4, "…": "2 more fields" }, "feedContext": "th-food_drink" }, "… 4 more" ], "cursor": "eyJvIjoiMjAyNi0xMS0yNFQxMToxOTo0OC4zMTA1ODM4NzRaIiwibiI6IjIwMjYtMTEtMjRUMjM6MTk6…"}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | The feed: a bsky.app URL or its at:// URI. Example: https://bsky.app/profile/bsky.app/feed/whats-hot. |
limitquery | integer | Items per page, 1 to 100. Default 30. |
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 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.
Bluesky is a trademark of Bluesky Social PBC. We are not affiliated with or endorsed by Bluesky.