I’m trying to purchase a limited item from Roblox using the requests library.
Here is my code:
xsrfRequest = requests.post(authurl, cookies={
'.ROBLOSECURITY': cookie
})
buyreq = requests.post( # SENDING THE BUY REQUEST
"https://web.roblox.com/api/item.ashx?rqtype=purchase&productID="+str(assetid)+"&expectedCurrency=1&expectedPrice="+str(seller['price'])+"&expectedSellerID="+str(seller['seller']['id'])+"&userAssetID="+str(seller['userAssetId']),
headers={"X-CSRF-TOKEN": xsrfRequest.headers["x-csrf-token"]})
buyreq_data = buyreq
print(buyreq.status_code) # Prints as 404
The array “seller” contains data from the seller with the best price.
But, for some reason the status code of my request prints as 404. Does anyone know what my issue could be? Maybe something is missing or my url isn’t correct…
It’s the Roblox security. They actually removed the feature of buying Limits using the API and reselling them because there. Limited.
It’s currently like the Graphics Card crisis. They found a fix and fixed it before it happened. And also, bots in general with use of the API (buying stuff, ETC) is against the rules. It was removed actually due to scammers using it to buy limiteds, and sending it to there main with a simple server script.
You have to interact with the web API (likely a different one) to buy a limited. You can send the request successfully as long as you can emulate an actual request.