How to get a game's information from a game ID?

I am making a game where you can search up games by putting a game ID in a TextBox, and you can see the game name, image, etc.

The thing is, I don’t know if something like this even exists, because I have scoured the net for answers and I have yet to find a good answer.

Sorry if this doesn’t really explain what I am trying to achieve.

1 Like

I’m sure this might help you
https://games.roblox.com/docs#!/v1

1 Like

Use something like this:

local mps = game:GetService("MarketplaceService")
local gameid = 00000000 --game id here
local info = mps:GetProductInfo(gameid)

if info then
    print(info.Name)
end

Thats MarketplaceService, the thing used for products and gamepasses.
I tried this and it didn’t work.

No, this can also be used for games.

local mps = game:GetService("MarketplaceService")
local gameid = 00000000 --game id here
local info = mps:GetProductInfo(gameid)

if info then
    print(info.Name) --game name
    print(info.IconImageAssetId) -- game's icon image ID
end
4 Likes

Oh sorry, I didn’t know that, apologies.
Again, I am so sorry, sorry for being so full of myself.

Have you looked at the link I sent you?
You need to make a GET request using that link, and it should return an encoded json string.
Decoding it using HTTPService will give you a table with the information. It is formatted as shown under it’s respective tab on the site.
This is all coming from what I found in a matter of 3 minutes. ¯\_(ツ)_/¯

I don’t know anything about HTTPService, sorry.

If you don’t know anything about it. Just look at the docs for it.
https://developer.roblox.com/en-us/api-reference/class/HttpService