Can you export event logs/query via API?
Export Logs
Started by Nangs [1999899] on in Questions & Answers.
About this thread
Posts archived: 2 / 2 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
- Archived posts
- 2
- Discussion span
- →
- People posting
- 2
- Likes on archived posts
- 2
- Authority score
- 41 / 100
- Historical score
- 14 / 100
- Story score
- 23 / 100
- Engagement score
- 38 / 100
You can write your own interface to do so. You need to keep requesting logs (using a full access API key) and keep going backwards in time, as you'll get only the last 100. Use the 'to' field to limit the top end (or go the other way with 'from' I suppose).
I do this to get all crime records for as far back as the logs go.
For example, get all logs using https://api.torn.com/user/?selections=log&key= and then using the last timestamp, use https://api.torn.com/user/?selections=log&to=1641634852&key= (assuming 1641634852 is the last timestamp) to get the previous 100 until you don't get anymore. Save it and do with it what you will.
Can parse and export whatever it is you're interested in that way.
I do this to get all crime records for as far back as the logs go.
For example, get all logs using https://api.torn.com/user/?selections=log&key= and then using the last timestamp, use https://api.torn.com/user/?selections=log&to=1641634852&key= (assuming 1641634852 is the last timestamp) to get the previous 100 until you don't get anymore. Save it and do with it what you will.
Can parse and export whatever it is you're interested in that way.