Skip to content
TORNLIFE More

help with torn api v2

Started by XeiDaMoKa [2373510] on in Questions & Answers.

6 replies · 65 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 7 / 7 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
7
Discussion span
→
People posting
4
Likes on archived posts
11
Posts by staff, officers and moderators
2
Authority score
63 / 100
Historical score
16 / 100
Story score
30 / 100
Engagement score
50 / 100

Most-liked replies

tiksan [2383326]

That's not entirely correct. APIv2 doesn't have new/updated log selections/endpoints yet. However, APIv2 uses the old v1 endpoints/selections when it hasn't been implemented in v2 yet. So you can still do stuff like https://api.torn.com/v2/user/log?key=&cat=94. You'll just need to continue using the cat and log query params as far as I know.

flare [2195157] Officer Officer

Get all log catagories:

https://api.torn.com/torn/?selections=logcategories&key=

 

Call in v1:

https://api.torn.com/user/?selections=log&cat={catagory_number}&key=

 

Get all log types:

https://api.torn.com/torn/?selections=logtypes&key=

 

Call in v1:

https://api.torn.com/user/?selections=log&log={log_number}&key=

 

Is the api v1 way to do it, or is you want to use the v2 endpoint you can do as tiksan shared above.