IGetPrices v4 Returns price information for all priced items

IGetPrices /api/IGetPrices/v4

Input
  • format - The response format. Default: json
  • callback - JSONP only. Used for the function call.
  • key - Your backpack.tf API key.
  • appid - The AppID to retrieve prices for. Default: 440 (Team Fortress 2)
  • raw - If set, adds a value_raw to the priceindex objects which represents the value of the item in the lowest currency without rounding. If a high value is set, the raw value will be an average between the low and high value. Setting raw to 2 prevents this behaviour by adding a new field, value_high_raw. Default: disabled
  • since - If set, only returns prices that have a last_update value greater than or equal to this UNIX time.
Output
  • response
    • success - 1 if successful, 0 otherwise.
    • message - if success is 0, this contains the reason for failure.
    • current_time - The server time when the response was created.
    • raw_usd_value - The USD value of the smallest currency. For example, if the appid is Team Fortress 2, this will be the USD value of 1 Refined Metal.
    • usd_currency - The name of the smallest currency as it appears in the priceindex objects.
    • usd_currency_index - The definition index of the smallest currency.
    • items - an array of items keyed by item names.
      • Item Name
        • defindex - an array of defindexes that the item is linked to.
        • prices
          • Quality Integer
            • Tradable/Untradable
              • Craftable/Uncraftable
                • Priceindex - The priceindex for this item. See the section below.
                  • currency - The currency the item's price is in.
                  • value - The item's value measured in said currency.
                  • value_high - The item's upper value measured in said currency. Only set if the item has a price range.
                  • value_raw - The item's value in the lowest currency without rounding. If raw is set to 2, this is the lower value if a high value exists. Otherwise, this is the average between the high and low value. Requires raw to be enabled.
                  • value_high_raw - The item's high value in the lowest currency without rounding. Requires raw to be enabled and set to 2.
                  • last_update - A timestamp of when the price was last updated.
                  • difference - A relative difference between the former price and the current price in the lowest currency. If this item is the lowest currency, then this is USD. If difference is equal to the value, assume new price. If difference is 0, assume refresh.
Priceindex

The priceindex is an attribute that is applied to priced items that share the same definition index and quality. For most items, it is zero. Otherwise, the use varies by context:

Particle effects

For items with particle effects, the priceindex corresponds to the ID of the particle as documented in the web API.

Dual qualities

Dual quality IDs are bit shifted by 16.

Crates

The priceindex corresponds to the crate series.

Strangifiers

The priceindex of a Strangifier corresponds to the definition index of the item it can be used on.

Chemistry Sets

The priceindex of a Chemistry Set is a hyphen-delimited string of two numbers; the definition index and the quality of the item. 1086-14 is the priceindex for a Collector's Festive Wrangler.