Hello I am wondering how I can get around the ‘Trust Check Failed’ error. I am quite new to this so I am still a little lost on what I am doing. Any help would be greatly appreciated.
local url = "https://catalog.roblox.com/v1/search/items/details?Category=11&Subcategory=54&cursor=2_1_38e330755fae0b79bb83e82b51c3e70c"
local data = game:GetService("HttpService"):GetAsync(url)
print(data)
What I am trying to achieve is to use HTTP service to access the catalog so that I can create a database of catalog items of my choice. I am trying to determine how I can figure out the different pages and a proxxy I could possibly use? I need a little bit of explaining and guidance.
You may not use the Roblox API from a Roblox server. To get around this restriction, you could use a proxy. There are numerous tutorials on the DevForum already.
local url = "https://catalog.roproxy.com/v1/search/items/details?Category=11&Subcategory=54&cursor=2_1_38e330755fae0b79bb83e82b51c3e70c"
local data = game:GetService("HttpService"):GetAsync(url)
print(data)
Will I ever have to change the url link in the future or can it always use that proxy? Also, this will allow me to get ALL catalog items in the catalog?
Well I am saying like, for whatever category I want I can start on page 1 check through the data and see if there is a next page and then get the next page and ultimately do the same thing until the final page.
Would that work? My only concern is that when I go to the catalog and check on some of the categories, the farthest page number I can go to is page 17. So like will that interfere with how many hats will ACTUALLY show up?
If I needed the roblox api for ALL items in the catalog, what would that be?
You will if that proxy ceases operations. Hence it’s best to host your own proxy, that way you can be assured that it is still operational. The other benefit of hosting your own proxy is that it’s dedicated to you & isn’t being used by a myriad of other users.
If you want to dispatch a request for all catalog items then you’ll need to remove all of the parameters (but the page cursor parameter) from the query string as those parameters determine what type/kind of items are queried.
It is possible to scrape pages of items beyond the 17th page with this API endpoint, the following request for example would scrape a list of items from page 18.