Getting every single limited a player has without reaching the API limit?

I’m trying to make a game like Trade Hangout, where you can see every single limited a user has. I’ve followed this tutorial to make a simple proxy using CloudFlare. But, after a second of sending get requests to this API: https://basicproxy.---.workers.dev/inventory/v1/users/" .. userId .. "/assets/collectibles?assetType=All&sortOrder=Desc&limit=100, it reaches the request limit. Does anyone know how I can fix this (I think I need a rotating proxy, but I have no idea how to do that)? Thanks!

Have you tried roproxy?

This is done through a process called pagination. Basically the first request you make without a cursor, also returns a piece of metadata often called cursor or nextPageCursor in the JSON response body. To fetch the next page all you have to do is to attach this returned cursor to the request url on your next request(either cursor={cursor} or nextPageCursor={cursor} depending on the API, you can check the documentation). When the returned cursor is null/nil it means that there are no more pages to return(you have reached the last page). This process occurs on the background when you browse your inventory page, the next page cursor(or last page cursor) is fetched every time you press the arrow to go to the next page of your inventory.

1 Like

I did for a little bit, but I’d rather make my own than rely on a 3rd party proxy:

What a coincidence! This announcement was made just 30 minutes after I made this post. It should allow for you to get a players inventory without reaching API limits quickly.

For now, I found this solution:
Rolimons has an API called https://api.rolimons.com/players/v1/playerassets/userid which returns a list of collectibles the user has. You can use this alongside https://api.rolimons.com/items/v2/itemdetails to get the rap, value, demand, etc.

I’m using the same method, I haven’t hit any limits yet. are you getting limited by cloud flare or roblox?

I was getting limited by Roblox, I’m making a trading hangout sort-of-game, so I need to get a bunch of inventories fast, I also needed their full inventory. Since Roblox uses a pagination method I would need to send a couple of GET requests if I wanted to get a large inventory, for example Robloxs account has 2-3k items. I’m using a combination of scraping rolimons website and using their API, I’m very happy with the results!

(WIP) Defintely could be a little faster, though. I’m sure I’ll figure out a way with caches and what not:

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