Is there an API to get a game's name?

In simple, is it possible to get the name of a game without using HTTP Service?

I had a pot-shot at
marketplaceService:GetProductInfo(game.GameId, Enum.InfoType.Asset).Name
however that only returns the name of assets and gamepasses.

I’ll be retrieving the name for games I don’t own therefore I can’t use HTTP Service or define the game’s name beforehand:

1 Like

MarketplaceService:GetProductInfo works as expected for me:

local marketplaceService = game:GetService("MarketplaceService")

local isSuccessful, info = pcall(marketplaceService.GetProductInfo, marketplaceService, 606849621)
if isSuccessful then
    print(info.Name) --> Jailbreak
end

You need to pass a place ID, not a game ID (DataModel.PlaceId).

11 Likes

Of course :man_facepalming:

Thank you

1 Like

Yeah. Unfortunately there doesn’t seem to be a way to get the name of a game, though there is one to find the name of a place. Places are assets, after all.

On the other hand, if you’re feeling adventurous, you could look through the Game endpoints documentation. Specifically, GET /v1/games.

It seems that Dandy’s already gotten you what you need though. Your title caused me confusion because it uses common-known terminology, not direct terminology.

Common Proper
Server Instance
Game Place
Universe Game
3 Likes