IGetPriceHistory v1 GET /api/IGetPriceHistory/v1

Returns price history for an item

This API has no cooldown.

Documentation

Input
  • format - The response format. Default: json. Valid options: json, jsonp, vdf, pretty.
  • callback - JSONP only. Name of the function.
  • key - Your backpack.tf API key. (XXXXXXXX)
  • appid - Steam app to return data for. Default: 440 (Team Fortress 2). Valid options: 440, 570, 730.
  • item - The item - this can be a name or a definition index.
  • quality - The quality - this can be a name or a definition index.
  • tradable - The item's tradability. Use Tradable or 1 to signify that the item should be tradable, or Non-Tradable or 0 to signify that the item should not be tradable. Default: Tradable.
  • craftable - The item's craftability. Use Craftable or 1 to signify that the item should be craftable, or Non-Craftable or 0 to signify that the item should not be craftable. Default: Craftable.
  • priceindex - The item's priceindex. Refer to the IGetPrices documentation.
Output
  • response
    • success - 1 if successful, 0 otherwise.
    • message - If success is 0, this contains the reason for failure.
    • history - an array of price history objects.
      • 0-indexed element
        • value - low-end of the price.
        • value_high - high-end of the price.
        • currency - internal currency name.
        • timestamp - Unix timestamp pointing to when the price change was accepted.

Example Output

Input GET http://backpack.tf/api/IGetPriceHistory/v1?item=Mann+Co.+Supply+Crate+Key&quality=6&key=XXXXXXXX
item=Mann+Co.+Supply+Crate+Key&quality=6&key=XXXXXXXX
Output
{
    "response": {
        "success": 1,
        "history": [
            {
                "value": 2.55,
                "value_high": 2.55,
                "currency": "metal",
                "timestamp": 1341847708
            },
            {
                "value": 2.5,
                "value_high": 2.66,
                "currency": "metal",
                "timestamp": 1348853696
            },
            {
                "value": 2.55,
                "value_high": 2.66,
                "currency": "metal",
                "timestamp": 1350597074
            }, ...
        ]
    }
}