Push a website's status, market and coins
Reports a website’s status, market and the coins it takes, and answers what is now stored, what in the push was ignored or looks wrong, and when the website goes stale.
Pushing is free. Authenticate with the website’s key from website.register or website.rotateKey, or with your account key and host. Push at least every 30 minutes: a website silent for 45 minutes shows as stale, and after a day it is hidden.
What a website sends
Every field is optional, and the market objects follow bot.push’s patch rules: a field you leave out keeps its stored value, 0 removes a price side or a count, a stock you send replaces the stored stock, {} clears a map and null clears an object.
A TF2 key shop sends its key price and the coins it takes:
{
"isOnline": true,
"keys": {
"stock": {"tf2": 1200},
"prices": {"usd": {"sell": 2.15, "buy": 1.95}}
},
"crypto": {"coins": ["btc", "eth", "ltc"]}
}
keys.prices.usd.sell is what you sell one TF2 key for, and buy what you pay for one. crypto.coins replaces the whole list: a coin you leave out goes. A website that takes no coins leaves crypto out, and one that stops taking them sends "coins": []. A coin needs no rate; to quote a price per set in a coin, send it in sets.normal.prices.coinsPerSet as in bot.push.
A website that sells sets sends them as a bot does, with its per-app limits and, in sets.levelRange, the account levels its stock is for. languages are the languages the website serves:
{
"sets": {
"normal": {
"stock": {"440": 3},
"prices": {"setsPerKey": {"tf2": {"sell": 12, "buy": 14}}}
},
"limits": {"maxPerUserPerApp": 5},
"levelRange": {"min": 1, "max": 200}
},
"languages": {"supported": ["en", "de"], "default": "en"}
}
What a website does not send
A website has no chat commands, trade rules or feature list, and its URL is its host, fixed at registration. A bot.push field such as commands, rules, features, profile, payment or steamId64, and any other field this body does not define, is ignored and reported as a fieldIgnored issue; the rest of the push is stored.
Testing unlisted
A push never changes who sees the website. To test your script before everyone sees it, hide the website on its page on SteamSets or with bot.setListed and its web_ id: the website takes pushes, but only you and staff see it. New websites start listed.
/v1/website.pushAuthorizationBearer token · headerrequiredapplication/jsonclientBotPushRequestClientThe script sending the push. When it is missing, the User-Agent header names the client.
Show propertiesHide properties
namestringrequiredThe plugin or script, the same in every push it sends. Trimmed.
versionstringIts version, ideally semantic (2.4.1). Trimmed. The response says when it is below the minimum the directory supports for this client.
cryptoWebsitePushRequestCryptoThe coins the website takes. Leave it out to keep the stored coins.
Show propertiesHide properties
coinsstring[]Every coin the website takes, as lowercase tickers, at most 50. Replaces the stored list; a coin you leave out goes, with any per-set price sets quoted for it. [] takes none.
gamesBotPushRequestGamesSteam games, as in bot.push.
Show propertiesHide properties
priceByAppobjectPrices of single games, by app ID, which replace the flat price for those games. Replaces every stored override; {} clears them.
pricesBotPushRequestGamePricesOne flat price per game, whatever the game, by unit.
Show propertiesHide properties
gemsPerGameBotPushRequestRateGems per game. sell is the gems the bot asks for one game, buy is the gems it pays for one game.
Show propertiesHide properties
buynumber<double>The price when the bot buys from you, in the field's unit. 0 means it stopped buying. Sending a buy price is how a bot says it buys.
sellnumber<double>The price when the bot sells to you, in the field's unit. 0 means it stopped selling.
keysPerGameBotPushRequestKeyRatesKeys or tickets per game. sell is the keys the bot asks for one game, buy is the keys it pays for one game.
Show propertiesHide properties
cs2BotPushRequestRateCS2 case keys.
hydraBotPushRequestRateCS Operation Hydra keys.
tf2BotPushRequestRateTeam Fortress 2 keys.
todBotPushRequestRateTour of Duty tickets.
stockobjectApp ID to copies in stock, keys and gifts counted together. Replaces the stored game stock; {} clears it.
gemsBotPushRequestGemsGems, as in bot.push.
Show propertiesHide properties
pricesBotPushRequestGemPricesGem prices, by unit.
Show propertiesHide properties
gemsPerKeyBotPushRequestKeyRatesGems per key or ticket. sell is the gems the bot gives you for one key, buy is the gems it takes from you for one key, so a bot that makes money has sell below buy.
stockinteger<int64>Gems the bot holds. 0 clears it.
hoststringThe website this push is for, in any spelling website.register takes. Required with your account key; optional with the website's key, and then it must be that website's.
isOnlinebooleanWhether the website is taking orders.
keysBotPushRequestKeysKeys the website holds, and prices.usd: what it sells one TF2 key for and pays for one, in US dollars.
Show propertiesHide properties
pricesBotPushRequestKeyPricesWhat you sell one TF2 key for and pay for one, in money.
Show propertiesHide properties
usdBotPushRequestRateUS dollars per TF2 key. sell is what you sell one key for, buy what you pay for one, so a shop that makes money has sell above buy.
stockBotPushRequestKeyCountsKeys and tickets held, per currency. A currency you leave out keeps its count; 0 clears it.
Show propertiesHide properties
cs2integer<int32>CS2 case keys.
hydrainteger<int32>CS Operation Hydra keys.
tf2integer<int32>Team Fortress 2 keys.
todinteger<int32>Tour of Duty tickets.
languagesobject | nullThe languages the website serves. null clears them.
Show propertiesHide properties
defaultstringThe language the bot uses until a user picks another. Must be in supported.
supportedstring[] | nullrequiredISO 639-1 codes, such as en or pt, at most 20. Case and repeats do not matter. An unknown code is a 400.
setsWebsitePushRequestSetsCard sets: stock, prices and per-app limits, as in bot.push, and the account levels the stock is meant for.
Show propertiesHide properties
foilBotPushRequestSetSideFoil sets, priced on their own.
Show propertiesHide properties
pricesBotPushRequestSetPricesSet prices, by unit.
Show propertiesHide properties
coinsPerSetBotPushRequestCoinRate[] | nullCoins per set, one entry per coin. A coin you leave out keeps its prices.
Show propertiesHide properties
BotPushRequestCoinRatebuystringCoins the bot pays for one set, as a decimal string. "0" stops buying for this coin.
coinstringrequiredTicker, such as btc, eth or ltc.
sellstringCoins the bot asks for one set, as a decimal string. "0" stops selling for this coin.
gemsPerSetBotPushRequestRateGems per set. sell is the gems the bot asks for one set, buy is the gems it pays for one set, so a bot that makes money has sell above buy.
setsPerKeyBotPushRequestKeyRatesSets per key or ticket. sell is the sets the bot gives you for one key, buy is the sets it takes from you for one key, so a bot that makes money has sell below buy.
stockobjectApp ID to complete sets. Replaces the stored stock of this side: an app you leave out has none. {} clears it.
levelRangeobject | nullThe account levels the website's set stock is meant for. null clears it.
Show propertiesHide properties
maxinteger<int32>requiredThe highest account level the bot is meant for. 0 means no upper limit.
mininteger<int32>requiredThe lowest account level the bot is meant for.
limitsBotPushRequestSetLimitsLimits on what the bot sells and holds.
Show propertiesHide properties
maxPerUserPerAppinteger<int32>Most sets of one app the bot sells to one user. 0 means no limit.
maxStockPerAppinteger<int32>Most sets of one app the bot holds when it buys. 0 means it does not say.
normalBotPushRequestSetSideNormal sets.
Show propertiesHide properties
pricesBotPushRequestSetPricesSet prices, by unit.
stockobjectApp ID to complete sets. Replaces the stored stock of this side: an app you leave out has none. {} clears it.
OK
isClientOutdatedbooleanrequiredThe client's version is below the lowest the directory supports for this client.
issuesWebsitePushResponseIssue[]requiredEverything in this push that was ignored or looks wrong, at most 100. None of it failed the push. Empty when all is well.
Show propertiesHide properties
WebsitePushResponseIssuecodestringrequiredWhat kind of issue it is, as in bot.push. New codes can appear, so treat an unknown one as a warning.
messagestringrequiredWhat is wrong and what to do about it, in English.
pathstringrequiredThe field the issue is about, as a path into the request body.
staleAtstring<date-time>requiredWhen the website shows as stale if it pushes nothing more. Push again well before it.
storedWebsitePushResponseStoredrequiredWhat the directory now holds for the website, after this push.
Show propertiesHide properties
coinsstring[]requiredThe coins the website takes, in ticker order.
gamesWebsitePushResponseStoredGamesrequiredShow propertiesHide properties
copiesinteger<int32>requiredCopies across all games.
titlesinteger<int32>requiredDistinct games in stock.
gemsinteger<int64>requiredGems the website holds.
keysinteger<int64>requiredKeys the website holds, every currency together.
setsWebsitePushResponseStoredSetsrequiredShow propertiesHide properties
appsinteger<int32>requiredDistinct apps with set stock.
foilinteger<int32>requiredComplete foil sets.
normalinteger<int32>requiredComplete normal sets.
Bad Request
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Unauthorized
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Unprocessable Entity
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Too Many Requests
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.
Internal Server Error
detailstringA human-readable explanation specific to this occurrence of the problem.
errorsErrorDetail[] | nullOptional list of individual error details
Show propertiesHide properties
ErrorDetaillocationstringWhere the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
messagestringError message text
valueanyThe value at the given location
instancestring<uri>A URI reference that identifies the specific occurrence of the problem.
statusinteger<int64>HTTP status code
titlestringA short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestring<uri>A URI reference to human-readable documentation for the error.