Steam API need help
So. im trying to create my own trading bot. However im just messing around with the api at the moment. only thing is i cant manage to find how to get GetTradeOffers to return some data. http://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=<My Key> is what i am using. i just get a blank response back. Any help?
< >
Showing 1-6 of 6 comments
https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=[APIKEY]

&format=json
&get_sent_offers=true
&get_received_offers=true
&get_descriptions=false
&active_only=false
&historical_only=true

as explained in the documentation either the get_sent_offers or get_received_offers has to be set.

https://developer.valvesoftware.com/wiki/Steam_Web_API/IEconService#GetTradeOffers_.28v1.29

few examples of how your GET should somewhat look like:

//get_sent_offers
https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=[APIKEY]&format=json&get_sent_offers=true

//get_received_offers
https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=[APIKEY]&format=json&get_received_offers=true

//everything....
https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=[APIKEY]&format=json&get_sent_offers=1&get_received_offers=1&get_descriptions=0&active_only=0&historical_only=0&time_historical_cutoff=15


also if you are using a api key from another account of yours u should also know that it will only return data from the account of which api key u are using:

This API gets a list of trade offers for the account associated with the WebAPI key. You cannot call this API for accounts other than your own.

Hi ... I have a question .... every time i enter http://api.steampowered.com/IEconService/GetTradeOffers/v0001/?&key=XXXXXXXXXXXXXXXXXX&get_send_offers=true the only thing i recive is

{
"response": {

}
}

My api key is right :)

can you help me pls ?
Originally posted by BitPhinix:
Hi ... I have a question .... every time i enter http://api.steampowered.com/IEconService/GetTradeOffers/v0001/?&key=XXXXXXXXXXXXXXXXXX&get_send_offers=true the only thing i recive is

{
"response": {

}
}

My api key is right :)

can you help me pls ?

Hi!
Try to remove an ampersand. You have: "v0001/?&key="; it must be: "v0001/?key="
Also you need to correct this: get_sent_offers (and you have "get_send_offers")! Sent not send!
I have the same problem. Api key is valid bat response is empty
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Feb 23, 2015 @ 9:05am
Posts: 6