Bluesky API v1
Public Bluesky data as JSON, from https://api.fetchlayer.dev/bluesky: posts, replies, quotes, who liked and reposted a post, profiles, an account’s posts, likes, followers and following, search, trending topics, custom feeds, lists and starter packs. FetchLayer is not affiliated with, endorsed by, or sponsored by Bluesky.
Bluesky API at a glance
This is the reference: every endpoint, its parameters and the fields it returns. The essentials first.
- Returns
- Posts with exact counts, replies, profiles, likes, search, feeds and trending topics, as typed JSON.
- Endpoints
- 22 endpoints, grouped as Posts & replies, Accounts, Search & trending, Feeds, lists & starter packs and Utilities. See them all
- Request
POST https://api.fetchlayer.dev/bluesky/<endpoint>with a JSON body.- Auth
- Your FetchLayer API key as a Bearer token. One key works for every platform we support. Authentication
- Cost
- 1 credit per page of results a call returns, half price while the API is in beta; the exact figure is on every response. Credits are $1.99 per 1,000 pay-as-you-go, plans start at $25 a month, and new accounts get 30 free requests.
- MCP
- Also on our MCP server for AI agents, with the same key and the same billing. Connect an agent
What teams use it for, with worked examples: Bluesky API
Available endpoints
/post-detail POST Read the replies to a post /post-replies POST List the posts that quote a post /post-quotes POST List the accounts that liked a post /post-likes POST List the accounts that reposted a post /post-reposts POST Get an account’s profile /user-profile POST List an account’s posts /user-posts POST List the posts an account liked /user-likes POST List an account’s followers /user-followers POST List the accounts an account follows /user-following POST Search posts /search-posts POST Posts carrying a hashtag /hashtag-posts POST Search accounts /search-users POST What is trending now /trending-topics POST The posts behind a trending topic /topic-posts POST Read a custom feed /feed-posts POST Describe a custom feed /feed-detail POST Read a list and its members /list-detail POST Recent posts by a list’s members /list-posts POST Read a starter pack /starter-pack POST Parse a Bluesky link /resolve-url GET Download an image or video /media Visibility to people without a Bluesky account: yours to honour
Bluesky lets people ask that their content be shown only to people with a Bluesky account. We return public data with that preference attached, and honouring it is your responsibility. Every account and every post carries loggedOutVisibility:
public: the account’s preferences were read and it does not ask to be hidden. Show freely.opted-out: the account asks to be shown only to people with a Bluesky account. If you show the data to people who may not have one (a public page, a report, a feed), do not show this content.unknown: the preference was not available in this answer. Treat it as not public until you know better: look the account up with/user-profile.
A post’s label is its author’s. excludeOptedOut: true (off by default) leaves out only entries whose account is known to be opted-out: their posts and reposts, their place in a follower, liker or member list, and a quoted post or reply parent by them. Entries marked unknown are kept. The account or post you asked for is never left out itself. Every result carries excludedCount, and with the flag a page can hold fewer entries than limit. Mentions of such accounts inside other people’s posts are returned as written.
Content Bluesky removed is never returned
Accounts and posts Bluesky itself took down, hid or suspended are left out of every result, with or without excludeOptedOut, and a note gives the number. Asking for one directly is a 404. Media downloads check the file’s owner account; the status of the individual post a file belongs to is not checked, so check the post with /post-detail first when that matters.
Paging
Listings take limit and, when more exist, return hasMore: true with a nextCursor to pass back unchanged as cursor, with the same other parameters. hasMore: false is the end, and is reported only when Bluesky says there is nothing more. hasMore: true with nextCursor: null means more exists but cannot be read further, and a note says so. A reply tree (/post-replies) and a top search are one read with no further pages.
Billing
1 credit for /user-profile (one account or up to 25), /post-detail, /post-replies, /trending-topics, /feed-detail and each /media request. The listings (an account’s posts, followers and following, quotes, likers and reposters, searches, topic, feed and list posts, list and starter-pack members) are 1 credit per 100 entries returned, and /user-likes 1 credit per 25 likes returned, minimum 1. /resolve-url is free. A failed request is not billed. When your timeoutMs runs out, a listing returns what it has and is billed for what it returned.
Requests are strict
An unrecognised body field is a 400 naming it, not a silent no-op, so a typo fails loudly instead of being answered with the wrong data.
What this API does not return
- The accounts someone blocks. Public on Bluesky, deliberately not offered.
- Feeds and timelines that depend on who is reading, bookmarks, mutes and direct messages.
- View counts. Bluesky has none.
- Further pages of a top search or of a large reply thread.
- Content Bluesky removed, as above.