How can I load all the gears on roblox onto my game?

So I am trying to make a random gear generator which chooses a random gear on all of roblox. I need a type of library for this. I also want to know how to get specific information about that gear, such as what type of gear it is(social, fighting, etc.) How would I get this type of library?

2 Likes

You could always try using the Catalog API, if you don’t want to insert all the gears into your game. Then, from that you just use InsertService to get the gear into the game.

2 Likes

@Crystalflxme is right, the only reasonable way to fetch the data is to use the Catalog API through a proxy, specifically with the parameter Category = 5 , where 5 represents gears.
(https://search.roblox.com/catalog/json?Category=5)

4 Likes

How do I do that? Type it into a script somehow?

2 Likes

I’m pretty sure you use HTTPService with a GET request for the URL. I’m not entirely sure, though.

1 Like

Try making a proxy and hosting it on glitch.
You have to learn node.js (which is extremely easy) and you just use this library called express-http-proxy. ( Also express )

Here’s the code you use:

const proxy = require('express-http-proxy');
const app = require('express')();

app.use('/', proxy('www.roblox.com'));

app.listen(3000);

If you want, you can just steal from my app:

The reason why you can’t just “use http service on roblox” is because roblox doesn’t allow it. You’ll have to use a proxy.

If you want to actually use the code on roblox you can:

local CatalogList = HttpService:GetAsync("https://roblox-proxy-example.glitch.me/catalog/json?Category=5") -- for gears of course, replace with your app

Learn more about how to use it here:

4 Likes