Unofficial API Documentation | API Development | TORN

Unofficial API Documentation

    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 15:22:47 - 16/12/23 (11 months ago)
    |
    Last replied 19:41:49 - 21/10/24 (1 month ago)
    Glad to finally announce the release of the unofficial API documentation. It's been worked on for over 6 months, but it's finally in a state where I'm comfortable in actually putting it out there.

    Unofficial API Documentation
    Torn's official page for API information doesn't really document everything that you'd need to know to work with the API. Some things are lacking, some things are just straight missing.

    Query parameters aren't listed anywhere, neither is the cache or the 'cloud limit'. Want to know how to get a link for creating an api key directly, or did you not know it even existed, go find the correct forum post? Getting the layout of requests was entirely up to you for trying them, don't have the correct faction permission or not a company director? Though luck, ask around till you find it out yourself.

    Those are the issues we try to resolve with this unofficial documentation. It's a community effort for changes, getting information or just general feedback. Our TornAPI community is located on Discord, which you can join yourself. Since it's a community effort, it's also open sourced on GitHub under the MIT licence.
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:23:29 - 16/12/23 (11 months ago)
    Post link copied to clipboard Copy post link
    Repost because apparently the API Development forum kills threads after 4 months of no posting.

    Original Thread
    Last edited by DeKleineKobini on 15:24:53 - 16/12/23 (11 months ago)
    • TranQuilizer [208206]
    • Role: Civilian
    • Level: 100
    • Posts: 612
    • Karma: 1,066
    • Last Action: 36 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:37:02 - 18/12/23 (11 months ago)
    Post link copied to clipboard Copy post link
    This is awesome, it has helped me out several times. Thank you very much for putting this together!
    Last edited by TranQuilizer on 03:37:30 - 18/12/23 (11 months ago)
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:14:48 - 08/01/24 (10 months ago)
    Post link copied to clipboard Copy post link
    bump
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:00:54 - 08/01/24 (10 months ago)
    Post link copied to clipboard Copy post link
    Looking for some feedback again, this time on a search functionality. It lists selection and field names that contain the search term. By now it should be clear that I'm a developer and not a designer, so feedback on design improvements is obviously welcome as well.

    Branch deployment
    • Rhiannone [2868362]
    • Role: Committee
    • Level: 79
    • Posts: 852
    • Karma: 766
    • Last Action: 1 minute
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 00:08:16 - 09/01/24 (10 months ago)
    Post link copied to clipboard Copy post link

    DeKleineKobini [2114440]

    Looking for some feedback again, this time on a search functionality. It lists selection and field names that contain the search term. By now it should be clear that I'm a developer and not a designer, so feedback on design improvements is obviously welcome as well.

    Branch deployment
    I do not have any real experience working with Torns API, but I have spent some time reading your unofficial documentation.

    Generally speaking, it is quite accessible and easy to follow.

    Tried out the search function and it works very well for me.

    No idea how it looks of course, but it reads well with my reader.

    Just thought I would let you know. :)
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:39:42 - 06/02/24 (9 months ago)
    Post link copied to clipboard Copy post link
    bump
    • Tentacles [3163623]
    • Role: Civilian
    • Level: 55
    • Posts: 419
    • Karma: 447
    • Last Action: 6 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:58:48 - 25/02/24 (9 months ago)
    Post link copied to clipboard Copy post link
    Thanks for making this! It should be a stickied thread tbh. And maybe the torn team would like to link to it from the official api docs page as well :p
    • Flid [2594918]
    • Role: Civilian
    • Level: 100
    • Posts: 675
    • Karma: 671
    • Last Action: 40 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:47:59 - 26/02/24 (9 months ago)
    Post link copied to clipboard Copy post link
    +1 for sticky
    • IAmBatman [2885239]
    • Role: Civilian
    • Level: 78
    • Posts: 73
    • Karma: 37
    • Last Action: 43 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:06:20 - 27/02/24 (9 months ago)
    Post link copied to clipboard Copy post link
    Amazing
    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,488
    • Karma: 1,299
    • Last Action: 21 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:38:33 - 15/03/24 (8 months ago)
    Post link copied to clipboard Copy post link
    This is great. Thank you. How can you check the market value price of an item?

    8db021b7-6a5d-4507-ab53-6ac6b2fa27de-1701621.gif

    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:29:40 - 15/03/24 (8 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    This is great. Thank you. How can you check the market value price of an item?
    Market value can be found under torn/items.
    Bazaar or item market prices fall under the market section.

    Fields like that can be found using the search function. If something doesn't work like you'd expect let me know and I'll take a look at it.
    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,488
    • Karma: 1,299
    • Last Action: 21 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:15:08 - 15/03/24 (8 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    This is great. Thank you. How can you check the market value price of an item?

    DeKleineKobini [2114440]

    Market value can be found under torn/items.
    Bazaar or item market prices fall under the market section.

    Fields like that can be found using the search function. If something doesn't work like you'd expect let me know and I'll take a look at it.
    Is it possible to retrieve only the market_value or do you have to receive the entire items JSON for an ID and parse it?

    8db021b7-6a5d-4507-ab53-6ac6b2fa27de-1701621.gif

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,374
    • Karma: 15,383
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:50:08 - 15/03/24 (8 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Is it possible to retrieve only the market_value or do you have to receive the entire items JSON for an ID and parse it?
    You have to parse it. But the market value in torn/items updates once a day (at midnight i believe), so if you want the market value for some hot items, probably better off taking bazaar / market selections for that item and deriving a current market value yourself.

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,488
    • Karma: 1,299
    • Last Action: 21 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:16:45 - 15/03/24 (8 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Is it possible to retrieve only the market_value or do you have to receive the entire items JSON for an ID and parse it?

    Omanpx [1906686]

    You have to parse it. But the market value in torn/items updates once a day (at midnight i believe), so if you want the market value for some hot items, probably better off taking bazaar / market selections for that item and deriving a current market value yourself.
    Thank you for the advice

    8db021b7-6a5d-4507-ab53-6ac6b2fa27de-1701621.gif

    • IAmBatman [2885239]
    • Role: Civilian
    • Level: 78
    • Posts: 73
    • Karma: 37
    • Last Action: 43 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:34:21 - 30/03/24 (8 months ago)
    Post link copied to clipboard Copy post link
    Back here again to say that I love this website!!
    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:39:41 - 25/05/24 (6 months ago)
    Post link copied to clipboard Copy post link

    bump

    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:34:59 - 16/07/24 (4 months ago)
    Post link copied to clipboard Copy post link

    time for another bump

    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,786
    • Karma: 5,406
    • Last Action: 33 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:45:11 - 28/08/24 (3 months ago)
    Post link copied to clipboard Copy post link

    time for yet another one

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 715
    • Karma: 1,992
    • Last Action: 7 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:00:10 - 28/08/24 (3 months ago)
    Post link copied to clipboard Copy post link

    DeKleineKobini [2114440]

    time for yet another one

    I pinned it, so I have no idea if that will help. ee2f3c2d-379c-4ee3-9ab0-754f1b806f8d-2088243.png

Reply
Thread Title: