Roblox API - How to get userid from username?

Hi.
I’m making a python project and wondering how would I get userid from username. I don’t think I’ve ever used Roblox APIs on my own so here it is:
Basically, where should i put username to get its userid?
https://api.roblox.com/users/get-by-username

Thank you!

1 Like

To get a UserId from a UserName simply use this API:

https://api.roblox.com/users/get-by-username?username=UserName

I use that API for a ton of things, especially web scrapping with my Discord Bots to get user information.

IE:

12 Likes