https://api.github.com/users/yournamehere
Tell me the above one is working for you or not?
When I try the api link, I get back an ID and a bunch of other data. If I put something random in it, I get message: not found
No chance that Github will take the handle off them and give it to us too.
My point is, this is definitely a bug, since the above account is not a ghost account.
From sibling comment:
wheybags 0 minutes ago | root | parent | next [–]
My username is wheybags on github, I actively use the account,
both public and private repos, and it shows as available on your site.
This doesn’t sound like a ghost account.More to the point, I’m reasonably aggressive about registering my preferred nick, and your site thinks it is available where it is definitely in use by me.
GitHub shows available, it is not.
Based on what comes up as green vs. red when I test your site, it occurs to me you may be failing to detect the difference between public and private preference settings. For instance, if someone turned off public search preference, or public graph.
On the site, it says my account is available.
When I put something random on the api link, it returned the not found message.
I don't think it has anything to do with Ghost accounts, maybe your app has reached some quota limit...
https://api.github.com/users/myname shows myname as being active. The "updated_at" field shows 2021-11-16. Unless you're counting a 4-month break as being a "ghost account," there's some error.
----
Edit: And, in case you are counting a 4-month break as a "ghost," I looked up the most prolific GitHub user (according to some list), fabpot, and your site is also showing his name as available.
Aside from that though, this is a neat idea. If you can iron out the kinks you should be on to a really good platform here.