There is no API to get a user’s account description from a username as far as I am aware. You could use some external source and try to extract the information from the web page, but I’m not really sure if this would be easy.
In PHP, you can send a cURL request to the user’s profile (Log in to Roblox) and scrape their blurb. However, I’d definitely recommend learning Node.js
The library used in the linked article is one I used in a college project that scraped web pages for product allergy information. It’s excellent, but in hindsight, I wish I’d used Node, rather than PHP for the app
Ok, I’ve done some simple digging around, and I have some information for you that will hopefully help you in your web scraping efforts.
The CSS class for the bio is ”profile-about-content-text linkify” The profile is a span element. I can’t find anything else on the page with those exact criteria. Maybe search for that to get the text?
A bulky amount of the page source is JavaScript, which is useless to us. You can remove the entire head section of the page, and all script tags.
The page uses Angular, so you’re going to come across a load of ”ng-???” stuff here and there.
local http = game:GetService("HttpService")
local get = http.GetAsync
local jsonDecode = http.JSONDecode
local proxyUrl = "roproxy.com" --Put your proxy's domain here.
local baseUrl = "https://users."..proxyUrl.."/v1/users/%d"
local function getUsersDescription(userId : number)
local requestUrl = string.format(baseUrl, userId)
local success, result = pcall(get, http, requestUrl)
if success then
if result then
local success2, result2 = pcall(jsonDecode, http, result)
if success2 then
if result2 then
return result2.description
end
else
warn(result2)
end
end
else
warn(result)
end
end
local userDescription = getUsersDescription(1)
print(userDescription) --Welcome to the Roblox profile! This is where you can check out the newest items in the catalog, and get a jumpstart on exploring and building on our Imagination Platform. If you want news on updates to the Roblox platform, or great new experiences to play with friends, check out blog.roblox.com. Please note, this is an automated account. If you need to reach Roblox for any customer service needs find help at www.roblox.com/help