Upcoming API changes - Page 11 | API Development | TORN

Upcoming API changes

    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:01:23 - 22/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    _SCOFIELD_ [1441750]

    User -> bazaar : seems to work the same as before.

    User -> itemmarket : this is now needed to find your listings on the item market

     

    Torn -> bazaar : seems to work the same as before (is it possible to show player id here to see who the lister is? or does it go against the idea of the update)

    Torn -> itemmarket : currently down. hopefully it shows the lister name and quantity and price for each item, and maybe additional item details for weapons/ armor?

    Wolverine [1971836]

    I used

     

    'https://api.torn.com/market/' + itemId + '?selections=bazaar,itemmarket

     

    to get the 3 cheapest prices in bazaars and the cheapeset price in itemmarket.

     

    Now there isn't a Torn page showing bazaars so "selections=bazaar" does not work anymore and... nothing... those market APIs are simply broken now, I can't do anything.

     

    {
        "error": {
            "code": 24,
            "error": "Closed temporarily"
        }
    }

     

    That's the error returned by the API call above.

    torn -> bazaar still works fine for me, but if u do bazaar, itemmarket in the same call, u get that error coz itemmarket api is down atm

     

     

    I really do wish that like bazaars, user -> itemmarket section would be a thing. Otherwise it is impossible for me to tell which item I sold via API.

     

    (Events only tell the item name, not the UID, and I have multiple weapons/ armor of the same name, and same price but different stat values... and it could be that I bought those items at different prices but there's no way to tell them apart anymore)

    Last edited by _SCOFIELD_ on 17:03:32 - 22/10/24 (1 month ago)
    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:59:35 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Shouldn't this banned and not baned?

     

    3d397eda-5561-4427-a62e-1f6df19b067e-1441750.png

     

    a6fb847e-6b08-4d0a-bea2-1cafe60c850c-1441750.png

    • DeKleineKobini [2114440]
    • Role: Committee
    • Level: 100
    • Posts: 3,789
    • Karma: 5,409
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:49:05 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    _SCOFIELD_ [1441750]

    Shouldn't this banned and not baned?

     

    3d397eda-5561-4427-a62e-1f6df19b067e-1441750.png

     

    a6fb847e-6b08-4d0a-bea2-1cafe60c850c-1441750.png

    It's been reported multiple times, but since publicstatus is an internal selection which should not be used it won't be changed.

    • 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 11:23:06 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    _SCOFIELD_ [1441750]

    torn -> bazaar still works fine for me, but if u do bazaar, itemmarket in the same call, u get that error coz itemmarket api is down atm

     

     

    I really do wish that like bazaars, user -> itemmarket section would be a thing. Otherwise it is impossible for me to tell which item I sold via API.

     

    (Events only tell the item name, not the UID, and I have multiple weapons/ armor of the same name, and same price but different stat values... and it could be that I bought those items at different prices but there's no way to tell them apart anymore)

    Your logs presumably have the UID in them, no? 

     

    Haven't even taken a peek, obviously not the best solution, but likely better than nothing...

     

    edit: took a peek, it does

    401c2926-d6a1-4912-bd22-0b83d7244df0-2190604.png

    Last edited by Kwack on 11:51:11 - 23/10/24 (1 month ago)
    • Viciously_Grim [2752611]
    • Role: Civilian
    • Level: 45
    • Posts: 3,024
    • Karma: 3,285
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:08:35 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Is bazaar sales and customers supposed to be visible? They're showing up on Torn Stats in the player graphs and 2 users confirm the values are accurate. These stats are hidden on Torn itself....

    🌈 Makes friends the hard way 🦄

    🎁 Noob box giveaway! 🎁

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:28:40 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Viciously_Grim [2752611]

    Is bazaar sales and customers supposed to be visible? They're showing up on Torn Stats in the player graphs and 2 users confirm the values are accurate. These stats are hidden on Torn itself....

    These stats can be visible on 3rd party websites (if they decide to share that data) if players share their private limited access or higher keys with those 3rd party websites. 

    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:37:14 - 23/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Viciously_Grim [2752611]

    Is bazaar sales and customers supposed to be visible? They're showing up on Torn Stats in the player graphs and 2 users confirm the values are accurate. These stats are hidden on Torn itself....

    tornstats gathers that data using a player's own limited access key and then displays that info publicly

    • GoodLuck [2356929]
    • Role: Civilian
    • Level: 100
    • Posts: 203
    • Karma: 18
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 00:07:06 - 24/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Viciously_Grim [2752611]

    Is bazaar sales and customers supposed to be visible? They're showing up on Torn Stats in the player graphs and 2 users confirm the values are accurate. These stats are hidden on Torn itself....

    splent [2088243]

    These stats can be visible on 3rd party websites (if they decide to share that data) if players share their private limited access or higher keys with those 3rd party websites. 

    Hi, I noticed that the descriptons of balance and payday in faction fundnews have been changed without any notice. Will all the changes be listed in the weekly paches?

    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:45:09 - 24/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    When u enter a gibberish value in selections for example User -> blah, u get an error code 4 saying wrong fields.

     

    But when u enter a value from another field (for example pointsmarket is under Market but not under User) and u do User -> pointsmarket, it returns error code 16, saying access level of the key is not enough. Shouldn't this also return an error code 4 (wrong fields) essentially saying that the pointsmarket field does not exist as a selection under User?

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:46:26 - 24/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Viciously_Grim [2752611]

    Is bazaar sales and customers supposed to be visible? They're showing up on Torn Stats in the player graphs and 2 users confirm the values are accurate. These stats are hidden on Torn itself....

    splent [2088243]

    These stats can be visible on 3rd party websites (if they decide to share that data) if players share their private limited access or higher keys with those 3rd party websites. 

    GoodLuck [2356929]

    Hi, I noticed that the descriptons of balance and payday in faction fundnews have been changed without any notice. Will all the changes be listed in the weekly paches?

    Hey, it looks like this was changed yesterday, but it will be included in the next week's patch notes.

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:04:34 - 25/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    Last edited by splent on 16:11:15 - 25/10/24 (1 month ago)
    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:26:47 - 25/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    still says error Closed temporarily for me

     

     

    Also on another note, the item market edit price listing has a "fee" under it

     

    75b8d368-8b26-4584-b0a3-d26e1bbfffb9-1441750.png

     

    currently it shows 36.4m fees for my armor caches listed at 364.9m (10%) even though the armor cache is not listed anonymously

     

    18d22fa5-b54b-408d-8676-9b58d5f12fa8-1441750.png

    Last edited by _SCOFIELD_ on 16:27:26 - 25/10/24 (1 month ago)
    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:56:31 - 25/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    _SCOFIELD_ [1441750]

    still says error Closed temporarily for me

     

     

    Also on another note, the item market edit price listing has a "fee" under it

     

    75b8d368-8b26-4584-b0a3-d26e1bbfffb9-1441750.png

     

    currently it shows 36.4m fees for my armor caches listed at 364.9m (10%) even though the armor cache is not listed anonymously

     

    18d22fa5-b54b-408d-8676-9b58d5f12fa8-1441750.png

    >still says error Closed temporarily for me
    If you're getting that error it means API is closed down due to high load. 

    Please report the other one in the bug & issues forum so that another dev can take a look and fix it. 

    Thanks!

    • skmoonlight [2619860]
    • Role: Civilian
    • Level: 100
    • Posts: 1,596
    • Karma: 1,774
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:22:29 - 25/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    _SCOFIELD_ [1441750]

    still says error Closed temporarily for me

     

     

    Also on another note, the item market edit price listing has a "fee" under it

     

    75b8d368-8b26-4584-b0a3-d26e1bbfffb9-1441750.png

     

    currently it shows 36.4m fees for my armor caches listed at 364.9m (10%) even though the armor cache is not listed anonymously

     

    18d22fa5-b54b-408d-8676-9b58d5f12fa8-1441750.png

    splent [2088243]

    >still says error Closed temporarily for me
    If you're getting that error it means API is closed down due to high load. 

    Please report the other one in the bug & issues forum so that another dev can take a look and fix it. 

    Thanks!

    api is up and running here
    but not market->itemmarket

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:55:29 - 25/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    _SCOFIELD_ [1441750]

    still says error Closed temporarily for me

     

     

    Also on another note, the item market edit price listing has a "fee" under it

     

    75b8d368-8b26-4584-b0a3-d26e1bbfffb9-1441750.png

     

    currently it shows 36.4m fees for my armor caches listed at 364.9m (10%) even though the armor cache is not listed anonymously

     

    18d22fa5-b54b-408d-8676-9b58d5f12fa8-1441750.png

    splent [2088243]

    >still says error Closed temporarily for me
    If you're getting that error it means API is closed down due to high load. 

    Please report the other one in the bug & issues forum so that another dev can take a look and fix it. 

    Thanks!

    skmoonlight [2619860]

    api is up and running here
    but not market->itemmarket

    Yeah my bad. For some reason I thought it was showing the error that the API is disabled due to high load. 🤦‍♂️

    I forgot to mention, but this selection will now only be available in API v2 (but I'll make sure I communicate any breaking changes up front), although I expect future changes to only be add-ons and not breaking changes. 

    Thanks!

    Last edited by splent on 17:56:02 - 25/10/24 (1 month ago)
    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:54:42 - 27/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Being able to see the item seller via the APi is useful but on the other hand, with the added functionality of Item Market 2.0 it doesn't seem necessary 

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

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

    Do you know anything about the integration of items, such as market value, into the the wiki?

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

    • Manuito [2225097]
    • Role: Committee
    • Level: 82
    • Posts: 889
    • Karma: 1,833
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:00:45 - 27/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Unless I'm mistaken, in v2, this three nullables:

     

          "nullable": "true"

     

    should be really be

     

           "nullable": true

     

    (no commas):

     

     

                "ItemMarketListingItemStats": {
                    "properties": {
                        "damage": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "accuracy": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "armor": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        }
                    },
                    "type": "object"
                },

     

     

    Otherwise it's causing a parsing error when automating the swagger model creation.

    Last edited by Manuito on 22:01:12 - 27/10/24 (1 month ago)
    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 301
    • Karma: 797
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:14:20 - 28/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    'market' -> 'itemmarket' is returning nulls for listing prices of many items

    armor & weapons work OK, but all other items are like this

     

    POST https://api.torn.com/v2/market/428?selections=itemMarket

    {
        "itemmarket": {
            "item": {
                "id": 428,
                "name": "Casino Pass",
                "type": "Special",
                "average_price": 19811050
            },
            "listings": [
                {
                    "id": null,
                    "price": null,
                    "amount": null
                },
                {
                    "id": null,
                    "price": null,
                    "amount": null
                }
            ]
        },
        "_metadata": {
            "prev": null,
            "next": null
        }
    }

    Last edited by Silmaril on 20:14:34 - 28/10/24 (1 month ago)
    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:31:33 - 28/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Manuito [2225097]

    Unless I'm mistaken, in v2, this three nullables:

     

          "nullable": "true"

     

    should be really be

     

           "nullable": true

     

    (no commas):

     

     

                "ItemMarketListingItemStats": {
                    "properties": {
                        "damage": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "accuracy": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "armor": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        }
                    },
                    "type": "object"
                },

     

     

    Otherwise it's causing a parsing error when automating the swagger model creation.

    Thanks - I've fixed these now I think?

    If everything goes as planned, this week I should finish v2 upgrade where requests will also work in this format: "/v2/user/crimes/1/" (or "/v2/user/crimes,timestamp/1/" when requesting multiple selections) and all endpoints will have their paths fixed (e.g. from /user/?selection=crimes to /user/crimes/). 

     

    Hopefully that will fix all code-gen issues!

Reply
Thread Title: