wutwut872 Posted August 16, 2020 Share Posted August 16, 2020 Wondering if there is a way to hide a listing via the API, vs just to delete and create one. Anyone have information on this? Thanks! Link to comment Share on other sites More sharing options...
Zeus_Junior Posted August 16, 2020 Share Posted August 16, 2020 I don't believe there is, no Link to comment Share on other sites More sharing options...
Vortegan Posted August 17, 2020 Share Posted August 17, 2020 Answered this one before Quote what documentation in all seriousness, it looks like a POST request is sent to https://backpack.tf/user/<SID64>/classifieds with the following form data: { intent: <buy | sell> action: <hide | unhide> may_unhide: false user-id: <userid> } where intent can be buy or sell, action can be hide or unhide, and user-id is your user-id cookie(?) Original Thread Link to comment Share on other sites More sharing options...
wutwut872 Posted August 17, 2020 Author Share Posted August 17, 2020 15 hours ago, Vortegan said: Answered this one before Original Thread Ah sorry, I must have missed that thread. Thank you for the help tho! Link to comment Share on other sites More sharing options...
wutwut872 Posted August 29, 2020 Author Share Posted August 29, 2020 @Vortegan Reopening to ask a follow up question, is there a way to hide a single/list of listings as opposed to all or none? Tried to comb through old questions but couldn't find any answers on that. Thanks for the help Link to comment Share on other sites More sharing options...
Vortegan Posted August 29, 2020 Share Posted August 29, 2020 @wutwut872 POST to https://backpack.tf/classifieds/hide/LISTING_ID or https://backpack.tf/classifieds/unhide/LISTING_ID to hide or unhide respectively. Listing ID of Sell listing will look like: "440_8962006733", which is "440_" + asset ID of TF2 item. Listing ID of Buy Listing will look like: "440_76561198266614530_d6b8b00c778686c1930196779c3b205e", which is "440_" + steam ID of user + "_" + (probably) ID of listing in backpack.tf DB. the form data only contains one property this time: { "user-id": "<user-id>" } For future reference, open the network tab in developer tools, and hide/unhide a listing, you can see the requests i've mentioned above. Link to comment Share on other sites More sharing options...
wutwut872 Posted August 30, 2020 Author Share Posted August 30, 2020 @Vortegan Thank you very much! The network tab tip is super useful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.