Im trying to make a function that buys a limited item using python.
def buylimited(itemid, price):
sellers = getSellers(itemid)
for seller in sellers['data']:
if seller['price'] <= price:
print(seller['seller'])
return requests.post(
"https://economy.roblox.com/v1/purchases/products/" + str(itemid),
headers={"X-CSRF-TOKEN": getXsrf()}, cookies=cookies, data = {"expectedCurrency":1,"expectedPrice":price,"expectedSellerId":seller['seller']['id']}).text
return False
It’s saying that there are invalid arguments.
{"purchased":false,"reason":"InvalidArguments","productId":6803423284,"statusCode":500,"title":"Invalid Parameter","errorMsg":"Invalid arguments.","showDivId":"TransactionFailureView"}
Is there anyone who knows the correct arguments for purchasing limiteds? or any api documentation i can use?
1 Like
julg0re
(julg0re)
June 5, 2022, 8:51pm
#2
There’s not really any api documentation for Limited Items, did you try to look at the Item documentation ?
Looked at everything and it just shows me stuff on how to get the item info, not post.
youre trying to bot limiteds? pretty sure this is against the rules
1 Like
Katrist
(Katrist)
June 5, 2022, 9:35pm
#5
It isn’t. Even Shedletsky (one of the first engineers at Roblox) created a trade bot and hasn’t been warned or banned for it. You can always consult with Roblox support if you don’t know though.
This might be of some help not sure.
You should use the web-browser debugging tools to figure out web APIs like this.
I have a project that does what you’re after.
The API is this:
https://economy.roblox.com/v1/purchases/products/<productId>
To use it, you first need to send a GET request for a catalog item page. The Classic Swordpack for example:
GET https://www.roblox.com/catalog/106690045
You then need to extract a bunch of information from it:
The XSRF token
The product ID (different from an asset ID)
The price
I lea…