Skip to content
SteamSets
Esc
↑↓navigate↵open⌘Jpreview

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.

POST/v1/website.push
Authorization
AuthorizationBearer token · headerrequired
Request body
requiredapplication/json
clientBotPushRequestClient

The script sending the push. When it is missing, the User-Agent header names the client.

Show properties
namestringrequired

The plugin or script, the same in every push it sends. Trimmed.

max length 64
versionstring

Its version, ideally semantic (2.4.1). Trimmed. The response says when it is below the minimum the directory supports for this client.

max length 32
cryptoWebsitePushRequestCrypto

The coins the website takes. Leave it out to keep the stored coins.

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

gamesBotPushRequestGames

Steam games, as in bot.push.

Show properties
priceByAppobject

Prices of single games, by app ID, which replace the flat price for those games. Replaces every stored override; {} clears them.

pricesBotPushRequestGamePrices

One flat price per game, whatever the game, by unit.

Show properties
gemsPerGameBotPushRequestRate

Gems per game. sell is the gems the bot asks for one game, buy is the gems it pays for one game.

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

min 0
sellnumber<double>

The price when the bot sells to you, in the field's unit. 0 means it stopped selling.

min 0
keysPerGameBotPushRequestKeyRates

Keys or tickets per game. sell is the keys the bot asks for one game, buy is the keys it pays for one game.

Show properties
cs2BotPushRequestRate

CS2 case keys.

hydraBotPushRequestRate

CS Operation Hydra keys.

tf2BotPushRequestRate

Team Fortress 2 keys.

todBotPushRequestRate

Tour of Duty tickets.

stockobject

App ID to copies in stock, keys and gifts counted together. Replaces the stored game stock; {} clears it.

gemsBotPushRequestGems

Gems, as in bot.push.

Show properties
pricesBotPushRequestGemPrices

Gem prices, by unit.

Show properties
gemsPerKeyBotPushRequestKeyRates

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

min 0
hoststring

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

isOnlineboolean

Whether the website is taking orders.

keysBotPushRequestKeys

Keys the website holds, and prices.usd: what it sells one TF2 key for and pays for one, in US dollars.

Show properties
pricesBotPushRequestKeyPrices

What you sell one TF2 key for and pay for one, in money.

Show properties
usdBotPushRequestRate

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

stockBotPushRequestKeyCounts

Keys and tickets held, per currency. A currency you leave out keeps its count; 0 clears it.

Show properties
cs2integer<int32>

CS2 case keys.

min 0
hydrainteger<int32>

CS Operation Hydra keys.

min 0
tf2integer<int32>

Team Fortress 2 keys.

min 0
todinteger<int32>

Tour of Duty tickets.

min 0
languagesobject | null

The languages the website serves. null clears them.

Show properties
defaultstring

The language the bot uses until a user picks another. Must be in supported.

supportedstring[] | nullrequired

ISO 639-1 codes, such as en or pt, at most 20. Case and repeats do not matter. An unknown code is a 400.

setsWebsitePushRequestSets

Card sets: stock, prices and per-app limits, as in bot.push, and the account levels the stock is meant for.

Show properties
foilBotPushRequestSetSide

Foil sets, priced on their own.

Show properties
pricesBotPushRequestSetPrices

Set prices, by unit.

Show properties
coinsPerSetBotPushRequestCoinRate[] | null

Coins per set, one entry per coin. A coin you leave out keeps its prices.

Show properties
Array of BotPushRequestCoinRate
buystring

Coins the bot pays for one set, as a decimal string. "0" stops buying for this coin.

coinstringrequired

Ticker, such as btc, eth or ltc.

sellstring

Coins the bot asks for one set, as a decimal string. "0" stops selling for this coin.

gemsPerSetBotPushRequestRate

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

setsPerKeyBotPushRequestKeyRates

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

stockobject

App ID to complete sets. Replaces the stored stock of this side: an app you leave out has none. {} clears it.

levelRangeobject | null

The account levels the website's set stock is meant for. null clears it.

Show properties
maxinteger<int32>required

The highest account level the bot is meant for. 0 means no upper limit.

min 0
mininteger<int32>required

