Need Help Understanding the Usage of Roblox Discovery API

I have been trying to use the Roblox Discovery API to fetch Omni Recommendation Metadata, but I’m facing some difficulties. I would appreciate any assistance in understanding how to properly utilize this API.

The request URL I’m using is “https://apis.roblox.com/discovery-api/omni-recommendation-metadata”, I’m uncertain about the correct way to call it. Could someone please provide guidance on the API call structure and how to get the required payload?

Here is an example of the correct payload:

{
  "contents": [
    {
      "contentType": "Game",
      "contentId": 3087787176,
      "contentMetadata": {
        "Score": "10"
      }
    },
    {
      "contentType": "Game",
      "contentId": 26216381,
      "contentMetadata": {
        "Score": "9.999"
      }
    },
  ],
  "sessionId": "2a0e4e70-b1cb-4b5d-b4da-3447c9b49f07"
}

I have reviewed the API documentation, but I couldn’t find clear instructions on how to structure the payload fields. Specifically, I’m unsure about the fields required and their respective formats.

I’m not familiar enough with API calls to give you a definite answer, but I seen this that may help you.

1 Like

Thank you, but I have already read about this topic.
How can I obtain the session ID?

You can just generate a random UUID for the session ID, which is what Roblox does anyways. i.e. with crypto.randomUUID(). Additionally, contentMetadata isn’t required and is just metadata left from the /discovery-api/omni-recommendation endpoint.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.