the users API will let you do this.
https://api.twitch.tv/kraken/users?AndreMatosdeSousa
will return you JSON about the user, including their user id. A valid client id must be included in the headers. See https://dev.twitch.tv/docs/v5#translating-from-user-names-to-user-ids for more info