Jump to content
McKay Development

Recommended Posts

Posted (edited)

What is the Best way to call steam api for steam items i have been using

$id = "76561198147982809";
$query = "http://steamcommunity.com/profiles/".$id."/inventory/json/440/2/";;
$json = file_get_contents($query);
$data = json_decode($json, true);

to get my bots inventory of course has 0 tradable items and get the failed error alot

failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests

is calling the

http://steamcommunity.com/profiles/[steamid]/inventory/json/440/2/

the best way i am creating a website like scrap.tf for my steam bots to buy and sell items

if there is a better way Please let me know i know some about the steam API but not the most about it and not sure which would be best if i use that

and also if i upload my site onto my host will it do the errors alot or just when client calls the json i used?

Edited by Lonster_Monster
  • 1 month later...
Posted

Hi!

 

I use for this api:

 

 

 

https://steamcommunity.com/inventory/[steamid]/440/2

 

I have 992 items and it only shows a few item.

 

 

"more_items":1,"last_assetid":"7213560531","total_inventory_count":992,"success":1,"rwgrsn":-2

 

How to show all items?

Posted

Use a ?count=x parameter to specify how many items you want it to return. I think the limit might be 2000. If you still get more_items: 1 in the response then you need to make another request with a parameter in the URL start_assetid=.

  • 2 years later...

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...