Hi everyone,
Solved
RR torn api need help pulling data
Started by TheALFA [2869953] on in Questions & Answers.
About this thread
Posts archived: 8 / 8 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
- 8
- Discussion span
- →
- People posting
- 4
- Likes on archived posts
- 4
- Posts by staff, officers and moderators
- 2
- Authority score
- 63 / 100
- Historical score
- 21 / 100
- Story score
- 29 / 100
- Engagement score
- 49 / 100
Most-liked replies
- flare [2195157] Officer
· 2 likes ·
4 => Wrong fields : Requesting incorrect selection fields. Afaik there is no https://api.torn.com/game endpoint. You can find all the possible endpoints here: https://www.torn.com/api.html or here for v2 https://www.torn.com/swagger.php Iirc to get russian roullete game data you would need to … - flare [2195157] Officer
· 1 likes ·
Thats because there is no /game endpoint or a endpoint for the casino. You would need to use the: https://api.torn.com/user/?selections=log&log= and filter through your logs to find the specific data you want from the casino. You can use this call …
While you might get the answer you're looking for here, you should really consider posting all of these API questions in the correct forum.
Sorry didn’t know that forum existed Ty I’ll repost it
4 => Wrong fields : Requesting incorrect selection fields.
Afaik there is no https://api.torn.com/game endpoint.
You can find all the possible endpoints here:
https://www.torn.com/api.html or here for v2 https://www.torn.com/swagger.php
Iirc to get russian roullete game data you would need to use the:
https://api.torn.com/user/?selections=log&log=8395,8396&key=
endpoint with a full access key. &log= can be used to further add log types but at the moment those two are for wins and losses.
Tysm this is so helpful
do I need to use v2 api endpoints ? Or can still use v1
edit : I didn’t find any content related to the casino endings in the websites u linked am more confused rn 😅
Thats because there is no /game endpoint or a endpoint for the casino.
You would need to use the:
https://api.torn.com/user/?selections=log&log=
and filter through your logs to find the specific data you want from the casino. You can use this call to find all log types:
https://api.torn.com/torn/?selections=logtypes&key=
and extract rr specific logs.
What you are asking for (and keep asking in different ways) is not something you can get from the API.
The only information about RR you can get from the API is the same information which you end up seeing in your logs
The other "RR watcher" scripts out there are not using the API, they are using the content of the webpage with tampermonkey (or equivalent) while you are actually ON the RR page.
Based on your other thread saying you are using version 6 of a RR Watcher script, I would presume that the version you obtained and are trying to modify into your own version is ALSO capturing screen content and not using an API, because that is the only way it works.
The information you want to add into your script does not get added to your logs, so you cannot pull it from them.
Tysm for clearing this to me yes rn it reads the screen data to obtain info
I thought that I can get the data from api this is why I was asking