Reference for the Games v1 endpoints on Roblox.
Base URL: https://games.roblox.com
GET /v1/games
Gets a list of games’ detail
Usage
import { fetchApi } from ' rozod ' ;
import { getGames } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGames , {
universeIds: /* number */ ,
languageCode: /* string? */
Name Type Required Description universeIdsnumberYes A list of universe Ids. Cannot exceed a maximum of 50 IDs. languageCodestring?No The HTML language code [optional].
Field Type Description dataobject[]See below
data[] item fields:
Field Type Description idnumberrootPlaceIdnumbernamestringdescriptionstringsourceNamestringsourceDescriptionstringcreatorobjectSee below pricenumberallowedGearGenresstring[]allowedGearCategoriesstring[]isGenreEnforcedbooleancopyingAllowedbooleanplayingnumbervisitsnumbermaxPlayersnumbercreatedstringupdatedstringstudioAccessToApisAllowedbooleancreateVipServersAllowedbooleanuniverseAvatarType`1 2 genrestringgenre_l1stringgenre_l2stringuntranslated_genre_l1stringisAllGenrebooleanisFavoritedByUserbooleanfavoritedCountnumberlicenseDescriptionstringrefundLinkstringlocalizedFiatPricestringrefundPolicyobjectSee below
creator fields:
Field Type Description idnumbernamestringtypestringisRNVAccountbooleanhasVerifiedBadgeboolean
refundPolicy fields:
Field Type Description policyTextstringlearnMoreBaseUrlstringlocalestringarticleIdstring
Status Description 400 8: The universe IDs specified are invalid. 9: Too many universe IDs were requested. 429 4: Too many requests have been made.
GET /v1/games/:placeId/private-servers
Get list of private servers user can access for given game id.
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesPlaceidPrivateServers } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesPlaceidPrivateServers , {
excludeFriendServers: /* boolean? */ ,
Name Type Required Description placeIdintegerYes The Id of the place we are geting the private server list for. excludeFriendServersboolean?No cursorstring?No The paging cursor for the previous or next page. sortOrderenumYes The order the results are sorted in.
Field Type Description gameJoinRestrictedbooleanpreviousPageCursorstringnextPageCursorstringdataobject[]See below
data[] item fields:
Field Type Description idstringmaxPlayersnumberplayingnumberplayerTokensstring[]playersobject[]See below fpsnumberpingnumbernamestringvipServerIdnumberaccessCodestringownerobjectSee below
players[] item fields:
Field Type Description playerTokenstringidnumbernamestringdisplayNamestring
owner fields:
Field Type Description hasVerifiedBadgebooleanidnumbernamestringdisplayNamestring
Status Description 400 1: The place is invalid. 7: Guest users are not allowed. 404 1: The place is invalid.
GET /v1/games/:placeId/servers/:serverType
Get the game server list
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesPlaceidServersServertype } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesPlaceidServersServertype , {
serverType: /* unknown */ ,
excludeFullGames: /* boolean? */ ,
Name Type Required Description placeIdintegerYes The Id of the place we are geting the server list for. serverTypeunknownYes The type of the server we geting the server list for. excludeFullGamesboolean?No Exclude full servers. cursorstring?No The paging cursor for the previous or next page.
Field Type Description previousPageCursorstringnextPageCursorstringdataobject[]See below
data[] item fields:
Field Type Description idstringmaxPlayersnumberplayingnumberplayerTokensstring[]playersobject[]See below fpsnumberpingnumbernamestringvipServerIdnumberaccessCodestringownerobjectSee below
players[] item fields:
Field Type Description playerTokenstringidnumbernamestringdisplayNamestring
owner fields:
Field Type Description hasVerifiedBadgebooleanidnumbernamestringdisplayNamestring
GET /v1/games/:universeId/favorites
Returns if a game was marked as favorite for the authenticated user
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesUniverseidFavorites } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesUniverseidFavorites , {
universeId: /* integer */
Name Type Required Description universeIdintegerYes The Id of the universe.
Field Type Description isFavoritedboolean
Status Description 400 3: The universe’s root place is invalid. 401 0: Authorization has been denied for this request. 404 2: The requested universe does not exist.
POST /v1/games/:universeId/favorites
Favors (or unfavors) a game for the authenticated user
Usage
import { fetchApi } from ' rozod ' ;
import { postGamesUniverseidFavorites } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (postGamesUniverseidFavorites , {
universeId: /* integer */ ,
Name Type Required Description universeIdintegerYes The Id of the universe.
Field Type Description isFavoritedboolean
Type: unknown
Status Description 400 3: The universe’s root place is invalid. 401 0: Authorization has been denied for this request. 403 0: Token Validation Failed 11: You are not authorized to perform this action. 404 2: The requested universe does not exist. 429 4: Too many requests have been made.
GET /v1/games/:universeId/favorites/count
Get the favorites count of a specific game.
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesUniverseidFavoritesCount } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesUniverseidFavoritesCount , {
universeId: /* integer */
Name Type Required Description universeIdintegerYes The Id of the universe.
Field Type Description favoritesCountnumber
Status Description 400 3: The universe’s root place is invalid. 404 2: The requested universe does not exist.
GET /v1/games/:universeId/media
Get the game media data
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesUniverseidMedia } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesUniverseidMedia , {
universeId: /* integer */
Name Type Required Description universeIdintegerYes The id of the universe we get media data from.
Field Type Description dataobject[]See below
data[] item fields:
Field Type Description idnumberassetTypeIdnumberassetTypestringimageIdnumbervideoHashstringvideoTitlestringapprovedbooleanaltTextstring
Status Description 400 3: The universe’s root place is invalid. 404 2: The requested universe does not exist.
GET /v1/games/games-product-info
Gets a list of games’ product info, used to purchase a game
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesGamesProductInfo } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesGamesProductInfo , {
universeIds: /* number */
Name Type Required Description universeIdsnumberYes A list of universe Ids. Cannot exceed a maximum of 100 IDs.
Field Type Description dataobject[]See below
data[] item fields:
Field Type Description universeIdnumberisForSalebooleanproductIdnumberpricenumbersellerIdnumberfiatPurchaseDataobjectSee below
fiatPurchaseData fields:
Field Type Description localizedFiatPricestringbasePriceIdstring
Status Description 400 8: The universe IDs specified are invalid. 9: Too many universe IDs were requested.
GET /v1/games/multiget-place-details
Get place details
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesMultigetPlaceDetails } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesMultigetPlaceDetails , {
Name Type Required Description placeIdsnumberYes List of placeId to uniquely Identify a place
Array of objects:
Field Type Description placeIdnumbernamestringdescriptionstringsourceNamestringsourceDescriptionstringurlstringbuilderstringbuilderIdnumberhasVerifiedBadgebooleanisPlayablebooleanreasonProhibitedstringuniverseIdnumberuniverseRootPlaceIdnumberpricenumberimageTokenstringfiatPurchaseDataobjectSee below
fiatPurchaseData fields:
Field Type Description localizedFiatPricestringbasePriceIdstring
Status Description 401 0: Authorization has been denied for this request.
GET /v1/games/multiget-playability-status
Gets a list of universe playability statuses for the authenticated user
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesMultigetPlayabilityStatus } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesMultigetPlayabilityStatus , {
universeIds: /* number */
Name Type Required Description universeIdsnumberYes A list of universe Ids. Cannot exceed a maximum of 50 IDs.
Array of objects:
Field Type Description playabilityStatus`“UnplayableOtherReason" "Playable" isPlayablebooleanuniverseIdnumberunplayableDisplayTextstringplayableUxTreatmentobjectSee below
playableUxTreatment fields:
Field Type Description treatmentstringdataobjectSee below
data fields:
Field Type Description titleTextstringbodyTextstringprimaryActionTextstringsecondaryActionTextstring
Status Description 400 8: The universe IDs specified are invalid. 9: Too many universe IDs were requested.
GET /v1/games/recommendations/game/:universeId
Get games recommendations based on a given universe
Usage
import { fetchApi } from ' rozod ' ;
import { getGamesRecommendationsGameUniverseid } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getGamesRecommendationsGameUniverseid , {
universeId: /* integer */ ,
PaginationKey: /* string */ ,
IsTruncatedResultsEnabled: /* boolean */
Name Type Required Description universeIdintegerYes The universe to base recommendations on PaginationKeystringYes The key of a page, which includes the start row index and all other necessary information to query the data. This parameter is usually not needed for the first page. MaxRowsintegerYes The requested number of rows. IsTruncatedResultsEnabledbooleanYes Truncated Results
Field Type Description gamesobject[]See below nextPaginationKeystring
games[] item fields:
Field Type Description creatorIdnumbercreatorNamestringcreatorTypestringcreatorHasVerifiedBadgebooleantotalUpVotesnumbertotalDownVotesnumberuniverseIdnumbernamestringplaceIdnumberplayerCountnumberimageTokenstringisSponsoredbooleannativeAdDatastringisShowSponsoredLabelbooleanpricenumberanalyticsIdentifierstringgameDescriptionstringgenrestringminimumAgenumberageRecommendationDisplayNamestringcanonicalUrlPathstring
Status Description 400 1: The pagination key is invalid. 404 2: The requested universe does not exist.
GET /v1/private-servers/enabled-in-universe/:universeId
Checks if the private servers are enabled in the specified universe.
Usage
import { fetchApi } from ' rozod ' ;
import { getPrivateServersEnabledInUniverseUniverseid } from ' rozod/lib/endpoints/gamesv1 ' ;
const data = await fetchApi (getPrivateServersEnabledInUniverseUniverseid , {
universeId: /* integer */
Name Type Required Description universeIdintegerYes
Field Type Description privateServersEnabledboolean
Status Description 400 8: The universe IDs specified are invalid.