Jump to content
McKay Development

How to get defindex or item data from CEconItem


Recommended Posts

I'm trying to filter "backpack.tf" listings based on an inventory items, but I'm not sure how to get a "defindex" or any other way to map the item from CEconItem.

I know the Steam WebAPI provides a "IEconItems_440" method to get the player items with relevant information like a "defindex", is there any special reason why you are not using this?

Link to comment
Share on other sites

15 hours ago, JAHMCR said:

I'm trying to filter "backpack.tf" listings based on an inventory items, but I'm not sure how to get a "defindex" or any other way to map the item from CEconItem.

I know the Steam WebAPI provides a "IEconItems_440" method to get the player items with relevant information like a "defindex", is there any special reason why you are not using this?

You can't really reliably do it. There are some community endpoints that include app_data on the item description, which does contain def_index, but not all have that.

steam-tradeoffer-manager isn't using IEconItems_440 because that's a TF2-specific interface and steam-tradeoffer-manager is meant to work with any Steam app.

Link to comment
Share on other sites

3 minutes ago, Dr. McKay said:

You can't really reliably do it. There are some community endpoints that include app_data on the item description, which does contain def_index, but not all have that.

steam-tradeoffer-manager isn't using IEconItems_440 because that's a TF2-specific interface and steam-tradeoffer-manager is meant to work with any Steam app.

Yeah, that makes sense. Will have to implement my own function to retrieve the inventory using "IEconItems_440". Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...