Upcoming API changes - Page 10 | API Development | TORN

Upcoming API changes

    • Wolverine [1971836]
    • Role: Civilian
    • Level: 100
    • Posts: 5,200
    • Karma: 6,022
    • Last Action: 1 hour
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:19:11 - 24/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hi everyone,

    Few new selections are now available in the API v2:

     

    These selections can also be tried through Swagger (if you're not seeing them, make sure to clear cache on both Swagger page and openapi.json file).


    Thanks!

    Wolverine [1971836]

    Hi, do you know if there is a chance in the future to get the number of FHC used with API v2?

     

    EHgBuVU.png

    splent [2088243]

    Hey, if that gets added to player statistics then sure, it shouldn't be a problem.

    I can't help you with adding that to the profile statistics page though. You know the drill with the suggestions! :D

    thank you very much for your response, it's really appreciated :-)

     

    • 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 18:22:02 - 24/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    • 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 01:54:33 - 25/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    • 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 06:26:47 - 25/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    That sounds like a great idea! I think I should be able to add that without any problems.

     

    Thanks!

    • Microbes [2622522]
    • Role: Civilian
    • Level: 74
    • Posts: 777
    • Karma: 176
    • Last Action: 37 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:09:52 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    'torn' -> 'logtypes' broken?

     

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

     

    supposed to return "2FA SMS code sent" logs yet it gave a completely unrelated response? The same goes for all IDs.

     

    {"logtypes":[{"id":5110,"title":"Honor awarded"},{"id":5120,"title":"Medal awarded"},{"id":5130,"title":"Rank change"},{"id":5140,"title":"Title change"},{"id":5150,"title":"Honor bar changed"}]}

     Thanks.
    Last edited by Microbes on 08:10:08 - 26/09/24 (2 months ago)
    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,455
    • Karma: 15,759
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:05:00 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Microbes [2622522]

    'torn' -> 'logtypes' broken?

     

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

     

    supposed to return "2FA SMS code sent" logs yet it gave a completely unrelated response? The same goes for all IDs.

     

    {"logtypes":[{"id":5110,"title":"Honor awarded"},{"id":5120,"title":"Medal awarded"},{"id":5130,"title":"Rank change"},{"id":5140,"title":"Title change"},{"id":5150,"title":"Honor bar changed"}]}

     Thanks.

    Isn't logtypes supposed to return all log type IDs and names, not the logs itself? I think you want user / log in api V1 for this.

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

    Guidebook - a collection of guides i made for Torn.

    • Microbes [2622522]
    • Role: Civilian
    • Level: 74
    • Posts: 777
    • Karma: 176
    • Last Action: 37 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:54:29 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Microbes [2622522]

    'torn' -> 'logtypes' broken?

     

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

     

    supposed to return "2FA SMS code sent" logs yet it gave a completely unrelated response? The same goes for all IDs.

     

    {"logtypes":[{"id":5110,"title":"Honor awarded"},{"id":5120,"title":"Medal awarded"},{"id":5130,"title":"Rank change"},{"id":5140,"title":"Title change"},{"id":5150,"title":"Honor bar changed"}]}

     Thanks.

    Omanpx [1906686]

    Isn't logtypes supposed to return all log type IDs and names, not the logs itself? I think you want user / log in api V1 for this.

    Ayy. You're right, I didn't read the docs properly haha. Didn't even questioned myself when it's in 'torn' and not '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 14:04:41 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    Hey, this change is now live.

    I added a new field "timestamp" to 'user' -> 'networth' selection in API v1.

    You may need to wait up to an hour for the change to be visible (depending on when was the data requested last time).

    On a side note - I also removed "defaultSelection" from appearing in all lookup selections.

    Thank you.

    • Marches [3131483]
    • Role: Civilian
    • Level: 59
    • Posts: 73
    • Karma: 840
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:36:22 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    splent [2088243]

    Hey, this change is now live.

    I added a new field "timestamp" to 'user' -> 'networth' selection in API v1.

    You may need to wait up to an hour for the change to be visible (depending on when was the data requested last time).

    On a side note - I also removed "defaultSelection" from appearing in all lookup selections.

    Thank you.

    It's a somewhat bigger change, but would there be value in (one day!) adding something like to all requests in v2? That way, you always know if you've accidentally hit a cache.

     

    Either way, love the changes you've been making. Thanks!

    Last edited by Marches on 15:38:53 - 26/09/24 (2 months 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 21:24:29 - 26/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    splent [2088243]

    Hey, this change is now live.

    I added a new field "timestamp" to 'user' -> 'networth' selection in API v1.

    You may need to wait up to an hour for the change to be visible (depending on when was the data requested last time).

    On a side note - I also removed "defaultSelection" from appearing in all lookup selections.

    Thank you.

    can this timestamp be added to all data fields with globally cached results (if any other than networth exists). would keep consistency throughout

    • 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 09:08:33 - 27/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    splent [2088243]

    Hey, this change is now live.

    I added a new field "timestamp" to 'user' -> 'networth' selection in API v1.

    You may need to wait up to an hour for the change to be visible (depending on when was the data requested last time).

    On a side note - I also removed "defaultSelection" from appearing in all lookup selections.

    Thank you.

    Marches [3131483]

    It's a somewhat bigger change, but would there be value in (one day!) adding something like to all requests in v2? That way, you always know if you've accidentally hit a cache.

     

    Either way, love the changes you've been making. Thanks!

    Hey so there are basically 2 different caches. One is request specific cache (we call this internally "service cache") and second is selection specific cache (what I usually refer to as "global" cache).

    It is a "known thing" (it's mentioned nowhere in the official documentation though) to bypass request cache by passing different values in "timestamp" query parameter (or to change any other parameters). That is also why "timestamp" selection exists across all types (user, faction, property, torn, etc.), so you can know when was something cached. 

    If you can do this quickly enough, you can see the request cache working in this example: 

    1. Select 'money,timestamp' from user without any additional parameters, like so: https://api.torn.com/user/?selections=money,timestamp&key=
    2. Send few $$ to a friend

    3. Repeat the request above, the money and timestamp values should still be the same
    4. Request a slightly modified request to see new values, e.g. https://api.torn.com/user/?selections=money,timestamp×tamp=1232&key= (this one should now have different timestamp and money fields)

    5. Eventually (30s after the initial request), the response from the initial request will get updated as well

    But again, this is just an example and it is crucial that you can do this quickly enough.

    So for this request specific cache, you can utilize "timestamp" selection to know if you're getting cached data and when was the data cached.

    This type of cache exists to reduce unnecessary load on the server.

    --

    However, the global cache is a little bit different. It will return the same response regardless of the input parameters, so depending if it is a private or public selection it will return the same response for everyone. For this I'm happy to add specific selection's timestamp. 

    Currently, global cache is used only on 3 selections:

    • 'user' -> 'networth' in API v1
    • 'user' -> 'bazaar' in API v1
    • 'racing' -> 'records' in API v2

     

    For now cache timestamp is only available in 'user' -> 'networth' selection simply because the other 2 selections return arrays and I need to do some refactoring before I can provide cache timestamp on them, but yes - I'll definitely provide this on any future global caches.

    --

    Tldr; You can use "timestamp" selection to know when something was cached, otherwise yes - I will provide specific cache timestamp in the future for globally cached selections.

    Hopefully this was not unnecessary over explaining, but will actually help you understand how everything's working better. 

    Thanks!

    • Marches [3131483]
    • Role: Civilian
    • Level: 59
    • Posts: 73
    • Karma: 840
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:48:35 - 27/09/24 (2 months ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey all, 

    It looks like 'user' -> 'networth' selection was causing a lot of stress on db5, so as a result the inventory page was loading slower or breaking sometimes.


    For this reason I temporarily added 1 hour global cache (can't be bypassed by 'timestamp' or other query parameters) to this selection.

    If necessary, we might have to increase the cache duration a little bit more, but I'm really hoping this will suffice.

    Thanks for understanding!

    Kwack [2190604]

    Is there a way to get the timestamp of when it was cached? I assume since it's a global cache, adding the timestamp selection probably won't give us this info. 

     

    Is this information that we could get available to sections with global caches going forward? Makes it a lot better to show the user when the data was updated last if we can't keep it live anymore

    splent [2088243]

    Hey, this change is now live.

    I added a new field "timestamp" to 'user' -> 'networth' selection in API v1.

    You may need to wait up to an hour for the change to be visible (depending on when was the data requested last time).

    On a side note - I also removed "defaultSelection" from appearing in all lookup selections.

    Thank you.

    Marches [3131483]

    It's a somewhat bigger change, but would there be value in (one day!) adding something like to all requests in v2? That way, you always know if you've accidentally hit a cache.

     

    Either way, love the changes you've been making. Thanks!

    splent [2088243]

    Hey so there are basically 2 different caches. One is request specific cache (we call this internally "service cache") and second is selection specific cache (what I usually refer to as "global" cache).

    It is a "known thing" (it's mentioned nowhere in the official documentation though) to bypass request cache by passing different values in "timestamp" query parameter (or to change any other parameters). That is also why "timestamp" selection exists across all types (user, faction, property, torn, etc.), so you can know when was something cached. 

    If you can do this quickly enough, you can see the request cache working in this example: 

    1. Select 'money,timestamp' from user without any additional parameters, like so: https://api.torn.com/user/?selections=money,timestamp&key=
    2. Send few $$ to a friend

    3. Repeat the request above, the money and timestamp values should still be the same
    4. Request a slightly modified request to see new values, e.g. https://api.torn.com/user/?selections=money,timestamp×tamp=1232&key= (this one should now have different timestamp and money fields)

    5. Eventually (30s after the initial request), the response from the initial request will get updated as well

    But again, this is just an example and it is crucial that you can do this quickly enough.

    So for this request specific cache, you can utilize "timestamp" selection to know if you're getting cached data and when was the data cached.

    This type of cache exists to reduce unnecessary load on the server.

    --

    However, the global cache is a little bit different. It will return the same response regardless of the input parameters, so depending if it is a private or public selection it will return the same response for everyone. For this I'm happy to add specific selection's timestamp. 

    Currently, global cache is used only on 3 selections:

    • 'user' -> 'networth' in API v1
    • 'user' -> 'bazaar' in API v1
    • 'racing' -> 'records' in API v2

     

    For now cache timestamp is only available in 'user' -> 'networth' selection simply because the other 2 selections return arrays and I need to do some refactoring before I can provide cache timestamp on them, but yes - I'll definitely provide this on any future global caches.

    --

    Tldr; You can use "timestamp" selection to know when something was cached, otherwise yes - I will provide specific cache timestamp in the future for globally cached selections.

    Hopefully this was not unnecessary over explaining, but will actually help you understand how everything's working better. 

    Thanks!

    That makes perfect sense - I always thought timestamp was just a yolo property I could whack on in case I wanted to know what time it is. I'll definitely get in on this, thanks!

    • 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 08:59:45 - 01/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Hey all,

    The v2 refactoring of the 'faction' -> 'basic' selection is now complete. The changes include:

    • previously already done 'faction' -> 'members' selection
    • updated 'faction' -> 'basic' selection which includes faction's ranked war enlistment status (only available for your faction with faction AA permissions)
    • new selection 'faction' -> 'wars' which provides information about currently active/recently finished wars in a updated format

     

    These are now also added to Swagger. (If you're not seeing them make sure to hard-refresh your Swagger instance, and openapi.json file).

    Thanks!

    • 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:58:16 - 08/10/24 (2 months ago)
    Post link copied to clipboard Copy post link

    Hey everyone, 

    There's a new selection 'news' in the "faction" API v2 type.

    This selection replaces the following from the API v1: "armorynews", "attacknews", "crimenews", "fundsnews", "mainnews", "membershipnews", "territorynews" and instead offers a slightly better control of what kind of news you can to get.

    Currently these 12 categories can be chosen from: "main", "attack", "armoryDeposit", "armoryAction", "territoryWar", "rankedWar", "territoryGain", "chain", "crime", "membership", "depositFunds", "giveFunds".

    Due to system limitations, in a single API call you can request only up to 10 categories (comma separated when requesting multiple). Most of these require "Minimal" API key, but "attack", "depositFunds" and "giveFunds" categories require at least "Limited" API key.

     

    Additionally, "stripTags" parameter is now also available (along with from, to, limit, sort), but I'm not sure if it will be of much use!

    Unfortunately, I can't provide item UID's in the news, as they're not present in the saved data (I suggest to create a thread in the suggestions forums to get Ched to review that), so sadly that's not getting implemented for now.

    I also provided links for automatic pagination, but if you see those not working correctly please do let me know. 

    As always, this selection is also available in Swagger (if you're not seeing them make sure to hard-refresh your Swagger instance, and openapi.json file).

    Thanks!

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

    Hey everyone, 

    Continuing on the faction refactoring, today's update brings: 

    • refactored 'faction' -> 'attacks' selection. It will now provide attacker & defender levels as well as "respect_loss" field. Additionally, helper links for automatic fetching of more attacks are also available. Due to changed structure, even with new fields, the final json response size is smaller than the one API v1.
    • refactored 'faction' -> 'attacksfull' selection. There's only one new field "respect_loss" added, but otherwise, except for the changed structure and helper links, not much have changed.

    These are now also available through Swagger

    Regarding Swagger - Mavri made me aware that current Swagger implementation is breaking query strings in path rule, so likely all selections will have their endpoints updated soon to fix that. 

    Let me know if something's not working as expected. 

    Thanks!

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

    The improvement of Attacks API is very great.

     

    Is there any chance to add a field into attacks2.0 to directly reveal the Territory War Hit, and even reveal the target Territory Name?

    • Wolverine [1971836]
    • Role: Civilian
    • Level: 100
    • Posts: 5,200
    • Karma: 6,022
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:38:30 - 16/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    I'm noticing way slower torn api responses in the last days.

     

    Before all responses were given immediately.

    • Wolverine [1971836]
    • Role: Civilian
    • Level: 100
    • Posts: 5,200
    • Karma: 6,022
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:54:45 - 22/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Ok, market 2.0 has been released, but which Torn APIs do we have to replicate the new market system?

     

    Like I used to see in my web application the 3 cheapest prices of cans  of rudolph/red cow.

     

    Now I would like to search for example all marauder face masks with at least 54 armor rate using Torn API.

     

    Any idea about existing or implementing APIs that use the new market system?

    • _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 14:24:54 - 22/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    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]
    • Role: Civilian
    • Level: 100
    • Posts: 5,200
    • Karma: 6,022
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:50:29 - 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?

    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.

Reply
Thread Title: