Jump to content

API, can we hide listings?


wutwut872

Recommended Posts

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

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

  • wutwut872 locked this topic
  • wutwut872 unlocked this topic

@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

@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

  • wutwut872 locked this topic

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...