Scott Watermasysk
BlueSky API - Domains
I have been experimenting with the BlueSky API.
I recently encountered what I thought was an authentication bug, but it turned out I was using the API incorrectly.
I find most of the BlueSky API to be overbearing, but they are just getting started, and if they can keep it open, it will be worth it in the end. Hopefully, in the long term, there will be some nice libraries that focus on the common paths and obscure most of the protocol stuff.
But for today, you need to be willing to work through a couple of things. One of those items is knowing which AP endpoint (domain) to use.
BlueSky has an overview here: API Hosts and Auth
The short version:
For unauthenticated access, you likely want to use: api.bsky.app (and maybe even public.api.bsky.app for cached access)
For authenticated access (i.e., you are querying your own feed app.bsky.feed.getAuthorFeed`), you want to use bsky.social.