There's instructions here on using GET to retrieve the usernames. You should see this in each of the responses:
"username": *****
How many uids do you have that needs to be converted? And as the result do you just need the usernames or uid and username both in a csv?