是否可以通过 API 在尝试注册前检查新用户名的有效性?

You might be interested in reading this

FTR, you want the /u/check_username endpoint :wink: