Roblox WEB API - TooManyRequests, but why?

var options = {
	method: 'POST',
	url: "https://catalog.roblox.com/v1/catalog/items/details",
	headers: {
		"Content-Type": "application/json",
		"Cookie": cookie.serialize('.ROBLOSECURITY', token),
		"X-CSRF-TOKEN": '**********'
	},
	body: JSON.stringify({
		"items": [
			{
				"itemType": "Asset",
				"id": **********
			}
		]
	})
}
request(options, function (error, response, body) {
	console.log(error, body);
});

Why does this give me {"errors":[{"code":0,"message":"TooManyRequests"}]}? I only sent one request.

1 Like

I assume you have sent previous requests to the roblox api? also if this is running on the backend, if multiple users use your app, your ip will be the one logged for too many requests over the user using the app.

I just created a new account and I had run this couple times on my backend. I even tried on different IP.

Alright I fixed it by adding X-Requested-With: XMLHttpRequest header to my POST request.

1 Like