Httpservice is not allowed to access roblox resources

Hello, I am trying to see if I can view inventory it and it comes up with this error:
httpservice is not allowed to access roblox resources
I am not sure I this is happening here is my code:

local HttpService = game:GetService("HttpService")

local URL = "https://inventory.roblox.com/v1/users/436372211/can-view-inventory"

local response = HttpService:GetAsync(URL)

local data = HttpService:JSONDecode(response)

print(data)

All help is much appreciated!

1 Like

As the Error states, Roblox doesnt allow you to view its own Resources, and for that, you need a proxy (Is that right?)

What is a proxy? I am new to using API

@DasKairo is right: you need a proxy.

A proxy is some software hosted on the backend of a web-server that forwards requests from the URL you access to a target URL.

Instead of accessing https://inventory.roblox.com, you might access a proxy someone hosted at https://inventory.someproxy.com.

A good proxy for the ROBLOX API I use is roproxy. Instead of accessing https://inventory.roblox.com/v1/users/436372211/can-view-inventory, simply access https://inventory.roproxy.com/v1/users/436372211/can-view-inventory.

11 Likes

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