Http request, get an array

Hey! o/ Thank you for reading

Just a quick question, how to get an array with many different info about the player using the HttpService? I searched some topics about it, but I never used this service and Im confused :v
Example:

local HTTP = game:GetService("HttpService")
local infoArray = HTTP:JSONDecode(
	HTTP:GetAsync("https://friends.rprxy.xyz/v1/users/1816810703/friends/count"),
	HTTP:GetAsync("https://friends.rprxy.xyz/v1/users/1816810703/followers/count")
)

for _, d in pairs(infoArray) do
	print(d)
end

Thank you for ur help c:

1 Like

idk how to use http but hi try making the title more specific

2 Likes

Maybe I should make a new GetAsync per request and add each one into the table? :v
I already tried many different ways… I just dont know JSON at all :v

I checked the International Space Station http request. And the NASA JSON request which is this…

Im trying to understand the JSON code in this roblox APIs too but its new for me and cofusing :v
https://api.roblox.com/docs?useConsolidatedPage=true

Fㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
Maybe make the title more specific

1 Like

Thank you! Could you help me to make a more specific Title my dear friend? xD

Try this:

local HTTP = game:GetService("HttpService")

link1 = "https://friends.rprxy.xyz/v1/users/1816810703/friends/count"
link2 = "https://friends.rprxy.xyz/v1/users/1816810703/followers/count"

local infoArray = {
    HTTP:JSONDecode(HTTP:GetAsync(link1)), HTTP:JSONDecode(HTTP:GetAsync(link2))
}

for _, d in pairs(infoArray) do
	print(d)
end
1 Like

Cheese you are totally right… I already tried to do this, but I failed and I dont know why. THANK YOU SO MUCH!!! :333

EDIT: now I know why I failed… I forgot the brackets ¬¬ :v