Api error 403 forbidden

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

fixing the code because i am not very good at httpgets

  1. What is the issue? Include screenshots / videos if possible!

i am trying to make a website that has a roblox avatars collection and it tests if you have enough robux to buy it, and if not it won’t show up.

problem: it doesn’t even return anything

GET: https://api.roblox.com/currency/balance

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

using roproxy (roblox proxy)
and yes, i couldn’t find anyone has the same problem

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

var xhr = new XMLHttpRequest();
        var url = 'https://api.roblox.com/'+a; // a = currency/balance.
        xhr.open("GET", url, true);
        xhr.onreadystatechange = function () {
        	// console.log(this.responseText)
            if (this.readyState == 4 && this.status == 200) {

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.