HEAD
is the most effecient for existence checks:
HEAD /users/{username}
Request a user's path, and return a 200
if they exist, or a 404
if they don't.
Mind you, you probably don't want to be exposing endpoints that check email addresses. It opens a security and privacy hole. Usernames that are already publicly displayed around a site, like on reddit, could be ok.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…