GEt Steam or CSGO backpack/inventory using steam API

Sayan Mukherjee picture Sayan Mukherjee · Sep 11, 2014 · Viewed 13k times · Source

Is this possible to get Steam(753) or CsGo(730) full backpack/inventory using steam API?

I found an API where I get the full backpack/inventory of Dota2(570) TF2(440)

Here is the API :

URL : http://api.steampowered.com/IEconItems_/GetSchema/v0001/?key={api_key}

When I put steam or csgo appid , this API return 'NOT FOUND'. Further , I search for many API regarding this but not found any which should help me to get all the items.

I found many API regarding this which should give me the CSGO backpack of a particular user.

Here is the one API.

URL : http://api.steampowered.com/IEconItems_730/GetPlayerItems/v0001/?key={api_key}&SteamID={steam_id64}

From this api I can get any steam user's backpack except steam (753).I also searched many APi regarding this , but the result is same.

I know that there are no official api to get CSGO items but then where from many websites show full csgo backpack on there website for trade and bet.

If anyone know how to get this please reply to my question.

Answer

BlueRaja - Danny Pflughoeft picture BlueRaja - Danny Pflughoeft · Sep 11, 2014

You can construct the API URL using this statement:

string.Format("http://steamcommunity.com/profiles/{0}/inventory/json/{1}/{2}/", steamid.ConvertToUInt64(), appid, contextId)

However, if you're using SteamBot, there's no need to do this manually. The GenericInventory class handles making and parsing the request for you automatically.