API Suggestions & Improvements - Page 5 | API Development …

API Suggestions & Improvements

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:34:45 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Uras_R34 [2808072]

    Any chance for get info about the completed trades?

     

    Omanpx [1906686]

    It's already there, in the logs.

    Uras_R34 [2808072]

    yeah, but its not visible to to see in 1 log, who, what and price.? i can be wrong tho..... 

     

    I don't see a reason why not. I will add this to my to-do list!

    Thanks.

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:42:15 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    • Uras_R34 [2808072]
    • Role: Civilian
    • Level: 69
    • Posts: 219
    • Karma: 121
    • Last Action: 11 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:57:38 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Uras_R34 [2808072]

    Any chance for get info about the completed trades?

     

    Omanpx [1906686]

    It's already there, in the logs.

    Uras_R34 [2808072]

    yeah, but its not visible to to see in 1 log, who, what and price.? i can be wrong tho..... 

     

    splent [2088243]

    I don't see a reason why not. I will add this to my to-do list!

    Thanks.

    awesome!!! dont wanna rush you but got an idea when this will be a thing? 

     

    • KingLouisCLXXII [2070312]
    • Role: Civilian
    • Level: 100
    • Posts: 2,913
    • Karma: 2,443
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:11:49 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    I might be missing something but it doesn't looks like theres a way to explicitly get a faction's memberlist. I could've sworn there used to be a factions->members selection 

    This is an issue because two calls are required if you need something like OCs + members (to match player ids with names)

    • Hemicopter [2780600]
    • Role: Civilian
    • Level: 74
    • Posts: 1,488
    • Karma: 3,567
    • Last Action: 7 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:15:31 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    KingLouisCLXXII [2070312]

    I might be missing something but it doesn't looks like theres a way to explicitly get a faction's memberlist. I could've sworn there used to be a factions->members selection 

    This is an issue because two calls are required if you need something like OCs + members (to match player ids with names)

    in v1, the members are inside faction->basic

    in v2, there is an explicit faction->members

     

     

    @splent in v2 faction->basic, the key "members" is mapped to string, but returns an integer. fixed, thanks!

    Last edited by Hemicopter on 10:28:14 - 01/10/24 (2 months ago)
    • KingLouisCLXXII [2070312]
    • Role: Civilian
    • Level: 100
    • Posts: 2,913
    • Karma: 2,443
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:37:54 - 30/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    KingLouisCLXXII [2070312]

    I might be missing something but it doesn't looks like theres a way to explicitly get a faction's memberlist. I could've sworn there used to be a factions->members selection 

    This is an issue because two calls are required if you need something like OCs + members (to match player ids with names)

    Hemicopter [2780600]

    in v1, the members are inside faction->basic

    in v2, there is an explicit faction->members

     

     

    @splent in v2 faction->basic, the key "members" is mapped to string, but returns an integer. fixed, thanks!

    Ah, thank you

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:50:31 - 01/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    splent [2088243]

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    But why can we get attacks and revives in better format?

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

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:44:57 - 09/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    splent [2088243]

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    Does the new faction > news in APIv2 achieve this? I see you mentioned different Armory catagories 

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

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:31:20 - 09/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    splent [2088243]

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    DieselBlade [1701621]

    Does the new faction > news in APIv2 achieve this? I see you mentioned different Armory catagories 

    Unfortunately not, they're still just news messages, and there's nothing else beside that data that I could display. There's just a little bit more granularity now, so you could use category "armoryDeposit" to get messages where somebody deposited something and "armoryAction" for everything else, but that's probably still not what you're looking for.

    Feel free to play with Swagger a little bit to see how it works:
    https://www.torn.com/swagger/index.html#/Faction/get_faction__selections_news 


    Thanks!

     

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:45:38 - 09/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    splent [2088243]

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    DieselBlade [1701621]

    Does the new faction > news in APIv2 achieve this? I see you mentioned different Armory catagories 

    splent [2088243]

    Unfortunately not, they're still just news messages, and there's nothing else beside that data that I could display. There's just a little bit more granularity now, so you could use category "armoryDeposit" to get messages where somebody deposited something and "armoryAction" for everything else, but that's probably still not what you're looking for.

    Feel free to play with Swagger a little bit to see how it works:
    https://www.torn.com/swagger/index.html#/Faction/get_faction__selections_news 


    Thanks!

     

    It's annoying that we have revive data, which is only accessible via the API, but not armory data :(

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

    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 2,137
    • Karma: 3,448
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:23:45 - 10/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    DieselBlade [1701621]

    Suggestion type:
    New feature request

    What needs to be done:

    Add API section for faction armory events, instead of just "amrorynews"

    Just like for attacks and revives they also have attacks and attacksfull.


    Why do you need this:
    The armorynews data needs to be parsed. It also means the data is limited to 100 results, instead of 1,000, like attacksfull, which means more API calls are required to get all the required data.

     

     

    Consider any drawbacks of your suggestion:

    None that I can think of.

    Example:
    (Finally, provide an example of the API change) 

    {
        "armory": {
            "ID": {
                "timestamp": 1726567085,
                "giver_user_id": 123456,
    "receiver_user_id": 123456,             "item_id": 105, "item_uid": 10235647895412, "action": "Used" / "Gave" / "Retrieved" / "Donated" / "Loaned" / "Filled", "quantity": 1, },
    }
    }

    splent [2088243]

    Unfortunately, I'm only able to provide news in the same format as they're on the faction page, so this isn't possible to do.

     

    I can look into increasing the limits, but they're probably there for a good reason.


    Thanks!

    DieselBlade [1701621]

    Does the new faction > news in APIv2 achieve this? I see you mentioned different Armory catagories 

    splent [2088243]

    Unfortunately not, they're still just news messages, and there's nothing else beside that data that I could display. There's just a little bit more granularity now, so you could use category "armoryDeposit" to get messages where somebody deposited something and "armoryAction" for everything else, but that's probably still not what you're looking for.

    Feel free to play with Swagger a little bit to see how it works:
    https://www.torn.com/swagger/index.html#/Faction/get_faction__selections_news 


    Thanks!

     

    DieselBlade [1701621]

    It's annoying that we have revive data, which is only accessible via the API, but not armory data :(

    Pretty sure it's a technical limitation here, not just blocking access to things for the sake of it. 

     

    Stuff like faction news is pulled from a cloud db where I assume it's stored in plaintext and/or html only, no link to the actual items

    • MrRightSA [2652679]
    • Role: Civilian
    • Level: 100
    • Posts: 6,881
    • Karma: 1,666
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:55:01 - 22/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Add an end point for friends and enemy list.

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:08:31 - 22/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Suggestion type:

    New Feature Request

    What needs to be done:
    Add a new section to display additional item stats for primary, secondary, melee, temporary and armor items.

    Very similar to Torn > Items but include the additional stats that these items carry. I can see this data when I purchase the weapon from Big Als, etc, but it is not available on the API.

     

    e.g. Torn > Equipment

     
     
    {
    "equipment": {
    "1": {
    "name": "Hammer",
    "description": "A small, lightweight tool used in the building industry. Can also be used as a weapon.",
    "effect": "",
    "requirement": "",
    "type": "Melee",
    "weapon_type": "Clubbing",
    "buy_price": 75,
    "sell_price": 50,
    "market_value": 42,
    "circulation": 2350588,
    "damage": 17
    "accuracy: 55
    "image": "https://www.torn.com/images/items/1/large.png"
            }
    "12": {
    "name": "Glock 17",
    "description": "The Glock 17 is a lightweight semi-automatic pistol holding up to 20 rounds in a magazine.",
    "effect": "",
    "requirement": "",
    "type": "Secondary",
    "weapon_type": "Pistol",
    "buy_price": 400,
    "sell_price": 270,
    "market_value": 170,
    "circulation": 619880,
    "damage": 28
    "accuracy: 53
    "rof": "3-6"
    "accuracy: 53
    "image": "https://www.torn.com/images/items/12/large.png"
            }
        }
    }



    Why do you need this:
    I'd like to expand on the weapon comparison I did but this will require a more complex script. I'd also like to include RW bonuses.

    However, the first step is to input the data and this can take a very long time.
    It would be great if all of the equipment could be retrieved like in torn > education, or specific items using the ID.

    Consider any drawbacks of your suggestion:
    I can't think of any drawbacks. Except for showing stats for weapons which cannot be bought, such as NPC Loot and holiday items.

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

    • jtower [2287159]
    • Role: Civilian
    • Level: 100
    • Posts: 1,226
    • Karma: 1,443
    • Last Action: 6 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:53:20 - 02/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Could we add this to the list? Thanks!

    • Truc [2680004]
    • Role: Civilian
    • Level: 91
    • Posts: 710
    • Karma: 1,270
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:07:00 - 07/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Hi,

     

    Suggestion type:
     - New feature request


    What needs to be done:

    add to the "Torn" section of API, a new endpoint for perks, listing perks in the same way as medals, honors



    Why do you need this:
    I'm trying to make a google sheet that imports my perks from API (this bit works) and compare to a master list of perks (that bit I can't find). I have done this successfully for education, medal and honors, because there is a list in the "Torn" section of the API for those, but not for perks.

    The use case is to compare which of the possible perks I have, and plan priorities for which ones I don't have yet to get the next merit for perks



    Consider any drawbacks of your suggestion:

    None obvious, it is similar to education, medals and honors - provides a master list of all possibilities

    Example:
    Same format as User/perks but the full list under Torn/perks

     

    {
    "faction_perks": [
    "+ 10% crime exp and skill gain",
    "+ 40 maximum nerve",
    "+ 30% jail time reduction",
    "+ 50% bust success chance",
    "+ 3 bust nerve cost reduction",
    "+ 50% drug addiction gain reduction",
    "+ 30% drug overdose risk reduction",
    "+ 30% drug addiction mitigation and side effects reduction",
    "+ 24 hours maximum booster cooldown",
    "+ 50% energy gain from energy drinks",
    "+ 50% nerve gain from alcohol",
    "+ 50% happy gain from candy",
    "+ 10 travel item capacity",
    "+ 20% rehabilitation cost reduction",
    "+ 4% incoming hospital time reduction",
    "+ 180 minutes maximum medical cooldown",
    "+ 1.0% life regeneration",
    "+ 10% medical item effectiveness",
    "+ 10% strength gym gains",
    "+ 15% speed gym gains",
    "+ 17% defense gym gains",
    "+ 10% dexterity gym gains"
    ],
    "job_perks": [
    "+ 50% awareness"
    ],
    "property_perks": [
    "+ Access to airstrip",
    "+ 1% life regeneration",
    "+ 2% damage",
    "+ 2% gym gains"
    Last edited by Truc on 16:07:20 - 07/11/24 (1 month ago)

    Pink-Truc.png

    • Dsuttz [1561637]
    • Role: Civilian
    • Level: 89
    • Posts: 49
    • Karma: 16
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:20:06 - 07/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Suggestion Type: 

     

    General improvement

     

    What needs to be done:

     

    Change API error response so that if the selections passed are not valid for the endpoint used, the response is "wrong fields" rather than "Access level of this key is not high enough".

     

    How to replicate:

     

    > Send request to Company endpoint with applications as selection, values are returned as expected
    > Send request to User endpoint with applications as selection, error response: "Access level of this key is not high enough"
    > send request to User endpoint with test as selection, error response: "wrong fields"

     

    Why is this required: 

     

    Better error handling when managing Torn API requests that fail. Easier that this is correct than implementing all possible selections for each end point (which can be subject to change).

     

    Drawbacks:

    Can't think of any other than your time/cost and any existing functionality that might rely on the above use case being the current result.

     

    Example:

     

    Instead of:

    {
            "error": {
                    "code": 16,
                    "error": "Access level of this key is not high enough",
            },
    }

     

    we get:

    {
            "error": {
                    "code": 4,
                    "error": "Wrong fields",
            },
    }

     

    Thanks,

    Dsuttz

    Last edited by Dsuttz on 16:21:26 - 07/11/24 (1 month ago)

    M9qCYrO.jpg

    • Hemicopter [2780600]
    • Role: Civilian
    • Level: 74
    • Posts: 1,488
    • Karma: 3,567
    • Last Action: 7 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:02:50 - 08/11/24 (1 month ago)
    Post link copied to clipboard Copy post link


    Suggestion type:
     Minor improvement


    What needs to be done:
    Add tradable status inside torn->items

    Why do you need this:
    Currently, there is no API way of telling if an item is tradable or not. In game, there are a handful of ways of telling that, like the send icon in the inventory missing, or the word untradable in a trade/bazaar/item market selection. 

     


    Consider any drawbacks of your suggestion:

    There is no item where some instances are tradable, but others aren't, so torn->items should be sufficient

    As it is an addition, implementing should not break existing projects

    It does not give any advantage of knowing this information, except preventing players searching the forums for an hour finding out why they can't just buy a book 

    Example:
     

    	"items": {
    "1": {
    "name": "Hammer",
    "description": "A small, lightweight tool used in the building industry. Can also be used as a weapon.",
    "effect": "",
    "requirement": "",
    "type": "Melee",
    "weapon_type": "Clubbing",
    "buy_price": 75,
    "sell_price": 50,
    "market_value": 30,
    "circulation": 2342606,
    "tradable": true,
    "image": "https://www.torn.com/images/items/1/large.png"
    }, ...
    "871": {
    "name": "Bug Swatter",
    "description": "This bug swatter is given to those who report serious exploits or bugs which they could have abused for their own gain. The number of these items in circulation gives a good idea of how honest citizens really are.",
    "effect": "",
    "requirement": "",
    "type": "Melee",
    "weapon_type": "Slashing",
    "buy_price": 0,
    "sell_price": 0,
    "market_value": 0,
    "circulation": 35,
    "tradable": false,
    "image": "https://www.torn.com/images/items/871/large.png"
    }, ...
    Last edited by Hemicopter on 21:03:14 - 08/11/24 (1 month ago)
    • Szanti [2965724]
    • Role: Civilian
    • Level: 79
    • Posts: 164
    • Karma: 120
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:21:41 - 16/11/24 (27 days ago)
    Post link copied to clipboard Copy post link


    Suggestion type:
     - New feature request
     - Minor improvement

    What needs to be done:

     - Add data from city hall to torn>stats

       - Points used/day, points held by faction/users are the ones I'm especially interested in

    Why do you need this:

    Points are an important facet of the overall economy and a good indicator of how prices of travel items will behave. I track what data is available already, which is how much gets spent on e refills, merits, honors and try to estimate production of points vs plushies/flowers imported to get a sense of how the market will behave. Not having to scrape/manually enter that data would be a huge relief.

    Consider any drawbacks of your suggestion:

    None that I can think of. The data is already public, and it wouldn't give scripters anymore advantage than other market tracking scripts. 


    Example:
    {
        "stats":

        {
            ...
            "points_used": number,
            "points_held_by_factions": number,
            "points_held_by_users": number,

            ...

        }
    }

    • Hemicopter [2780600]
    • Role: Civilian
    • Level: 74
    • Posts: 1,488
    • Karma: 3,567
    • Last Action: 7 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:24:15 - 16/11/24 (27 days ago)
    Post link copied to clipboard Copy post link

    Szanti [2965724]


    Suggestion type:
     - New feature request
     - Minor improvement

    What needs to be done:

     - Add data from city hall to torn>stats

       - Points used/day, points held by faction/users are the ones I'm especially interested in

    Why do you need this:

    Points are an important facet of the overall economy and a good indicator of how prices of travel items will behave. I track what data is available already, which is how much gets spent on e refills, merits, honors and try to estimate production of points vs plushies/flowers imported to get a sense of how the market will behave. Not having to scrape/manually enter that data would be a huge relief.

    Consider any drawbacks of your suggestion:

    None that I can think of. The data is already public, and it wouldn't give scripters anymore advantage than other market tracking scripts. 


    Example:
    {
        "stats":

        {
            ...
            "points_used": number,
            "points_held_by_factions": number,
            "points_held_by_users": number,

            ...

        }
    }

    oh, misunderstood

     

    how are they already public, where can I look at that data? Because I don't think that points held by type is stated somewhere

    Last edited by Hemicopter on 17:31:40 - 16/11/24 (27 days ago)
    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:23:55 - 16/11/24 (27 days ago)
    Post link copied to clipboard Copy post link

    Szanti [2965724]


    Suggestion type:
     - New feature request
     - Minor improvement

    What needs to be done:

     - Add data from city hall to torn>stats

       - Points used/day, points held by faction/users are the ones I'm especially interested in

    Why do you need this:

    Points are an important facet of the overall economy and a good indicator of how prices of travel items will behave. I track what data is available already, which is how much gets spent on e refills, merits, honors and try to estimate production of points vs plushies/flowers imported to get a sense of how the market will behave. Not having to scrape/manually enter that data would be a huge relief.

    Consider any drawbacks of your suggestion:

    None that I can think of. The data is already public, and it wouldn't give scripters anymore advantage than other market tracking scripts. 


    Example:
    {
        "stats":

        {
            ...
            "points_used": number,
            "points_held_by_factions": number,
            "points_held_by_users": number,

            ...

        }
    }

    Hemicopter [2780600]

    oh, misunderstood

     

    how are they already public, where can I look at that data? Because I don't think that points held by type is stated somewhere

    They’re here: https://www.torn.com/citystats.php

    Under “Points in circulation” option. 

     

    Chedburn added this a few days ago, so of course it makes sense to add this to the API as well. 

     

    I should be able to squeeze this change into v1 soon.

Reply
Thread Title: