API Call to pull item purchases and price paid
-
Thread created on 21:19:43 - 29/07/22 (5 months ago)|Last replied 16:00:08 - 13/08/22 (5 months ago)
I’m trying to learn the API but haven’t come across a specification for what options are available.
I’d like to pull item purchases that I’ve made. Item type, quantity and price paid.
Also is there a way to select a range based on date/time?
Thanks in advance for any help. -
-
-
-
Posted on 00:25:32 - 04/08/22 (5 months ago)Post link copied to clipboard Copy post link
Something like this:
https://api.torn.com/user/log/data?selections=log&log=4201&from=1659160799&key=<your key here>
Where "from" is a unixtimestamp of the earliest you want to go back (or leave it off).
You can find the log category id (4201) by looking at your log:
https://www.torn.com/page.php?sid=log
Choosing "Item abroad Buy" changes the URL to https://www.torn.com/page.php?sid=log&log=4201 so your log ID is 4201. -
-
Posted on 16:00:08 - 13/08/22 (5 months ago)Post link copied to clipboard Copy post link
I'll just add this because you didn't mention it above
you can get a list of the log types with this link
https://api.torn.com/torn/?selections=logtypes&key= -