Hey there.
I wanted to make a quick script with https://users.roblox.com/v1/usernames/users
however the API seems to return 415 NO MATTER WHAT I do.
I use native JavaScript:
var userFetch = await fetch("https://users.roblox.com/v1/usernames/users", {
"headers": {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
"body": JSON.stringify(
{
"usernames": [
"Test"
],
"excludeBannedUsers": true
}
),
"method": "POST",
"mode": "no-cors",
});
Any help?