Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Comparison between TF2 WebAPI and Steam Inventory API results for a unique Your
- Eternal Reward in an F2P backpack. Comments added by me indicated by a #.
- ================================================================================
- TF2 WebAPI:
- {
- "id": 10042989175,
- "original_id": 10042989175,
- "defindex": 225, # ID of Your Eternal Reward in TF2 item schema
- "level": 1,
- "quality": 6, # 6 means Unique
- "inventory": 2147483675, # specifies position in backpack
- "quantity": 1,
- "origin": 0, # 0 means Timed Drop
- "equipped": [ # Player has this equipped in loadout
- {
- "class": 8,
- "slot": 2
- }
- ],
- "attributes": [
- {
- "defindex": 796, # Viewmodel offset when using minmode
- "value": "5 0 -4"
- },
- {
- "defindex": 154, # "disguise on backstab"
- "value": 1065353216,
- "float_value": 1
- },
- {
- "defindex": 156, # "silent killer"
- "value": 1065353216,
- "float_value": 1
- },
- {
- "defindex": 144, # "lunchbox adds minicrits" (???)
- "value": 1065353216,
- "float_value": 1
- },
- {
- "defindex": 551, # "special taunt"
- "value": 1065353216,
- "float_value": 1
- },
- {
- "defindex": 34, # increased cloak drain rate
- "value": 1068121457,
- "float_value": 1.3300000429153442
- },
- {
- "defindex": 816, # disguise requires a full cloak meter
- "value": 1065353216,
- "float_value": 1
- }
- ]
- },
- ================================================================================
- Steam Inventory API result is actually returned in two parts. First part is very
- short, second part has the rest of the information. This is because fetching
- part 2 is optional, in case for whatever reason an application only needs item
- IDs and not much else.
- Part 1:
- {
- "appid": 440,
- "contextid": "2",
- "assetid": "10042989175", # same as "id" in TF2 WebAPI
- "classid": "156", # specifies Your Eternal Reward ?
- "instanceid": "23967790", # not sure, but together with classid this specifies the item description in part 2
- "amount": "1"
- },
- Part 2:
- {
- "appid": 440,
- "classid": "156",
- "instanceid": "23967790",
- "currency": 0,
- "background_color": "3C352E",
- "icon_url": "fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZULUrsm1j-9xgEIUwIFWAnsuTR8ms3xDOCIN-wBid0wq8INjWQ9lwMoNbq3aTQzcQfGU6EOCaI_rQm_UHFlupY6A4Hvoe1XfAnx9NyR6XUuLuY",
- "icon_url_large": "fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZULUrsm1j-9xgEIUwIFWAnsuTR8ms3xDOCIN-wBid0wq8INjWQ9lwMoNbq3aTQzcQfGU6EOCaI_rQm_UHFlupY6A4Hvoe1XfAnx9NyR6XUuLuY",
- "descriptions": [
- {
- "value": "Upon a successful backstab against a human target, you rapidly disguise as your victim",
- "color": "7ea9d1"
- },
- {
- "value": "Silent Killer: No attack noise from backstabs",
- "color": "7ea9d1"
- },
- {
- "value": "+33% cloak drain rate",
- "color": "d83636"
- },
- {
- "value": "Normal disguises require (and consume) a full cloak meter",
- "color": "d83636"
- },
- {
- "value": " "
- },
- {
- "value": "The Saharan Spy",
- "color": "e1e10f"
- },
- {
- "value": " "
- },
- {
- "value": "L'Etranger",
- "color": "8b8989"
- },
- {
- "value": "Your Eternal Reward",
- "color": "8b8989"
- },
- {
- "value": "Familiar Fez",
- "color": "8b8989"
- },
- {
- "value": " "
- },
- {
- "value": "Item Set Bonus:",
- "color": "e1e10f"
- },
- {
- "value": "Extra effects when taunting",
- "color": "8b8989"
- },
- {
- "value": " "
- },
- {
- "value": "( Not Tradable or Marketable )"
- }
- ],
- "tradable": 0, # not tradable!
- "actions": [
- {
- "link": "http://wiki.teamfortress.com/scripts/itemredirect.php?id=225&lang=en_US",
- "name": "Item Wiki Page..."
- }
- ],
- "name": "Your Eternal Reward",
- "name_color": "7D6D00",
- "type": "Level 1 Knife",
- "market_name": "Your Eternal Reward",
- "market_hash_name": "Your Eternal Reward",
- "commodity": 0,
- "market_tradable_restriction": 7,
- "market_marketable_restriction": 0,
- "marketable": 0,
- "tags": [ # this seems to be where any game-specific information has to be put
- {
- "category": "Quality",
- "internal_name": "Unique",
- "localized_category_name": "Quality",
- "localized_tag_name": "Unique",
- "color": "7D6D00"
- },
- {
- "category": "Type",
- "internal_name": "melee",
- "localized_category_name": "Type",
- "localized_tag_name": "Melee weapon"
- },
- {
- "category": "Class",
- "internal_name": "Spy",
- "localized_category_name": "Class",
- "localized_tag_name": "Spy"
- }
- ]
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement