-
What do you want to achieve? Getting Price of an avatar asset in Python.
-
What is the issue? When using
requests.session().post()
with the headers and payload from the https://catalog.roblox.com/docs#!/Catalog/post_v1_catalog_items_details Documentation im getting stuck at theToken Validation Failed
Response. -
What solutions have you tried so far? I tried to get the cookies from https://www.roblox.com/ and use them on the API POST request but still got the same error.
My tried Code:
import requests
Session = requests.session()
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
data = '{ \\ "items": [ \\ { \\ "itemType": "Asset", \\ "id": 6781218036 \\ } \\ ] \\ }'
response = Session.post('https://catalog.roblox.com/v1/catalog/items/details', headers=headers, data=data)
print(response.text)