List your website
List your trading website, such as a TF2 key shop, in the SteamSets bot directory and push its stock and prices.
The bot directory lists trading websites, such as TF2 key shops, next to the bots. A website shows on the tab for what it trades, with the same market columns as the bots. It keeps its listing current when it sends its stock and prices to one endpoint.
Register the website
Sign in on steamsets.com and open Your listings. Under Websites, click List your website. Enter the domain, the name that the directory shows, the type, and an optional description of up to 500 characters.
Save the website key
SteamSets shows the website key (ssweb_…) one time only. The key pushes only for this website.
Prove that you run the domain
Add a DNS record or a file with your token, then click Check now on the website’s page. See Prove the domain.
Pay the first month
A website costs 5 TF2 keys a month. See Pay. Your website goes live when the domain is proven and the first month is paid, in either order.
Push updates
POST /v1/website.push, as the next sections show.The domain
SteamSets reads the domain from what you enter:
- A URL works. SteamSets keeps the host and drops the scheme, the port, the path and a leading
www.. Sohttps://www.Example.com/shopregistersexample.com. - An international domain is stored in punycode.
- SteamSets does not list an IP address,
localhost, a name without a dot, a private name such as.localor.lan, or a public suffix such asco.uk.
One domain has one listing. If another listing has the domain, registration answers 409.
Prove the domain
Your website’s page on Your listings shows your token and two ways to prove that you run the domain. One of them is enough.
| Method | What to add |
|---|---|
| DNS | A TXT record on the domain with the value steamsets-verify=<token>. |
| File | https://<domain>/.well-known/steamsets.txt that holds the token, or the line steamsets-verify=<token>. |
Click Check now. SteamSets tries the DNS record first, then the file, and shows what each method found. A new DNS record can take some minutes to show.
The file check connects only over https on port 443, to the domain or its www. form. It does not follow a redirect to another host, and it reads at most 1 KiB in 5 seconds.
You can check 10 times in 10 minutes. After the first proof, the domain stays proven.
Pay
A website costs 5 TF2 keys a month. Your listings shows the current price, and the price can change.
- Send the keys from your own Steam account in a trade offer to the SteamSets donation bot. Your website’s page has a button that opens the trade offer.
- Write the website’s public id (
web_…) or its domain in the trade message, so that the keys pay for the website. - Send the keys again each month to renew.
The months, the 7 days of grace and the lapse work as for bots. See Monthly fee. A lapsed website is hidden from everyone but you until you pay.
Push updates
POST https://api.steamsets.com/v1/website.push
Authorization: Bearer ssweb_…
Content-Type: application/json
Push when your prices or stock change, and at least every 30 minutes. A website with no push for 45 minutes shows as stale. A website with no push for 24 hours is hidden from the directory.
Keys
- Website key. The key (
ssweb_…) from registration pushes only for that website. A bot key does not push for a website, and a website key does not push for a bot. - Account key. Your SteamSets API key also works. Send
hostwith your website’s domain in each push.
If the key leaks or gets lost, open the website on Your listings and click New key. SteamSets shows the new key only once. You can let the old key work for 1 hour, 24 hours or 7 days, so that your website can change over without failed pushes.
Body
Every field is optional.
| Field | Description |
|---|---|
host |
Your website’s domain. Send it with an account key. |
client |
The name and version of your script, for example {"name": "keyshop-sync", "version": "1.4.0"}. |
isOnline |
true when the website takes orders. |
keys |
stock.{currency} is the keys you hold. prices.usd is the price of one TF2 key in US dollars: sell is what a visitor pays, buy is what you pay. |
crypto.coins |
The coins you take, as tickers such as btc, eth or ltc. The list replaces the stored list. |
sets |
Set stock and set prices, as in bot.push. |
sets.levelRange |
The account levels your set stock is for. max 0 means no upper limit. |
gems |
Gem stock and gem prices, as in bot.push. |
games |
Game stock and game prices, as in bot.push. |
languages |
supported is up to 20 ISO 639-1 codes, and default is one of them. |
The market objects (keys, sets, gems and games) follow the patch rules of bot.push. A coin you list keeps the per-set price that is stored for it. A coin you leave out of crypto.coins is removed.
A push does not show or hide the website. Use the Listed switch on your website’s page, or call bot.setListed with the website’s public id (web_…).
The bot fields commands, rules, features, profile, payment and steamId64 do not apply to a website. A push that sends one of them, or any other top-level field that the body does not define, succeeds and reports a fieldIgnored issue for it.
Example
curl https://api.steamsets.com/v1/website.push \
-H "Authorization: Bearer $STEAMSETS_WEBSITE_KEY" \
-H "Content-Type: application/json" \
-d '{
"client": {"name": "keyshop-sync", "version": "1.4.0"},
"isOnline": true,
"keys": {
"stock": {"tf2": 1200},
"prices": {"usd": {"sell": 2.15, "buy": 1.95}}
},
"crypto": {"coins": ["btc", "eth", "ltc"]},
"languages": {"supported": ["en"], "default": "en"}
}'
Response
The response is the same as for bot.push: stored, issues, staleAt and isClientOutdated. See Response.
Errors
| Status | Meaning |
|---|---|
400 |
The body is not valid. |
401 |
The key is unknown, or it may not push for this website. |
429 |
Too many pushes with this key. Slow down. |