The lowest account level the bot is meant for.

min 0
limitsBotPushRequestSetLimits

Limits on what the bot sells and holds.

Show properties
maxPerUserPerAppinteger<int32>

Most sets of one app the bot sells to one user. 0 means no limit.

min 0
maxStockPerAppinteger<int32>

Most sets of one app the bot holds when it buys. 0 means it does not say.

min 0
normalBotPushRequestSetSide

Normal sets.

Show properties
pricesBotPushRequestSetPrices

Set prices, by unit.

stockobject

App ID to complete sets. Replaces the stored stock of this side: an app you leave out has none. {} clears it.

Responses
200

OK

isClientOutdatedbooleanrequired

The client's version is below the lowest the directory supports for this client.

issuesWebsitePushResponseIssue[]required

Everything in this push that was ignored or looks wrong, at most 100. None of it failed the push. Empty when all is well.

Show properties
Array of WebsitePushResponseIssue
codestringrequired

What kind of issue it is, as in bot.push. New codes can appear, so treat an unknown one as a warning.

messagestringrequired

What is wrong and what to do about it, in English.

pathstringrequired

The field the issue is about, as a path into the request body.

staleAtstring<date-time>required

When the website shows as stale if it pushes nothing more. Push again well before it.

storedWebsitePushResponseStoredrequired

What the directory now holds for the website, after this push.

Show properties
coinsstring[]required

The coins the website takes, in ticker order.

gamesWebsitePushResponseStoredGamesrequired
Show properties
copiesinteger<int32>required

Copies across all games.

min 0
titlesinteger<int32>required

Distinct games in stock.

min 0
gemsinteger<int64>required

Gems the website holds.

min 0
keysinteger<int64>required

Keys the website holds, every currency together.

min 0
setsWebsitePushResponseStoredSetsrequired
Show properties
appsinteger<int32>required

Distinct apps with set stock.

min 0
foilinteger<int32>required

Complete foil sets.

min 0
normalinteger<int32>required

Complete normal sets.

min 0
400

Bad Request

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

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

default: "about:blank"
401

Unauthorized

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

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

default: "about:blank"
422

Unprocessable Entity

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

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

default: "about:blank"
429

Too Many Requests

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

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

default: "about:blank"
500

Internal Server Error

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

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

default: "about:blank"
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.steamsets.com/v1/website.push' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "client": {
    "name": "Steam-levelup-BOT",
    "version": "2.4.1"
  },
  "crypto": {
    "coins": [
      "btc",
      "eth",
      "ltc"
    ]
  },
  "games": {
    "prices": {
      "keysPerGame": {
        "tf2": {
          "sell": 1.5
        }
      }
    },
    "stock": {
      "730": 2
    }
  },
  "gems": {
    "prices": {
      "gemsPerKey": {
        "tf2": {
          "buy": 3600,
          "sell": 3400
        }
      }
    },
    "stock": 100000
  },
  "host": "example.com",
  "isOnline": true,
  "keys": {
    "prices": {
      "usd": {
        "buy": 1.9,
        "sell": 2.1
      }
    },
    "stock": {
      "tf2": 10,
      "tod": 0
    }
  },
  "languages": {
    "default": "en",
    "supported": [
      "en",
      "de"
    ]
  },
  "sets": {
    "levelRange": {
      "max": 500,
      "min": 0
    },
    "limits": {
      "maxPerUserPerApp": 5
    },
    "normal": {
      "prices": {
        "setsPerKey": {
          "tf2": {
            "buy": 14,
            "sell": 12
          }
        }
      },
      "stock": {
        "440": 3
      }
    }
  }
}'
Response
{
  "isClientOutdated": true,
  "issues": [
    {
      "code": "fieldIgnored",
      "message": "string",
      "path": "commands"
    }
  ],
  "staleAt": "2019-08-24T14:15:22Z",
  "stored": {
    "coins": [
      "string"
    ],
    "games": {
      "copies": 0,
      "titles": 0
    },
    "gems": 0,
    "keys": 0,
    "sets": {
      "apps": 0,
      "foil": 0,
      "normal": 0
    }
  }
}