Logo

SteamTradeBots.com

Join our Discord Community!

API Documentation

This API allows you to update bot data, including selling, buying, sets, and keys for different games. Use this API to modify bot information by sending a POST request to the specified endpoint.

SteamTradeBots.com API

https://steamtradebots.com/API/{site_api_key}/updateBot

HTTP Method

POST - Use POST requests to update bot data.

Request Body

The request body must be a JSON object with the following fields:

{
  "selling": {
    "tf2": 13,
    "csgo": 20,
    "hydra": 15,
    "game": 12,
    "gem": 120,
    "tod": 12
  },
  "buying": {
    "tf2": 15,
    "csgo": 25,
    "hydra": 20,
    "game": 10,
    "gem": 12,
    "tod": 12
  },
  "sets": {
    "440": 69,
    "570": 420,
    "730": 1337
  },
  "keys": {
    "tf2": 10,
    "csgo": 8,
    "hydra": 4
  },
  "available_gems": 15000,
  "available_games": 50
}

Field Descriptions

Example Request

POST https://steamtradebots.com/API/{site_api_key}/updateBot
{
  "selling": {
    "tf2": 13,
    "csgo": 20,
    "hydra": 0,
    "game": 12,
    "gem": 120
  },
  "buying": {
    "tf2": 15,
    "csgo": 25,
    "hydra": 0,
    "game": 10,
    "gem": 12
  },
  "sets": {
    "440": 69,
    "570": 420,
    "730": 1337
  },
  "keys": {
    "tf2": 10,
    "csgo": 8,
    "hydra": 4
  },
  "available_gems": 15000,
  "available_games": 50
}

Response

On success, the API returns a 200 status code with the following response:

{
  "message": "Bot updated successfully."
}

If the API key is invalid or if there is an issue with the request, you will receive an error response:

{
  "error": "Invalid API key."
}

Error Codes

Rate Limiting

Be mindful of rate limiting to avoid overloading the API. If necessary, implement retries with exponential backoff.

Back to Home