title: Steam Inventory PHP
body: <p>how is it possible the number of a particular item to read?
  For example: How many items are available from this id?: 927007517</p>
  
  <p>Code: </p>
  
  <pre><code>&lt;?php
  
      $content = file_get_contents('http://steamcommunity.com/profiles/76561198131798299/inventory/json/730/2');
      $result = json_decode($content);
      if($result-&gt;success !== true) {
          echo 'Nicht erfolgreich! :(';
          return;
      }
  
      foreach($result-&gt;rgInventory AS $item) {
          echo $item-&gt;classid.'&lt;br /&gt;';
      }
  
  ?&gt;
  </code></pre>
  
  <p>Output: <a href="http://csgo.square7.ch/csgo-master/api.php" rel="nofollow">http://csgo.square7.ch/csgo-master/api.php</a></p>
  
  <p>Thank You.
  With best regards</p>