Possible to check if username is available through API?

Hi folks,

Is there a way to check if a username is available through the API? I’m thinking about the page, on twitch, on which you can check if a username is available - https://passport.twitch.tv/logins/new.

I don’t see a way to check for that same information through the API.

If not, it’d probably be possible to mimic those same requests that that page makes, right?