How to get all Gamepasses from a game?

Hello! I made a GUI that gets all the Products, however, I’m not sure how to do the same to Game passes. I remember there was a HTTP Request to some site to get all the Game passes, but I don’t remember what site it was.

2 Likes

check this forum

1 Like

There was an HTTP API for it too, anyone know the link for it? I don’t want to manually add all the websites

I believe you are talking about this api? https://api.roblox.com/marketplace/game-pass-product-info?gamePassId=id
Edit: there is no API to get all gamepasses, but you can check all API’s here: http://api.roblox.com/docs

1 Like

Let me check, I will message if it doesn’t work

I sadly ended up using this method, as you can’t get all the gamepasses from a game

Hey, there is a Web API for this.

https://games.roblox.com/v1/games/universeId/game-passes?limit=100&sortOrder=Asc

I was working on something using this myself, and I thought it may be useful to you as well (and others in this topic).

You can get your universeId in Roblox using game.GameId (make sure your game is published).

9 Likes

gives me the error “HttpService is not allowed to access ROBLOX resources” when using getasync

It’s currently not possible to access Roblox Web API’s through HttpService.
One of the ways to deal with this is the usage of proxies. They basically route the request through a different server as a sort of middleman (Google it if you need more information).

There are a couple free proxies you could use, but be advised it’s currently not recommended to use public proxies that you don’t control. They could introduce vulnerabilities, have security flaws or steal/save private information you provide (cookies for example).

A free, public and known Roblox proxy can be found here:
RoProxy.com - A free, rotating proxy for Roblox APIs - Resources / Community Resources - DevForum | Roblox

PSA:
PSA: Stop using Roblox proxies! (roproxy, rprxy.xyz, rprxy) - Resources / Community Resources - DevForum | Roblox

Hopefully Roblox introduces a native way of doing this without the usage of proxies. Through the Roblox Open Cloud API for example.

2 Likes

any idea if there’s an update to this?

To my knowledge this should still work. I recommend running your own proxy however.
You can find multiple open-source projects that are specifically catered to proxying the Roblox API for usage in Roblox games.

You can find RoProxy (a free, public and known Roblox proxy that should still work) in my message above.

However do know that it isn’t advised to use a free Roblox proxy you don’t have control over.

It’s still not possible to do this in a Roblox game natively without the usage of the external Roblox web API (please correct me if I’m wrong).

2 Likes

Or, I don’t know, maybe, something similar to game:GetService(“MarketplaceService”):GetDeveloperProductsAsync()??? Ya know?

1 Like

Yeah that would be even better.