im trying to use roblox’s API to purchase some items but for some reason after so many times of getting from this url it will just give me an error and will continue giving me errors for the remaining id’s:
https://api.roblox.com/marketplace/productinfo?assetId={Id}
if you need my code i can send.
Unsure what you wanna do exactly, but did you read [Action Needed] Sunsetting api.roblox.com
Also, do you use that URL in Studio?
no. i coded a bot in python that buys items from the catalogue but to do that i need the product id. and to get the product id i need to use this:
https://api.roblox.com/marketplace/productinfo?assetId={Id}
and after a certain amount of times getting from that api it just gives me an error
You gotta use the X-CSRF-Token
and account cookie in your request to buy items:
Accessing the Roblox Web API
The Roblox API is extremely powerful - it can be used to create anything from group ranking bots to game statistics websites.
As a developer, there are two main ways you’ll want to access the Roblox API: sending the requests yourself or using one of the multiple wrappers for your favorite programming language. In this tutorial, I’ll go over both of these methods.
Notes
This tutorial currently offers Python code examples. To contribute and add a programmin…
Your URL will just retrieve information about a product and it works fine for me:
https://api.roblox.com/marketplace/productinfo?assetId=53326
Maybe send some additional pieces of code if I got it wrong.