Jump to content
cares

backpack.tf API inquiries thread

Recommended Posts

cares    687
cares

If you have any questions regarding API use (including rate limits), please post here. A developer will get back to you shortly.

Private matters are preferably handled through PMs on the forum. If you think a reply to your question may benefit others, please post here so others can see it.

New API suggestions should be posted in the Labs thread. Improvements to existing APIs should be requested here.

Share this post


Link to post
Share on other sites
Julia    951
Julia

Is the IGetUserListings API being removed? I find it invaluable for managing my own listings. It saves me a lot of time.

 

Also, I'm curious what the rate limits are (for both premium/$35 donor and non-premium users).

Share this post


Link to post
Share on other sites
cares    687
cares

Is the IGetUserListings API being removed? I find it invaluable for managing my own listings. It saves me a lot of time.

 

Also, I'm curious what the rate limits are (for both premium/$35 donor and non-premium users).

 

It's deprecated and will be removed soon. Before then I will introduce an access token API to get your own listings.

 

The rate limits are subjective; if I see you abuse, there will be sanctions. If someone has contributed an amount to the site I will be much more lenient. Right now most API users are actually shell accounts that don't even use the site.

 

I don't think you have much to worry about, you've contributed a lot to the site (not just monetary contributions but also suggestions). If there's a problem I will send you a notification on the site.

 

I do see you use a lot of requests, perhaps you are willing to share your more exact use case? I've gotten requests of just displaying the price of the top x classifieds for an item. That would be substantially faster for us to generate, so if there's demand for that I'll add a separate classifieds price trends API.

 

What language is the API coded in?

 

You communicate with the API using JSON.

Share this post


Link to post
Share on other sites
Axle Change    87
Axle Change

Is there anyway to determine if a user is using automatic using the classifieds API? From what I can tell it doesn't seem to be possible currently, but it would be a nice feature.

Share this post


Link to post
Share on other sites
cares    687
cares

Is there anyway to determine if a user is using automatic using the classifieds API? From what I can tell it doesn't seem to be possible currently, but it would be a nice feature.

 

There is a field called 'automatic' if the offer is automatic.

Share this post


Link to post
Share on other sites
tooproper    1
tooproper

Good day, I'm just wondering if there's a way to remove a classified listing with the API or does it only allow creation?

Thanks for your time.

Share this post


Link to post
Share on other sites
akosmaster    0
akosmaster

Hello I have 5$ donator status and i would like to add the lightning bolt to my trades. The apis i tried dont work and the documentation doesnt help. IHEARTBEAT api returns 0 bumped

 

 

Share this post


Link to post
Share on other sites
Zeus_Junior    212
Zeus_Junior
On 1/11/2019 at 4:46 PM, akosmaster said:

Hello I have 5$ donator status and i would like to add the lightning bolt to my trades. The apis i tried dont work and the documentation doesnt help. IHEARTBEAT api returns 0 bumped

 

 

(Old link, if you’re using the one from the swagger ui then thats better)

POST to http://backpack.tf/api/aux/heartbeat/v1?token=xxxxxx 

since you’ve only donated 5$, your listings Will be autobumped every 3 hours, if you send a request every 2 minutes then most of the time the result Will be 0 listings bumped.

Share this post


Link to post
Share on other sites
akosmaster    0
akosmaster

I did this:

curl -XPOST "https://backpack.tf/api/aux/heartbeat/v1?token=*my token from connections*&automatic=all" -H "accept: application/json"

it returns {bumped: 0} but i dont get lightning bolt

Share this post


Link to post
Share on other sites
akosmaster    0
akosmaster

If you can show me how to use the new one i could use that but the docu is just shit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×