API Suggestions & Improvements - Page 2 | API Development …

API Suggestions & Improvements

    • Lazerpent [2112641]
    • Role: Civilian
    • Level: 100
    • Posts: 833
    • Karma: 3,545
    • Last Action: 5 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:01:51 - 11/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Entropi [2486892]

    Suggestion Type: New Feature Request

    New api endpoints to return paginated list of all users and factions in the game.

     

    Why do we need this?

    The above post reminded me of this: there's no way to get a list all users or factions in the game from the api without performing what is essentially an enumeration attack on the game to iterate through all the possible ids.

     

    What needs to be done?

    Using v1 as an example, something like https://api.torn.com/torn/?selections=users&key={key}&page={number} which returns a response along the lines of:

     

    {
        "max_page": number,
        "users": [
            {
                "id": number,
                "name": string,
                "signup": timestamp,
                "level": number,
                "faction_id": number|null,
                "faction_name": string|null,
                "last_action": {
                    "status": string,
                    "timestamp": number
                },
                "status": {
                    "description": string,
                    "details": string,
                    "state": string,
                    "until": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Similarly for factions https://api.torn.com/torn/?selections=factions&key={key}&page={number} and:

     

    {
        "max_page": number,
        "factions": [
            {
                "id": number,
                "name": string,
                "tag": string,
                "age": number,
                "leader_id": number,
                "leader_name": string,
                "coleader_id": number|null,
                "coleader_name": string|null,
                "members": number,
                "capacity": number,
                "best_chain": best_chain,
                "respect": number,
                "rank": {
                    "level": number,
                    "name": string,
                    "division": number,
                    "position": number,
                    "wins": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Obviously the exact data returned probably needs a bit more thought put into it but this should be good enough for an example.

     

    Drawbacks?

    Shouldn't be anything major with the minimal concept. It's something which is already possible, just in a rather ugly manner. If there were more complex filtering options, especially for users, that might present an advantage to scripters depending on what those filtering options were (e.g. for finding chain targets).

    JKyte [2417425]

    An endpoint to get just the ids of active players would be great. R+

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 782
    • Karma: 2,131
    • Last Action: 53 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:17:08 - 12/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Entropi [2486892]

    Suggestion Type: New Feature Request

    New api endpoints to return paginated list of all users and factions in the game.

     

    Why do we need this?

    The above post reminded me of this: there's no way to get a list all users or factions in the game from the api without performing what is essentially an enumeration attack on the game to iterate through all the possible ids.

     

    What needs to be done?

    Using v1 as an example, something like https://api.torn.com/torn/?selections=users&key={key}&page={number} which returns a response along the lines of:

     

    {
        "max_page": number,
        "users": [
            {
                "id": number,
                "name": string,
                "signup": timestamp,
                "level": number,
                "faction_id": number|null,
                "faction_name": string|null,
                "last_action": {
                    "status": string,
                    "timestamp": number
                },
                "status": {
                    "description": string,
                    "details": string,
                    "state": string,
                    "until": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Similarly for factions https://api.torn.com/torn/?selections=factions&key={key}&page={number} and:

     

    {
        "max_page": number,
        "factions": [
            {
                "id": number,
                "name": string,
                "tag": string,
                "age": number,
                "leader_id": number,
                "leader_name": string,
                "coleader_id": number|null,
                "coleader_name": string|null,
                "members": number,
                "capacity": number,
                "best_chain": best_chain,
                "respect": number,
                "rank": {
                    "level": number,
                    "name": string,
                    "division": number,
                    "position": number,
                    "wins": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Obviously the exact data returned probably needs a bit more thought put into it but this should be good enough for an example.

     

    Drawbacks?

    Shouldn't be anything major with the minimal concept. It's something which is already possible, just in a rather ugly manner. If there were more complex filtering options, especially for users, that might present an advantage to scripters depending on what those filtering options were (e.g. for finding chain targets).

    JKyte [2417425]

    An endpoint to get just the ids of active players would be great. R+

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    Lazerpent [2112641]

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    ba624a17-d937-46f0-96eb-e7ed7d5951b1-2088243.jpg?v=1940629196397

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,625
    • Karma: 17,099
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:42:04 - 12/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    My guess would be these:

     

    user: bazaar, personalstats, profile, log

    faction: basic, attacks/attacksfull, revives/revivesfull

    bazaar: bazaar, itemmarket

     

    This should cover a lot of the high call rate bots, scripts and tools.

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

    Guidebook - a collection of guides i made for Torn.

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,625
    • Karma: 17,099
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:57:43 - 13/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Suggestion type: New feature request

    API endpoint to pull player / faction list for certain HoF categories.

     

    Why do we need this?

    There are a lot of interesting and useful applications around HoF, from live leaderboards to competitions and player achievement tracking (i am kind of a sucker for data, so probably very biased).

     

    What needs to be done?

    A new endpoint added, preferably with pagination or some other way to get a specific number of results (can mimic the pagination of HoF in game, or return 100 IDs per page), like https://api.torn.com/torn/?selections=hof&cat={category}&key={key}&page={number}, where {category} can be any category from HoF that publicly lists players / factions. An example response could be:

     

    For Networth category:

    https://api.torn.com/torn/?selections=hof&cat=networth&key={key}&page={number}

     

    {
    "page": number,
    "hof": [

    {

    "networth":[
    {
    "id": number,
    "name": string,

    "position": number,
    "networth": number,
    },

    ...

    }

    ]

    }

    ]
    }

     

    A similar layout for factions should work as well.

     

    Consider any drawbacks of your suggestion: 

    Can't really think of any - as long as it's only available for categories that have publicly available names. Current option is to scrape the pages, which is not ideal, but people do it anyway.

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

    Guidebook - a collection of guides i made for Torn.

    • TwentyFour [2234860]
    • Role: Civilian
    • Level: 24
    • Posts: 627
    • Karma: 829
    • Last Action: 11 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:07:26 - 13/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Omanpx [1906686]

    Suggestion type: New feature request

    API endpoint to pull player / faction list for certain HoF categories.

     

    Why do we need this?

    There are a lot of interesting and useful applications around HoF, from live leaderboards to competitions and player achievement tracking (i am kind of a sucker for data, so probably very biased).

     

    What needs to be done?

    A new endpoint added, preferably with pagination or some other way to get a specific number of results (can mimic the pagination of HoF in game, or return 100 IDs per page), like https://api.torn.com/torn/?selections=hof&cat={category}&key={key}&page={number}, where {category} can be any category from HoF that publicly lists players / factions. An example response could be:

     

    For Networth category:

    https://api.torn.com/torn/?selections=hof&cat=networth&key={key}&page={number}

     

    {
    "page": number,
    "hof": [

    {

    "networth":[
    {
    "id": number,
    "name": string,

    "position": number,
    "networth": number,
    },

    ...

    }

    ]

    }

    ]
    }

     

    A similar layout for factions should work as well.

     

    Consider any drawbacks of your suggestion: 

    Can't really think of any - as long as it's only available for categories that have publicly available names. Current option is to scrape the pages, which is not ideal, but people do it anyway.

    Would save me a ton of time, trawling through the hof pages manually to get certain stats and also would be able to track your place competitevely with other players by time through the api :D

    • Londo_Mollari [2658150]
    • Role: Civilian
    • Level: 100
    • Posts: 369
    • Karma: 392
    • Last Action: 1 hour
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:04:51 - 16/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Entropi [2486892]

    Suggestion Type: New Feature Request

    New api endpoints to return paginated list of all users and factions in the game.

     

    Why do we need this?

    The above post reminded me of this: there's no way to get a list all users or factions in the game from the api without performing what is essentially an enumeration attack on the game to iterate through all the possible ids.

     

    What needs to be done?

    Using v1 as an example, something like https://api.torn.com/torn/?selections=users&key={key}&page={number} which returns a response along the lines of:

     

    {
        "max_page": number,
        "users": [
            {
                "id": number,
                "name": string,
                "signup": timestamp,
                "level": number,
                "faction_id": number|null,
                "faction_name": string|null,
                "last_action": {
                    "status": string,
                    "timestamp": number
                },
                "status": {
                    "description": string,
                    "details": string,
                    "state": string,
                    "until": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Similarly for factions https://api.torn.com/torn/?selections=factions&key={key}&page={number} and:

     

    {
        "max_page": number,
        "factions": [
            {
                "id": number,
                "name": string,
                "tag": string,
                "age": number,
                "leader_id": number,
                "leader_name": string,
                "coleader_id": number|null,
                "coleader_name": string|null,
                "members": number,
                "capacity": number,
                "best_chain": best_chain,
                "respect": number,
                "rank": {
                    "level": number,
                    "name": string,
                    "division": number,
                    "position": number,
                    "wins": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Obviously the exact data returned probably needs a bit more thought put into it but this should be good enough for an example.

     

    Drawbacks?

    Shouldn't be anything major with the minimal concept. It's something which is already possible, just in a rather ugly manner. If there were more complex filtering options, especially for users, that might present an advantage to scripters depending on what those filtering options were (e.g. for finding chain targets).

    JKyte [2417425]

    An endpoint to get just the ids of active players would be great. R+

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    Lazerpent [2112641]

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    splent [2088243]

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    If you do this I suggest to provide SQLite export of such infrequently updated data. It's one file, self-documenting, compact, easy to cache, easy to work with.

    • Borderline [2894696]
    • Role: Civilian
    • Level: 78
    • Posts: 259
    • Karma: 131
    • Last Action: 11 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:25:51 - 17/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    I would like to suggest a minor improvement to the API.

     

    I would like to see the value of an employee, which becomes visible if you have an employee on a secretary position, added to company>employees (or a new entry).

     

    It’s about this value:

    3ada2a71-df55-41e3-9b11-d6c346190f7d-2894696.png

     

    The reason why I would like to see this added is because I have a script that registers all data of an employee each day and with this value I would like to determine what salary I give to someone.

    • GreenNipple [2563870]
    • Role: Civilian
    • Level: 100
    • Posts: 229
    • Karma: 60
    • Last Action: 39 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:28:31 - 19/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Entropi [2486892]

    Suggestion Type: New Feature Request

    New api endpoints to return paginated list of all users and factions in the game.

     

    Why do we need this?

    The above post reminded me of this: there's no way to get a list all users or factions in the game from the api without performing what is essentially an enumeration attack on the game to iterate through all the possible ids.

     

    What needs to be done?

    Using v1 as an example, something like https://api.torn.com/torn/?selections=users&key={key}&page={number} which returns a response along the lines of:

     

    {
        "max_page": number,
        "users": [
            {
                "id": number,
                "name": string,
                "signup": timestamp,
                "level": number,
                "faction_id": number|null,
                "faction_name": string|null,
                "last_action": {
                    "status": string,
                    "timestamp": number
                },
                "status": {
                    "description": string,
                    "details": string,
                    "state": string,
                    "until": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Similarly for factions https://api.torn.com/torn/?selections=factions&key={key}&page={number} and:

     

    {
        "max_page": number,
        "factions": [
            {
                "id": number,
                "name": string,
                "tag": string,
                "age": number,
                "leader_id": number,
                "leader_name": string,
                "coleader_id": number|null,
                "coleader_name": string|null,
                "members": number,
                "capacity": number,
                "best_chain": best_chain,
                "respect": number,
                "rank": {
                    "level": number,
                    "name": string,
                    "division": number,
                    "position": number,
                    "wins": number
                }
            },

     

            // ... (100 or something results per page)
        ]
    }

     

    Obviously the exact data returned probably needs a bit more thought put into it but this should be good enough for an example.

     

    Drawbacks?

    Shouldn't be anything major with the minimal concept. It's something which is already possible, just in a rather ugly manner. If there were more complex filtering options, especially for users, that might present an advantage to scripters depending on what those filtering options were (e.g. for finding chain targets).

    JKyte [2417425]

    An endpoint to get just the ids of active players would be great. R+

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    Lazerpent [2112641]

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    splent [2088243]

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    Londo_Mollari [2658150]

    If you do this I suggest to provide SQLite export of such infrequently updated data. It's one file, self-documenting, compact, easy to cache, easy to work with.

    So you assume everyone uses SQLite? 

    • Londo_Mollari [2658150]
    • Role: Civilian
    • Level: 100
    • Posts: 369
    • Karma: 392
    • Last Action: 1 hour
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:46:03 - 20/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    JKyte [2417425]

    An endpoint to get just the ids of active players would be great. R+

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    Lazerpent [2112641]

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    splent [2088243]

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    Londo_Mollari [2658150]

    If you do this I suggest to provide SQLite export of such infrequently updated data. It's one file, self-documenting, compact, easy to cache, easy to work with.

    GreenNipple [2563870]

    So you assume everyone uses SQLite? 

    You can't? How so?

    • JKyte [2417425]
    • Role: Civilian
    • Level: 100
    • Posts: 841
    • Karma: 1,158
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:49:20 - 21/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    tiksan [2383326]

    Or a tarball that’s updated daily with the data of all users would be even better.

    Lazerpent [2112641]

    I was actually going to make a post asking for this later.

     

    Just a large dump of all users daily would have so many benefits and likely (drastically) cut down on the number of daily API calls.

    splent [2088243]

    I still haven't properly looked at the endpoints that are being heavily requested, but one of the things that is on my plate (at some point in the future), is also optimizing heavily requested endpoints and to check with the community what would be the best way to do that.


    I will certainly think more deeply about this topic.

     

     

     

    Londo_Mollari [2658150]

    If you do this I suggest to provide SQLite export of such infrequently updated data. It's one file, self-documenting, compact, easy to cache, easy to work with.

    GreenNipple [2563870]

    So you assume everyone uses SQLite? 

    Londo_Mollari [2658150]

    You can't? How so?

    My brother in Christ, please do not ever ask for an export to a specific database format ever again. You might as well ask Ched to write your application for you.

     

    If you cannot ingest CSV or JSON formatted data into your SQL or NoSQL database, then nobody can help you.

    • This_Name_Sucks [1828226]
    • Role: Civilian
    • Level: 100
    • Posts: 557
    • Karma: 76
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:24:38 - 21/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    I was curious if, when all is said and done with inventory schema restructuring, if the scope of certain endpoints will be reviewed and possibly changed from minimal to limited.

     

    Examples:

    http://api.torn.com/faction/?selections=armor&key=

    http://api.torn.com/faction/?selections=weapons&key=

     

    The logic being that it would be nice to be able to query data that can be seen w/o having to rely on scripting hacks, though I realize this is more of an administrative decision than a developmental one. 

     

    The broader question might be will there be some sort of public data model for developers to test API queries.  While mockup data might prove too much of a hassle to maintain, it would allow for additional Q/A to be done by anyone who develops Torn applications recreationally.  

    • Hemicopter [2780600]
    • Role: Civilian
    • Level: 76
    • Posts: 1,559
    • Karma: 3,633
    • Last Action: 42 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:20:17 - 22/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Suggestion type:
    New feature request

    What needs to be done:
    Add API endpoint for historical API key usage /key?selections=log

    Why do you need this:
    This way one can check how many requests were done with your key, if there are certain periods where it was used more/less, and if it was abused for purposes the user did not expect. 

    Consider any drawbacks of your suggestion:

    We can currently see live logs from the API key view, so this data is somewhat available and not new. 

    The live view lists uncensored IPs, but I think this can/should not be stored historically. (As login logs also are censored)


    Example:

    {
        "requests": [

        {
            "request_id": string, 

            "request_url": string,

            "request_comment": string,
            "request_time": number,
            "request_result": number, // I'm thinking error codes, but there is no "OK" code
            "request_ip": string,

        },

        ...

        ]
    }

    • Lazerpent [2112641]
    • Role: Civilian
    • Level: 100
    • Posts: 833
    • Karma: 3,545
    • Last Action: 5 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:31:01 - 22/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Hemicopter [2780600]

    Suggestion type:
    New feature request

    What needs to be done:
    Add API endpoint for historical API key usage /key?selections=log

    Why do you need this:
    This way one can check how many requests were done with your key, if there are certain periods where it was used more/less, and if it was abused for purposes the user did not expect. 

    Consider any drawbacks of your suggestion:

    We can currently see live logs from the API key view, so this data is somewhat available and not new. 

    The live view lists uncensored IPs, but I think this can/should not be stored historically. (As login logs also are censored)


    Example:

    {
        "requests": [

        {
            "request_id": string, 

            "request_url": string,

            "request_comment": string,
            "request_time": number,
            "request_result": number, // I'm thinking error codes, but there is no "OK" code
            "request_ip": string,

        },

        ...

        ]
    }

    I presume the request_ips are already stored long-term, but what if this endpoint provided a hash of the IP?

    That would allow for the identification of duplicates while also maintaining somewhat long-term IP privacy

    • Hemicopter [2780600]
    • Role: Civilian
    • Level: 76
    • Posts: 1,559
    • Karma: 3,633
    • Last Action: 42 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:48:08 - 22/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Hemicopter [2780600]

    Suggestion type:
    New feature request

    What needs to be done:
    Add API endpoint for historical API key usage /key?selections=log

    Why do you need this:
    This way one can check how many requests were done with your key, if there are certain periods where it was used more/less, and if it was abused for purposes the user did not expect. 

    Consider any drawbacks of your suggestion:

    We can currently see live logs from the API key view, so this data is somewhat available and not new. 

    The live view lists uncensored IPs, but I think this can/should not be stored historically. (As login logs also are censored)


    Example:

    {
        "requests": [

        {
            "request_id": string, 

            "request_url": string,

            "request_comment": string,
            "request_time": number,
            "request_result": number, // I'm thinking error codes, but there is no "OK" code
            "request_ip": string,

        },

        ...

        ]
    }

    Lazerpent [2112641]

    I presume the request_ips are already stored long-term, but what if this endpoint provided a hash of the IP?

    That would allow for the identification of duplicates while also maintaining somewhat long-term IP privacy

    Well known hashing algorithms 100% not, there is a limited amount of plaintexts so a rainbow table of them is trivial.

    Custom hashing algorithm? That's a drawback at best or a potential vulnerability at worst. Maybe AI will become good enough to crack custom hashing algorithms? Time can only tell.

     

    Personally I would be against that, good thought tho.

    • jtower [2287159]
    • Role: Civilian
    • Level: 100
    • Posts: 1,235
    • Karma: 1,469
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:07:48 - 22/06/24 (7 months ago)
    Post link copied to clipboard Copy post link

    Minor improvement - add current bank investment info

     

    Currently we have the Torn Bank info http://torn/?selections=bank which shows the current bank interest rates. But there's no way to see YOUR current bank investment rates (and original investment and original length). In this way, we can calculate how much money the investment will give (e.g. per day)

     

    Change is pretty simple. Current output of http://user/?selections=money is:

     

    {
    bla,
    bla,
    bla,
     
    "city_bank": {
    "amount": 2372800000,
    "time_left": 1514783,
    },
    }
     
     
    With the new info added, it'd be:
     
    {
    bla,
    bla,
    bla,

    "city_bank": {
    "invested": 2000000000, [or "invested_amount" or "original_amount"]
    "amount": 2372800000,
    "original_length": 2592000, [or "total_time" or "total_length"]
    "time_left": 1514783,
    "rate": 70 [or "interest_rate" or "bank_rate"]
    },
    }
    Last edited by jtower on 01:37:41 - 24/06/24 (6 months ago)
    • Zinitheve [3001212]
    • Role: Civilian
    • Level: 15
    • Posts: 1,013
    • Karma: 596
    • Last Action: 1 month
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:20:04 - 24/06/24 (6 months ago)
    Post link copied to clipboard Copy post link

    New feature request: Adding UID of item to market>bazaar and market>itemmarket. Would allow to easier search for item of best possible quality.

    • JKyte [2417425]
    • Role: Civilian
    • Level: 100
    • Posts: 841
    • Karma: 1,158
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:43:27 - 28/06/24 (6 months ago)
    Post link copied to clipboard Copy post link

    New Feature Request: add 'rankedwarassists' to public stats.

     

     

    Currently we have attacks and assists as their own data points (attackswon and attacksassisted), but we only have rankedwarhits. Adding RW assists would bring consistency to the personal stats, and make my life easier when calculating RW payouts based on hits and assists.

     
     
    Last edited by JKyte on 09:43:59 - 28/06/24 (6 months ago)
    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,625
    • Karma: 17,099
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:12:20 - 28/06/24 (6 months ago)
    Post link copied to clipboard Copy post link

    JKyte [2417425]

    New Feature Request: add 'rankedwarassists' to public stats.

     

     

    Currently we have attacks and assists as their own data points (attackswon and attacksassisted), but we only have rankedwarhits. Adding RW assists would bring consistency to the personal stats, and make my life easier when calculating RW payouts based on hits and assists.

     
     

    If you are calculating payouts based on personal stats (not recommended), you can just use attacks assisted. Though a much better option is to do that using faction -> attacks endpoint, or chain reports combined with war report.

    You can do the latter using Torn-UI, just upload the war report and all associated chain reports. If you want to get the raw data, can also use YATA or Debrief, both of wich get the data for you.

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

    Guidebook - a collection of guides i made for Torn.

    • Beerson [1576144]
    • Role: Civilian
    • Level: 92
    • Posts: 1,730
    • Karma: 5,302
    • Last Action: 3 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:03:34 - 28/06/24 (6 months ago)
    Post link copied to clipboard Copy post link

    Something else:

     

    It would be good to change 'User' -> 'Bazaar' section to require limited access API, in line how traveltime and casino refills public API access was removed, for the same reasons, preventing bot stalking for no effort mugging, and in line with all the other money on hand related API being private (bank time etc.)

     

    I'd say putting an option for users to choose if their Bazaar API is public or not would be preferable, but I assume that would require too much additional coding.

     

    Last edited by Beerson on 11:08:22 - 28/06/24 (6 months ago)

    It's bogie's torn, we just live in it

    a4b7bca8-409b-4d9a-bf37-2acba674b91f-1576144.pngPlease stop the Chedding

    IMG-1995.gif

    • JKyte [2417425]
    • Role: Civilian
    • Level: 100
    • Posts: 841
    • Karma: 1,158
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:32:11 - 28/06/24 (6 months ago)
    Post link copied to clipboard Copy post link

    JKyte [2417425]

    New Feature Request: add 'rankedwarassists' to public stats.

     

     

    Currently we have attacks and assists as their own data points (attackswon and attacksassisted), but we only have rankedwarhits. Adding RW assists would bring consistency to the personal stats, and make my life easier when calculating RW payouts based on hits and assists.

     
     

    Omanpx [1906686]

    If you are calculating payouts based on personal stats (not recommended), you can just use attacks assisted. Though a much better option is to do that using faction -> attacks endpoint, or chain reports combined with war report.

    You can do the latter using Torn-UI, just upload the war report and all associated chain reports. If you want to get the raw data, can also use YATA or Debrief, both of wich get the data for you.

    Thanks, we're currently using a combination of RW and chain reports and some google sheets magic. Ideally we would switch to using the faction:attacks endpoint for the granularity.

     

    I'll check out those websites. We typically don't lean on third party sites for number crunching, but maybe we should

Reply
Thread Title: