Jump to content

Backpack.tf DELETE listings api unreasonable


Walter_

Recommended Posts

Hello again, i've made a few scripts to automate my usual day of trading in TF2 to the point where i only have to do about 20-30% of what i used to do.
I wanted to lower it even more by utilizing backpack.tf's delete listings api endpoint ( token based ) but there is something terribly wrong with it.

Not only is it not documented but is also acknowledged by bptf staff that it is in fact undocumented.
But it gets worse.

I managed to find an image of a discord message by bptf staff that included confirmation that it was undocumented + parameters needed for the api.
So i got to work and managed to provide perfect inputs but the api refuses to delete my listings and insists they don't exist.

My function:

image1.PNG.3c877cfe050b53ae422b002ef83e3858.PNG

My function's console output. This is bptf saying the listing doesn't exist for given item. Happens for every id i throw at it. I have tried original_id and current_id.

image2.PNG.626f477f4a20bcb537b45dab52141f93.PNG

 

Proof that listing exists from bptf html. I could have gone for _inventory but not everyone knows what that is.

 

image3.png.f6bc1f454e37f54d97d47371b7dfd54f.png

 

Link to comment
Share on other sites

Take for example your listing for the The Pocket Purrer

For sell orders, you need the assetid of the item if i recall correctly. The full listing id would be 

image.png.74395169951e53a063b058d2b75dd424.png

appid_assetid

 

And for buy orders, its actually this id:  

image.png.e5c415133f4fa7ed9d00a01dd75ed8ee.png

appid_steamid_listinghash

 

Just remove 'listing-'

You can get ids using the classified search api. https://backpack.tf/api/classifieds/search/v1?key=x&steamid=76561198144346135

or the my listings api https://backpack.tf/api/classifieds/listings/v1?token=usertoken

 

Let me know if this works for you!

 

 

Link to comment
Share on other sites

  • 3 weeks later...
On 6/30/2019 at 3:33 PM, Zeus_Junior said:

Take for example your listing for the The Pocket Purrer

For sell orders, you need the assetid of the item if i recall correctly. The full listing id would be 

image.png.74395169951e53a063b058d2b75dd424.png

appid_assetid

 

And for buy orders, its actually this id:  

image.png.e5c415133f4fa7ed9d00a01dd75ed8ee.png

appid_steamid_listinghash

 

Just remove 'listing-'

You can get ids using the classified search api. https://backpack.tf/api/classifieds/search/v1?key=x&steamid=76561198144346135

or the my listings api https://backpack.tf/api/classifieds/listings/v1?token=usertoken

 

Let me know if this works for you!

 

 


Thanks for responding! so i forgot the 440_ in front of the ID. I was used to not doing so because of api's like classifieds/list/v1 not requiring it. :C

I did find a workaround in the past few days but haven't used it yet due to how it uses steam's openID system and i dont understand anything about how to refresh OAuth tokens and such 
image.png.0c5115326f1b3ee0495d0dea1de7785d.png
basically just copies the thing that happens when you click on "delete listing" on browser.

 

EDIT: I just tested adding the TF2 appid ( 440 ) in front of the ID and it works! 

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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