{
  "openapi": "3.0.1",
  "info": {
    "title": "Steam Price & Market Monitor",
    "description": "Track Steam game prices and discounts — including exactly when each sale ends — plus live player counts, and Community Market item prices with listing counts and 24h volume. Monitor mode alerts you to price drops and sales starting or ending between runs.",
    "version": "0.1",
    "x-build-id": "AhLhYNyQaPdXbJtHh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sashaebashu~steam-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sashaebashu-steam-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/sashaebashu~steam-monitor/runs": {
      "post": {
        "operationId": "runs-sync-sashaebashu-steam-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/sashaebashu~steam-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-sashaebashu-steam-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to track",
            "enum": [
              "store",
              "market"
            ],
            "type": "string",
            "description": "«Store» tracks game prices, discounts and when each sale ENDS. «Market» tracks Community Market items (CS2 skins, TF2 items, cards) — cheapest listing, median price and 24h volume.",
            "default": "store"
          },
          "searchQueries": {
            "title": "Search",
            "type": "array",
            "description": "Store mode: game names (e.g. [\"Cyberpunk\", \"Witcher\"]). Market mode: item keywords (e.g. [\"AK-47\", \"Karambit\"]). Leave empty in market mode to walk the whole app.",
            "items": {
              "type": "string"
            }
          },
          "appIds": {
            "title": "App IDs (store mode)",
            "type": "array",
            "description": "Exact Steam app IDs to track, e.g. 1091500. Combine with or instead of search.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "Collections (store mode)",
            "type": "array",
            "description": "Steam's own lists to pull in: specials (current sales), top_sellers, new_releases, coming_soon.",
            "default": [
              "specials"
            ],
            "items": {
              "type": "string"
            }
          },
          "fullDetails": {
            "title": "Full game details (store mode)",
            "type": "boolean",
            "description": "Adds developers, publishers, genres, platforms, release date, review count, Metacritic and description. COSTS ONE EXTRA REQUEST PER GAME — Steam only returns full data for a single app at a time, while prices come back 50 at a time. Leave off for large price-watch runs.",
            "default": false
          },
          "withPlayerCount": {
            "title": "Add live player count (store mode)",
            "type": "boolean",
            "description": "Adds `playersOnline` — how many people are IN the game right now, from Steam's public stats API. A demand signal that price-only scrapers do not carry. Costs one extra request per game.",
            "default": false
          },
          "marketAppId": {
            "title": "Market app (market mode)",
            "type": "integer",
            "description": "Which game's Community Market to read: 730 = CS2 (34,700 items), 440 = Team Fortress 2 (41,600), 570 = Dota 2 (33,700), 252490 = Rust.",
            "default": 730
          },
          "withMarketPrice": {
            "title": "Add median price & 24h volume (market mode)",
            "type": "boolean",
            "description": "The search result already carries the cheapest listing and the number of listings. This adds the median price and 24-hour sales volume per item — the liquidity signal — at one extra request per item.",
            "default": true
          },
          "country": {
            "title": "Country / currency",
            "type": "string",
            "description": "Two-letter country code for store prices: us, gb, de, br… NOTE: many titles return no price for cc=ru, so those rows come back without a price.",
            "default": "us"
          },
          "maxPages": {
            "title": "Max pages (market mode)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The Community Market returns 10 items per request regardless of what is asked, so this is pages of 10.",
            "default": 5
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows. 0 = no limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel requests. Steam throttles hard bursts with HTTP 429; the Actor backs off and retries, but keep this modest.",
            "default": 4
          },
          "monitorMode": {
            "title": "Monitor mode (price & discount alerts)",
            "type": "boolean",
            "description": "Compare against the previous run for the SAME search and country, and label every row: new / price_down / price_up / discount_start / discount_end / unchanged, plus previous price and 30-day low & high.",
            "default": false
          },
          "onlyChanges": {
            "title": "Output only changed items",
            "type": "boolean",
            "description": "Monitor mode only — drop `unchanged` rows so each run returns just what moved.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Steam needs no special proxy. The cheap datacenter default just spreads heavy runs across IPs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}