Getting the game a badge is from by scripting

I have a really long table of badge ids from multiple games, And i would like to get the games theyre from by code, Is there any way to fetch that? :GetBadgeInfoAsync() doesn’t help me in getting the game a badgebis from, If there isn’t any built in function/event that’d help me on this, I can use any HttpService API that’d help, Thank you.

use HttpService to fetch the games badge is from:

local HttpService = game:GetService(“HttpService”)
local badgeIds = {633853, 404401, 592859}

for _, id in ipairs(badgeIds) do
local data = HttpService:JSONDecode(HttpService:GetAsync(“https://games.roblox.com/v1/badges/” … id))
print(“Badge:”, id, “Game (Universe):”, data.universeId)
end

make sure you have HTTP Requests enabled

1 Like