Checking whether a username is free sounds like a solved problem. Request the profile URL, read the status code, done.
It is not solved. I built a tool that checks one name across 62 sites from a phone, and almost all of the work went into the gap between that one-line theory and what the web actually returns.
The naive version and why it fails
The obvious implementation:
GET https://example.com/<username> 404 -> available 200 -> taken Every assumption in those three lines breaks somewhere.
Soft 404s
Plenty of sites answer 200 OK and render a "this account doesn't exist" page. The status code says the page is fine, because from the server's point of view it is - it successfully rendered an error. Status-code-only detection reports every one of these as taken.
Redirects that hide the answer
Some sites 302 an unknown profile to the homepage. Some redirect to a login wall, which means you get a 200 for a page that tells you nothing about the username. Follow redirects blindly and you cannot tell "exists" from "please sign in".
Reserved, suspended, deleted
A name can be registered but invisible, suspended, reserved by the platform, or freed after deletion with a cooldown before anyone can claim it. None of these states map cleanly onto a boolean, and different platforms represent them with different status codes.
Rate limits and bot defences
Check a handful of names in quick succession and you start seeing challenge pages and throttling. A checker running from a single server IP gets blocked much faster than one spreading requests across many devices.
Sites you simply cannot check
Some profiles render client-side, so the HTML tells you nothing without executing JavaScript. Others require a session. Shipping a headless browser inside a mobile app to solve that is not a reasonable trade for one boolean.
The design decisions that came out of it
45 automatic, 17 manual - and the 17 are not counted
Of the 62 sites, 45 can be checked programmatically with reasonable confidence. The other 17 cannot, so instead of guessing, the app gives a one-tap link that opens the profile for you to look at yourself.
The important part is that those 17 are excluded from the "checked" count. The temptation is to report 62 and quietly treat the hard ones as not-found, because the bigger number looks better. That is a lie that gets discovered the first time someone checks a name they own.
Three result states, not two
Page found -> a public profile exists under that name Nothing found -> no profile turned up Couldn't check -> the site did not answer clearly Collapsing the third state into either of the other two is where these tools lose credibility. "Couldn't check" is unsatisfying to display and it is the honest answer surprisingly often.
And even the first two are weaker claims than they appear. A found page does not prove who owns it. Nothing found does not mean the name is registrable - it may be reserved, blocked by naming rules, or held by a private account. The tool reports observations, not availability.
Requests go from the device, not a server
Checks run directly from the phone. No account, no backend, so no server of mine ever sees the name you typed.
That is a real privacy property with a real trade-off, and it belongs in the open: each of the 45 sites sees a request from your IP, exactly as if you had visited the profile yourself. Requests from many user devices also distribute naturally, which is gentler on rate limits than one server hammering the same endpoints.
If you are building something similar
- Compare page content, not just status codes. Fingerprint the not-found page per site.
- Decide what a redirect means per site. There is no general rule.
- Keep an explicit unknown state from the first commit. Retrofitting it later means rewriting the UI.
- Never promise availability. Promise observation, and say where to confirm.
- Expect per-site maintenance. Every redesign can change the fingerprint you rely on.
The uncomfortable conclusion is that there is no generic solution - it is 62 small integrations wearing a trench coat, and the honest answer is sometimes "I don't know".
I packaged this as Username Checker for Android, free with no account. Happy to answer implementation questions in the comments.
