When attempting to get the group ranks API, it gets returned as nil

I’m trying to get the offline player’s group rank which is working fine… Except that the number of parts in the returned array is 0 meanwhile when I enter it into a new tab, it shows all the groups and the ranks I’m in when I put my userId in. Couldn’t find any other posts with the same issue. Any help would be appreciated.

The script (server side script which is placed in ServerScriptStorage) is below.

groupid is a variable which is not a string, but instead a value which is my group’s id. userid is my userId, once again, it’s a variable which is not a string but instead a value being my userId.

local data = Https:GetAsync("https://groups.rprxy.xyz/v2/users/"..tostring(userid).."/groups/roles")
local fulldata = Https:JSONDecode(data)
-- The problem here is that the for loop doesn't run because the amount of objects in the "fulldata" array gets returned as 0 even though there are many groups I'm in.
for i, v in ipairs(fulldata) do
if v.group.id == groupid then
print(v.role.id)
end
end

When you decode the json, it gives you a dictionary with a “data” key, not an array. Try

for i, v in ipairs(fulldata.data) do