Jump to content

Basic rundown on API?


Weenie scrub Juniors

Recommended Posts

Hi All! 

 

Sorry if I posted this in the wrong place. I am trying to get the web API to work for a small project (college) and I am running into some issues with the price history API and would love to see some examples. Essentially I would like to see a general example (obviously with the key scrubbed/deleted) for a general price history search. Thank you! Essentially if somone could show me how to fill this in once that would be awesome! 

 

image.thumb.png.ba024beb805569a24ab221a4b55e3c7d.png

image.png

Link to comment
Share on other sites

  • 4 weeks later...

appid - game id (440 for tf2)
item - item base name (for C# you can use Uri.EscapeDataString(ItemName) to convert "Mann Co. Supply Crate Key" to "Mann%20Co.%20Supply%20Crate%20Key")
quality - item quality 
 Qualities, that i know:
                Normal = 0
                Genuine = 1
                Vintage = 3
                Unusual = 5
                Unique = 6
                Self-Made = 9
                Strange = 11
                Collector = 14
                Decorated Weapon = 15
priceindex - only for unusual items. 

Link for Mann Co. Supply Crate Keyhttps://backpack.tf/api/IGetPriceHistory/v1?appid=440&item=Mann Co. Supply Crate Key&quality=6&tradable=Tradable&craftable=Craftable&priceindex=0&key=YOUR_API_KEY

Responce looks like that:

image.thumb.png.b8b57cb0e52f9aaf876ca114223da7c2.png

Link to comment
Share on other sites

  • 4 weeks later...
On 3/21/2022 at 5:03 PM, Crab_Bot said:

appid - game id (440 for tf2)
item - item base name (for C# you can use Uri.EscapeDataString(ItemName) to convert "Mann Co. Supply Crate Key" to "Mann%20Co.%20Supply%20Crate%20Key")
quality - item quality 
 Qualities, that i know:
                Normal = 0
                Genuine = 1
                Vintage = 3
                Unusual = 5
                Unique = 6
                Self-Made = 9
                Strange = 11
                Collector = 14
                Decorated Weapon = 15
priceindex - only for unusual items. 

Link for Mann Co. Supply Crate Keyhttps://backpack.tf/api/IGetPriceHistory/v1?appid=440&item=Mann Co. Supply Crate Key&quality=6&tradable=Tradable&craftable=Craftable&priceindex=0&key=YOUR_API_KEY

Responce looks like that:

image.thumb.png.b8b57cb0e52f9aaf876ca114223da7c2.png

Hi! exist the chance to check strange unusuals?

 

Link to comment
Share on other sites

On 4/14/2022 at 8:29 PM, ElspyLech 📱✔ ⇌ said:

Hi! exist the chance to check strange unusuals?

 

With IGetPriceHistory? No

Link to comment
Share on other sites

  • 3 weeks later...
On 4/16/2022 at 12:28 AM, Zeus_Junior said:

With IGetPriceHistory? No

Of course you can, just put "Strange Unusual" in the quality field

Link to comment
Share on other sites

6 hours ago, Brom127 said:

Of course you can, just put "Strange Unusual" in the quality field

Since both their examples had qualities as IDs I forgot that text also works woops

Link to comment
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.
×
×
  • Create New...