{
  "openapi": "3.0.1",
  "info": {
    "title": "Steam Community Market Scraper - Prices, History & Order Books",
    "description": "Track the Steam Community Market economy for CS2, Dota 2, TF2, Rust and any Steam game: full price history back as far as 2014, live buy/sell order books, individual listings with float and pattern seed, catalogue search and a live feed of completed sales. No login needed.",
    "version": "0.0",
    "x-build-id": "g05Y6ZeAxk0aTaenN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~steam-community-market-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-steam-community-market-scraper",
        "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/fanndev~steam-community-market-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-steam-community-market-scraper",
        "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/fanndev~steam-community-market-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-steam-community-market-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "search",
              "itemOverview",
              "priceHistory",
              "orderBook",
              "listings",
              "recentSales"
            ],
            "type": "string",
            "description": "search: browse or search the market catalogue. itemOverview: one summary row per item (bid/ask, spread, 24h/7d/30d average price and volume, all-time high). priceHistory: the full median price and sales volume series. orderBook: every buy and sell price level. listings: individual items for sale with float, pattern seed and stickers. recentSales: the live feed of completed sales.",
            "default": "search"
          },
          "items": {
            "title": "Items",
            "type": "array",
            "description": "For the item modes. Each line is an exact market name (e.g. AK-47 | Redline (Field-Tested)) or a market page URL from your browser. Leave empty to take the items from a search instead (see the search settings below).",
            "items": {
              "type": "string"
            }
          },
          "appId": {
            "title": "Game",
            "type": "string",
            "description": "Which game's market. A Steam app id (730 = CS2, 570 = Dota 2, 440 = TF2, 252490 = Rust, 753 = Steam trading cards) or one of: cs2, dota2, tf2, rust, pubg, steam. Item URLs carry their own game and ignore this.",
            "default": "730"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "JPY",
              "KRW",
              "CNY",
              "HKD",
              "TWD",
              "SGD",
              "MYR",
              "IDR",
              "PHP",
              "THB",
              "VND",
              "INR",
              "BRL",
              "MXN",
              "CLP",
              "PEN",
              "COP",
              "ARS",
              "UYU",
              "CRC",
              "PLN",
              "CHF",
              "NOK",
              "UAH",
              "TRY",
              "ZAR",
              "SAR",
              "AED",
              "ILS",
              "KZT",
              "KWD",
              "QAR",
              "RUB"
            ],
            "type": "string",
            "description": "Steam prices everything in the currency of the visitor's country, so this picks the proxy country for you (USD = United States, EUR = Germany, ...). Needs Apify Proxy. Leave empty to use the proxy settings as they are. Search results are always in USD."
          },
          "expandVariants": {
            "title": "Include every variant of each item",
            "type": "boolean",
            "description": "Turn each item into all of its variants: every wear (Factory New ... Battle-Scarred), StatTrak and Souvenir version. A grouped market URL (ending in /G...) is always expanded.",
            "default": false
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Search mode, or item modes with no Items: text to search for (e.g. knife, case, redline). Leave empty to browse everything."
          },
          "searchFilters": {
            "title": "Category filters",
            "type": "object",
            "description": "Market category filters, as {\"category\": [\"tag\", ...]}. Examples for CS2: {\"Type\": [\"CSGO_Type_WeaponCase\"]} (cases), {\"Exterior\": [\"WearCategory0\"]} (Factory New), {\"Rarity\": [\"Rarity_Ancient_Weapon\"]} (Covert), {\"Quality\": [\"strange\"]} (StatTrak)."
          },
          "sortBy": {
            "title": "Sort search results by",
            "enum": [
              "popular",
              "priceAsc",
              "priceDesc",
              "quantityDesc",
              "quantityAsc",
              "nameAsc",
              "nameDesc"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "popular"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only items whose cheapest listing costs at least this much, in US dollars."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only items whose cheapest listing costs at most this much, in US dollars."
          },
          "maxItems": {
            "title": "Maximum items from search",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many catalogue items to return (search mode) or to pick from the search (item modes with no Items). Up to 100 items per request.",
            "default": 100
          },
          "historyDays": {
            "title": "History window (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Price history mode: keep only the last N days of data points. 0 = everything since the item was first sold. Summary statistics (averages, all-time high) always use the full history.",
            "default": 0
          },
          "historyOutput": {
            "title": "History output shape",
            "enum": [
              "perItem",
              "perPoint"
            ],
            "type": "string",
            "description": "perItem: one row per item with all data points in a 'prices' list. perPoint: one row per data point (best for spreadsheets and charts).",
            "default": "perItem"
          },
          "orderBookDepth": {
            "title": "Order book depth",
            "minimum": 0,
            "type": "integer",
            "description": "How many price levels to return on each side of the order book. 0 = every level. Item overview always shows a 10-level preview.",
            "default": 50
          },
          "maxListingsPerItem": {
            "title": "Maximum listings per item",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Listings mode: how many individual sell listings to collect for each item.",
            "default": 100
          },
          "listingSort": {
            "title": "Sort listings by",
            "enum": [
              "priceAsc",
              "priceDesc",
              "floatAsc",
              "floatDesc",
              "patternAsc",
              "patternDesc"
            ],
            "type": "string",
            "description": "Listings mode: price, float (wear) or pattern seed. Float sorting is how you find the lowest-wear copies of a skin.",
            "default": "priceAsc"
          },
          "minFloat": {
            "title": "Minimum float",
            "type": "string",
            "description": "Listings mode: skip listings with a float below this (e.g. 0.15). Leave empty for no limit."
          },
          "maxFloat": {
            "title": "Maximum float",
            "type": "string",
            "description": "Listings mode: skip listings with a float above this (e.g. 0.16). With 'Float: lowest first' sorting the run stops as soon as it passes this value."
          },
          "includeFullDescription": {
            "title": "Include full item description on every listing",
            "type": "boolean",
            "description": "Listings and recent sales: keep the full item description text and sticker artwork details on every row. Off keeps rows small.",
            "default": false
          },
          "recentSalesPolls": {
            "title": "Number of polls",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Recent sales mode: Steam shows the latest 50 sales and refreshes them about every 30 seconds. Poll several times to build a longer feed; duplicates are removed.",
            "default": 1
          },
          "recentSalesIntervalSecs": {
            "title": "Seconds between polls",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "Recent sales mode: wait between polls. The feed refreshes about every 30 seconds.",
            "default": 30
          },
          "filterRecentSalesByApp": {
            "title": "Only sales from the selected game",
            "type": "boolean",
            "description": "Recent sales mode: keep only sales for the game in the Game field. Off returns sales from every game.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many requests run at the same time.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy is recommended: it spreads requests over many IPs and its country sets the currency of every price. The Currency field above overrides the country.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}