I am 12904, I am a full time programmer, I have been searching for hours trying to find a solution to this problem.
So I own a 300 member clothing group and our homestore is in the middle of being built, for it I am trying to have it where it auto updates to the clothing in the group store using the catalog API. Sadly everything I have found on the topic said to use a Proxy, I currently do not have the resources or web development knowledge to do that.
So with that said, is there a way to do it without using a Proxy and if there is not, is there a easy proxy that is just calling HTTP service to get a link?
Just to clarify, do you mean fetching the list of your group clothes? If so then it’s pretty easy to do.
First find your preferred website hosting (000webhost is a free one).
Then once you create a new website, go to the file manager and create a new php file in the public_html directory. Let’s name it catalog.php.
Now time for the code of your “proxy”. Since in this case you will always request the same url, something like this should do the trick:
(I filled the group id for you, assuming the group you mean is Hex Designs [HD])
Save the file and click to view it in your browser. If it outputs the json it means it works!
Now all that’s left to do is copy the url and use it in your scripts with HttpService:GetAsync()
I believe this would only grab up to 42 items, would it not?
Clothing groups tend to exceed the first page item limit so you would need to index through PageNumber.
If not, that just streamlined a recursive-esque function I made to aggregate a group store’s asset IDs.
Im using the endpoint https://search.roblox.com/catalog/json?CreatorId=${groupId}&CreatorType=Group&SortType=RecentlyUpdated&PageNumber=%d&ResultsPerPage=42, on vacation currently, but I may have time to set up a webhook.
I recommend using http://rprxy.xyz, they are a proxy website that you can send HTTP requests to and it just pings ROBLOX. Useful for API.
Just follow the instructions on the website to use it ( It is literally just string concatenation and some HTTPService ).
It also has some cool api of its own and you can use this to search music etc. However in your case, the above endpoint would be useful, posted by @BixbyAlan.
I’ve already tried using it, it said URL blocked sadly. I appreciate all of the comments, Ill try these out and get back to y’all. Thanks for taking your time to help!
I got a question, which link do I use with HTTP service? When I try to get the website address( In my case: http://hexdesigns.000webhostapp.com) , it just gets back the HTML from the hosting platform.
local Http = {}
local HttpService = game:GetService("HttpService");
local Proxy = "https://cors-anywhere.herokuapp.com/";
function Http:GET(link)
local Data = {
Url = Proxy..link;
Method = "GET";
Headers = {
["x-requested-with"] = "XMLHttpRequest";
["Content-Type"] = "applicaition/json"
};
}
local Success,Res = pcall(HttpService.RequestAsync,HttpService,Data);
if not (Success) then
warn(Res);
return Res;
end
if (Success) then
return Res;
end
end
return Http