Roblox's "games" api

I’ve been trying to find the new roblox games api, I have a script that uses the old one and i’m trying to get it working again. Any ideas on what I should do?

local url = "https://www.roblox.com/discover?Keyword=" .. word .. "&model.startRows=" .. listStart .. "&model.maxRows=" .. (listStart + numPages) .. "&model.isKeywordSuggestionEnabled=false&model.sortPosition=0&model.sortOrder=1"
1 Like

Raw JSON endpoints:
https://games.roblox.com//docs/json/v1
https://games.roblox.com//docs/json/v2

Swagger UI:
https://games.roblox.com//docs/index.html
I can’t find the old swagger docs for v1 games API, good luck to you if you want to find that.

Unless something has changed recently, I believe you need an x-csrf-token header in order to access these API endpoints (though that may have just been for the gamejoin APIs correct me if I am wrong).

To get the value to pass for that my method has always just been sending a GET request to https://auth.roblox.com/v2/logout but you do need to pass your .ROBLOSECURITY code as a cookie.

The //docs pages are no longer updated

Games API V1: Games Api v1 | Documentation - Roblox Creator Hub
Games API V2: Games Api v2 | Documentation - Roblox Creator Hub

1 Like

It seems like you are using the discover api for your request. Since you provided a keyword I cant be sure if it is a search api or the discovery (or newly branded charts) api so I will provide both of them:

  1. Search api has moved to this endpoint; https://apis.roblox.com/search-api/omni-search?searchQuery=KEYWORD&sessionId=SESSIONID

The session id is a guid likely for analytic purposes.

  1. Explore (discovery) api has moved to this endpoint: https://apis.roblox.com/explore-api/v1/get-sorts?sessionId=SESSIONID&device=computer&country=all

The session id is a guid likely for analytic purposes, you can customize device and country according to your needs.

As provided by others, the games api can be found through the swagger links or engine documents but search and explore api are undocumented.

Do you have discord so that I can send you the full code and you can maybe help me get this working?

Yes, it is the same as my username but I would prefer you asking here if that is okay for you.