All badges retrieve API: How to retrieve all badges and award them when player joined the game

I tried to create this, but this isn’t working:

local http = game:GetService(“HttpService”)
local universeId = 5706399972
local data = http:GetAsync(“https://badges.roproxy.com/v1/universes/“..universeId..”/badges?limit=100&sortOrder=Asc”)

if data then
data = http:JSONDecode(data)
local BadgeId = data.data.name
print(BadgeId)
end